:root {
    --primary: #38bdf8;
    --secondary: #818cf8;
    --accent: #f472b6;
    --background: #0f172a;
    --surface: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --card-bg: rgba(30, 41, 59, 0.7);
    --border: rgba(148, 163, 184, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(34, 197, 94, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation Shapes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Glassmorphism Card Effect */
.profile-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Highlight top border */
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.02); /* Inner subtle glow */
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Shine effect on card hover */
.profile-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.profile-card:hover::after {
    left: 150%;
    transition: 1s ease-in-out;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 3px; /* Thickness of the gradient border */
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--background); /* Fallback */
    border: 4px solid var(--surface); /* Gap between gradient and image */
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avatar-wrapper:hover .avatar img {
    transform: scale(1.1);
}

/* Glow effect behind avatar */
.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 70%);
    z-index: 1;
    filter: blur(20px);
}

h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.badge-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-weight: 600;
}

.description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0068ff 0%, #00c6ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.social-icon:hover {
    color: white;
    transform: translateY(-3px);
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
    border-color: transparent;
}

.footer {
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    opacity: 0.7;
}

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

.fade-in-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

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

.group-invite {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.group-invite b {
    color: var(--accent);
}

.btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    object-fit: contain;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px; /* For font icons */
}

.btn-primary .btn-icon {
    filter: brightness(0) invert(1);
}

.btn-content {
    display: flex;
    align-items: center;
    text-align: left;
    line-height: 1.3;
}

/* Premium Zalo Button */
.btn-zalo-pro {
    background: #ffffff;
    color: #0068ff;
    border: 2px solid transparent;
    box-shadow: 0 0 20px rgba(0, 104, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-zalo-pro:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 104, 255, 0.5);
    background: #f8fafc;
}

/* Add a continuous pulse effect to show it's active */
.btn-zalo-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-white 2s infinite;
    z-index: -1;
}

@keyframes pulse-white {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.btn-zalo-pro .btn-content {
    justify-content: center;
    font-weight: 700; /* Bold text for impact */
    font-size: 1.05rem;
}

.btn-zalo-pro img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* Pop the icon */
    width: 28px;
    height: 28px;
    margin-right: 12px;
}


/* Video Demo Section */
.video-section {
    margin-bottom: 2rem;
    text-align: center;
}

.video-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 280px; /* Optimal width for vertical shorts */
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 99px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-link i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
    .profile-card {
        padding: 2rem 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
