@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@400;700&display=swap');
:root {
    --bg-dark: #080808;
    --card-bg: rgba(20, 20, 20, 0.7);
    --neon-cyan: #00ffcc;
    --neon-blue: #00d2ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    perspective: 1000px;
}


/* Hiệu ứng Scanline (Vạch nhiễu TV) */

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 2px 100%;
    z-index: 100;
    pointer-events: none;
}

.main-card {
    background: var(--card-bg);
    width: 90%;
    max-width: 480px;
    padding: 40px 30px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s;
}


/* Header & Signal Animation */

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: #666;
}

.status-container {
    display: flex;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: blink 1.5s infinite;
}

.signal-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wifi-symbol {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wifi-symbol i {
    color: var(--neon-cyan);
    font-size: 14px;
    z-index: 2;
}

.wave {
    position: absolute;
    border: 1px solid var(--neon-cyan);
    border-radius: 50%;
    animation: broadcast 2s linear infinite;
    opacity: 0;
}

.wave:nth-child(2) {
    animation-delay: 0s;
}

.wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes broadcast {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
    }
    100% {
        width: 40px;
        height: 40px;
        opacity: 0;
    }
}


/* Profile Section */

.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 10px;
    object-fit: cover;
    border: 2px solid #222;
}

.rotating-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed #444;
    animation: rotate 10s linear infinite;
}

.name {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
}

.glow-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
    /* Thêm 2 dòng dưới đây để chuẩn hóa */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.5));
}

.bio {
    /* Thiết lập font và kích thước cho dễ nhìn */
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 0.5px;
    /* 1. Tạo dải màu Gradient (Bạn có thể thay đổi màu ở đây) */
    background: linear-gradient( to right, #00ffcc, #00d2ff, #7b61ff, #ff7f00, #00ffcc);
    /* 2. Kéo dài dải màu ra 200% để tạo hiệu ứng chuyển động */
    background-size: 200% auto;
    /* 3. Cắt màu theo hình chữ */
    background-clip: text;
    -webkit-background-clip: text;
    /* 4. Làm chữ trong suốt để hiện màu nền bên dưới */
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* 5. Thêm hiệu ứng chuyển động (chạy trong 4 giây, lặp vô hạn) */
    animation: bio-glow 4s linear infinite;
}


/* Định nghĩa chuyển động cho màu sắc */

@keyframes bio-glow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}


/* Links Grid */

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.link-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) translateZ(20px);
    border-color: var(--clr);
    box-shadow: 0 10px 20px -5px var(--clr);
}

.wide {
    grid-column: span 2;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--clr);
    margin-right: 12px;
    box-shadow: 0 0 15px var(--clr);
}

.link-info {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 15px;
    font-weight: 700;
}

.sub-label {
    font-size: 10px;
    color: #666;
    font-weight: 700;
    margin-top: 2px;
}


/* Animations */

@keyframes blink {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
    .wide {
        grid-column: span 1;
    }
    .name {
        font-size: 24px;
    }
}

.rainbow-text {
    font-family: 'Arial', sans-serif;
    /* Hoặc font bạn thích */
    font-size: 33px;
    font-weight: bold;
    /* Tạo dải màu gradient */
    background: linear-gradient( to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff, #ff0000);
    /* Kéo dài background để hiệu ứng chạy mượt hơn */
    background-size: 200% auto;
    /* Cắt background theo hình dạng chữ */
    background-clip: text;
    -webkit-background-clip: text;
    /* Làm cho màu chữ gốc trong suốt để hiện màu nền lên */
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* Thiết lập animation chạy trong 3 giây, lặp vô hạn */
    animation: rainbow-animation 3s linear infinite;
}


/* Định nghĩa chuyển động cho dải màu */

@keyframes rainbow-animation {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

body {
    background-color: #080808;
    color: white;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Sửa lỗi không vuốt được: Thay hidden bằng auto nếu nội dung dài */
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 0;
    touch-action: pan-y;
    /* Cho phép vuốt dọc trên mobile */
}


/* Hiệu ứng trái tim bay */

#heart-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Không cản trở việc click/vuốt */
    z-index: 999;
}

.heart {
    position: absolute;
    bottom: -10%;
    color: #ff4d4d;
    font-size: 20px;
    opacity: 0.8;
    animation: flyUp var(--duration) linear forwards;
}

@keyframes flyUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) translateX(var(--drift)) rotate(360deg);
        opacity: 0;
    }
}


/* Giữ hiệu ứng màu nhảy cho Bio */

.bio {
    background: linear-gradient(to right, #ff00cc, #3333ff, #00ffcc, #ff00cc);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bio-glow 3s linear infinite;
    font-weight: bold;
    text-align: center;
}

@keyframes bio-glow {
    to {
        background-position: 200% center;
    }
}

.ID,
.UID {
    /* Thiết lập font và kích thước cho dễ nhìn */
    font-size: 11px;
    font-weight: 1000;
    text-align: center;
    margin-top: 3px;
    letter-spacing: 1px;
    /* 1. Tạo dải màu Gradient (Bạn có thể thay đổi màu ở đây) */
    background: linear-gradient( to right, #00ffcc, #00d2ff, #7b61ff, #ff7f00, #00ffcc);
    /* 2. Kéo dài dải màu ra 200% để tạo hiệu ứng chuyển động */
    background-size: 100% auto;
    /* 3. Cắt màu theo hình chữ */
    background-clip: text;
    -webkit-background-clip: text;
    /* 4. Làm chữ trong suốt để hiện màu nền bên dưới */
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* 5. Thêm hiệu ứng chuyển động (chạy trong 4 giây, lặp vô hạn) */
    animation: bio-glow 4s linear infinite;
}

.icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* Đây là dòng lệnh tạo hình tròn */
    object-fit: cover;
    display: block;
}


/* Giả sử class của thẻ chứa ảnh là .icon-box hoặc bạn đặt class cho thẻ img */

.link-item img,
.icon-box img,
.avatar-user {
    width: 32px;
    /* Hoặc kích thước bạn muốn */
    height: 32px;
    border-radius: 50% !important;
    /* Dòng này quan trọng nhất để tạo hình tròn */
    object-fit: cover;
    /* Giữ ảnh không bị méo khi cắt tròn */
    display: block;
}