:root {
    --bg-dark: #0a0f1c;
    /* Midnight Blue */
    --primary-glow: rgba(0, 240, 255, 0.5);
    /* Electric Teal */
    --secondary-glow: rgba(138, 43, 226, 0.5);
    /* Electric Purple */
    --card-bg: rgba(10, 15, 28, 0.6);
    /* Semi-transparent Midnight */
    --card-border: rgba(0, 240, 255, 0.2);
    /* Subtle teal border */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-blur: blur(16px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
    cursor: none;
    /* Hide default cursor */
    /* Anti-copy text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #00f0ff;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 240, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cursor-outline::after,
.cursor-outline::before {
    content: '';
    position: absolute;
    background: #00f0ff;
}

.cursor-outline::after {
    top: 50%;
    left: -4px;
    right: -4px;
    height: 1px;
    transform: translateY(-50%);
}

.cursor-outline::before {
    left: 50%;
    top: -4px;
    bottom: -4px;
    width: 1px;
    transform: translateX(-50%);
}

/* Binary Trail Effect */
.binary-trail {
    position: fixed;
    color: #00f0ff;
    font-family: monospace;
    font-weight: bold;
    font-size: 14px;
    pointer-events: none;
    z-index: 9998;
    text-shadow: 0 0 5px #00f0ff;
    animation: fallAndFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fallAndFade {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
    }
}

/* Background Overlay - Animated Tech Grid */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridScroll 15s linear infinite;
    opacity: 0.8;
    /* Increased slightly for particles */
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 80%);
    pointer-events: none;
    /* crucial so particles can be hovered */
}

/* CRT Screen Effect */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    /* High enough to cover everything but modals/controls */
    pointer-events: none;
    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% 2px, 3px 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    mix-blend-mode: overlay;
}

.crt-overlay.active {
    opacity: 1;
    visibility: visible;
    animation: crtFlicker 0.15s infinite;
}

.crt-overlay::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: crtScanline 4s linear infinite;
}

.crt-overlay.active::after {
    opacity: 1;
}

@keyframes crtFlicker {
    0% {
        opacity: 0.95;
    }

    5% {
        opacity: 0.85;
    }

    10% {
        opacity: 0.95;
    }

    100% {
        opacity: 1;
    }
}

@keyframes crtScanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Screen glitch jump applied to body */
body.crt-glitch-jump {
    animation: screenGlitch 0.2s cubic-bezier(.25, .46, .45, .94) both;
}

@keyframes screenGlitch {
    0% {
        transform: translate(0) skewX(0deg);
        filter: none;
    }

    20% {
        transform: translate(-5px, 2px) skewX(2deg);
        filter: drop-shadow(3px 0 red) drop-shadow(-3px 0 blue);
    }

    40% {
        transform: translate(5px, -2px) skewX(-2deg);
        filter: drop-shadow(-3px 0 red) drop-shadow(3px 0 blue);
    }

    60% {
        transform: translate(-2px, 1px) skewX(0deg);
        filter: none;
    }

    80% {
        transform: translate(2px, -1px);
    }

    100% {
        transform: translate(0);
    }
}

#particles-js canvas {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes gridScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 30px 30px;
    }
}

/* Main Container & System Status */
.system-status {
    font-family: monospace;
    font-size: 0.75rem;
    color: #4ade80;
    background: rgba(10, 20, 28, 0.7);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    letter-spacing: 1.5px;
    margin: 0 auto -0.5rem auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.1), inset 0 0 10px rgba(74, 222, 128, 0.05);
    animation: fadeUp 0.8s ease-out, statusPulse 3s infinite alternate;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 10px rgba(74, 222, 128, 0.1), inset 0 0 5px rgba(74, 222, 128, 0.05);
        border-color: rgba(74, 222, 128, 0.2);
    }

    100% {
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.25), inset 0 0 15px rgba(74, 222, 128, 0.1);
        border-color: rgba(74, 222, 128, 0.5);
    }
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #4ade80, 0 0 20px #4ade80;
    animation: blink 1.2s ease-in-out infinite;
}

.status-text {
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 8px #4ade80;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 1;
    animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
    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: 0.75rem;
}

.avatar-container {
    position: relative;
    padding: 6px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    z-index: 1;
}

.avatar-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 0deg, transparent 0%, #00f0ff 25%, transparent 50%, #ff0055 75%, transparent 100%);
    border-radius: 50%;
    z-index: -2;
    animation: electricSpin 2s linear infinite;
    filter: blur(4px) drop-shadow(0 0 15px rgba(0, 240, 255, 0.8));
}

.avatar-container::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    border-radius: 50%;
    z-index: -1;
}

@keyframes electricSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Radar Scan Avatar Effect */
.radar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3) inset;
}

.radar-wrapper .avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    display: block;
    box-shadow: none;
    /* Kept original colors per user request */
}

.radar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    /* Very faint crosshair so avatar shows up clearly */
    background:
        radial-gradient(circle, transparent 40%, rgba(0, 240, 255, 0.1) 41%, transparent 42%, transparent 80%, rgba(0, 240, 255, 0.2) 81%, transparent 82%),
        linear-gradient(90deg, transparent 49.5%, rgba(0, 240, 255, 0.15) 50%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(0, 240, 255, 0.15) 50%, transparent 50.5%);
}

.radar-beam {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(0, 240, 255, 0.1) 85%, rgba(0, 240, 255, 0.9) 100%);
    animation: radarSweep 3s linear infinite;
}

@keyframes radarSweep {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.radar-blip {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ff0055;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff0055, 0 0 10px #ff0055;
    opacity: 0;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* 3 seconds total rotation. Map timing based on angle: 122deg ~ 1.0s, 201deg ~ 1.67s, 322deg ~ 2.68s */
.blip-1 {
    left: 40%;
    top: 25%;
    animation: blipFade 3s infinite 2.7s;
}

/* Top-Left */
.blip-2 {
    left: 75%;
    top: 65%;
    animation: blipFade 3s infinite 1.0s;
}

/* Bottom-Right */
.blip-3 {
    left: 25%;
    top: 70%;
    animation: blipFade 3s infinite 1.8s;
}

/* Bottom-Left */

@keyframes blipFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    2% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }

    10% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }

    40% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0;
    }
}

/* Removed .avatar root block since it's now handled by .radar-wrapper .avatar */

.name {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #00f0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
    margin-bottom: 0.25rem;
    position: relative;
    /* We keep the textFlicker but add scanner overlay below */
    animation: textFlicker 3s infinite alternate;
}

/* Scanner Sweep Text Effect */
.scanner-text {
    position: relative;
    display: inline-block;
}

.scanner-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 0, 85, 0.1) 45%,
            rgba(255, 0, 85, 1) 50%,
            rgba(255, 0, 85, 0.1) 55%,
            transparent 100%);
    background-size: 100% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    animation: scanSweep 3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    /* extra glow for the laser */
}

@keyframes scanSweep {
    0% {
        background-position: 0 -100%;
    }

    50% {
        background-position: 0 200%;
    }

    100% {
        background-position: 0 -100%;
    }

    /* Sweep back up */
}

@keyframes textFlicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.4);
        opacity: 1;
    }

    20%,
    24%,
    55% {
        text-shadow: none;
        opacity: 0.7;
    }
}

.name::before,
.name::after {
    content: 'Ông Chú MMO';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
}

.name::before {
    left: 2px;
    text-shadow: -1px 0 red;
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.name::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
    }

    100% {
        clip-path: inset(30% 0 40% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
    }

    100% {
        clip-path: inset(5% 0 80% 0);
    }
}

.bio {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 500;
    line-height: 1.6;
    max-width: 90%;

    /* Cyber styling */
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid #00f0ff;
    padding: 0.75rem 1rem;
    border-radius: 0 12px 12px 0;
    box-shadow: inset 20px 0 20px -20px rgba(0, 240, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Electric scanline passing through bio */
.bio::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 240, 255, 0.4), transparent);
    animation: bioScan 4s infinite linear;
}

@keyframes bioScan {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

/* Links Section */
.links {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Handled by group margin */
}

.section-title {
    font-size: 0.95rem;
    color: var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 1.5rem 0 1rem 0;
    padding-left: 0.5rem;
    font-weight: 800;
    border-left: 3px solid var(--primary-glow);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), transparent);
    animation: fadeUp 0.8s ease-out backwards;
    transition: all 0.3s;
}

.section-title:hover {
    color: white;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

.links .section-title:first-child {
    margin-top: 0;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
}

.link-wrapper {
    position: relative;
    width: 100%;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: inset 0 0 0 1px var(--card-border), 0 4px 15px rgba(0, 0, 0, 0.4);
    /* For Vanilla Tilt inner 3D effect */
    transform-style: preserve-3d;
    transform: perspective(1000px);
    overflow: hidden;
    animation: slideUpFade 0.6s ease-out backwards;
}

/* Shine Swipe Effect */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg) translateZ(5px);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.link-card:hover::before {
    left: 200%;
}

.link-card:hover {
    background: rgba(0, 240, 255, 0.05);
    box-shadow: inset 0 0 0 2px rgba(0, 240, 255, 0.8), 0 0 20px rgba(0, 240, 255, 0.4);
}

.link-card:active {
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.8), 0 0 10px rgba(0, 240, 255, 0.4);
}


/* Badges */
.card-badge {
    position: absolute;
    top: -10px;
    right: -5px;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 0.5px;
    animation: badgePulse 2s infinite alternate;
}

.badge-hot {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-new {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes badgePulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shine effect */
.link-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Hologram Circuit Board Effect */
.circuit-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    /* Below text (z-index 2) */
    opacity: 0;

    /* The scanning light ray */
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(0, 240, 255, 0.8) 50%,
            rgba(138, 43, 226, 0.8) 65%,
            transparent 80%);
    background-size: 200% 200%;
    background-position: 100% 100%;

    /* Using a circuit board SVG pattern as a mask so that the color gradient ONLY shows up on the "wires" */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M54.627 0l.83.83v15.828L60 21.213v17.574l-4.543 4.543V59.17l-.83.83H38.83l-.83-.83V43.343l-4.543-4.543H15.88l-4.543 4.543v15.828l-.83.83H.83l-.83-.83V43.343l4.543-4.543v-17.574L0 16.683V.83l.83-.83h9.635l.83.83v15.828l4.543 4.543h17.574l4.543-4.543V.83l.83-.83h9.635zm-6.273 17.855l3.208-3.208V2.515H43.916v12.132l3.208 3.208h1.23zm-38.35 0h1.23l3.208-3.208V2.515H4.805v12.132l3.208 3.208zm38.35 24.29h1.23l3.208 3.208v12.132H43.916V45.353l3.208-3.208zm-38.35 0l3.208 3.208v12.132H4.805V45.353l3.208-3.208h1.23zM25.334 26.23v7.54h9.332v-7.54h-9.332zm-3.332-3.332V15.358h-11v11.358l3.331 3.332v11.358l-3.331 3.331v11.359h11v-11.359l3.332-3.331v-11.358l-3.332-3.332zm16 0l-3.332 3.332v11.358l3.332 3.331v11.359h11v-11.359l-3.331-3.331v-11.358l3.331-3.332v-11.359h-11v11.359z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M54.627 0l.83.83v15.828L60 21.213v17.574l-4.543 4.543V59.17l-.83.83H38.83l-.83-.83V43.343l-4.543-4.543H15.88l-4.543 4.543v15.828l-.83.83H.83l-.83-.83V43.343l4.543-4.543v-17.574L0 16.683V.83l.83-.83h9.635l.83.83v15.828l4.543 4.543h17.574l4.543-4.543V.83l.83-.83h9.635zm-6.273 17.855l3.208-3.208V2.515H43.916v12.132l3.208 3.208h1.23zm-38.35 0h1.23l3.208-3.208V2.515H4.805v12.132l3.208 3.208zm38.35 24.29h1.23l3.208 3.208v12.132H43.916V45.353l3.208-3.208zm-38.35 0l3.208 3.208v12.132H4.805V45.353l3.208-3.208h1.23zM25.334 26.23v7.54h9.332v-7.54h-9.332zm-3.332-3.332V15.358h-11v11.358l3.331 3.332v11.358l-3.331 3.331v11.359h11v-11.359l3.332-3.331v-11.358l-3.332-3.332zm16 0l-3.332 3.332v11.358l3.332 3.331v11.359h11v-11.359l-3.331-3.331v-11.358l3.331-3.332v-11.359h-11v11.359z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-size: 150px 150px;
    mask-size: 150px 150px;

    transition: opacity 0.4s ease;
    mix-blend-mode: color-dodge;
}

.link-card:hover .circuit-overlay {
    opacity: 1;
    animation: hologramSweep 2.5s linear infinite;
}

@keyframes hologramSweep {
    0% {
        background-position: 200% 200%;
    }

    100% {
        background-position: -100% -100%;
    }
}

.link-card:hover {
    transform: translateY(-3px);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
}

.link-card:active {
    transform: translateY(1px);
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.8), 0 0 10px rgba(0, 240, 255, 0.4);
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    flex-shrink: 0;
    transform: translateZ(30px);
}

.link-icon {
    font-size: 2.2rem;
    color: #ffffff;
}

.zalo-icon {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-right: calc(48px + 1rem);
    /* Offset to purely center text based on flex space */
    transform: translateZ(20px);
}

.link-text {
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.link-subtext {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Socials Section */
.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.social-icon:hover {
    color: var(--text-main);
    transform: translateY(-3px) scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Highlight Effects */
.highlight-card {
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.4), 0 0 15px rgba(0, 240, 255, 0.1);
    animation: slideUpFade 0.6s ease-out backwards, subtlePulseTech 2.5s infinite alternate;
}

@keyframes subtlePulseTech {
    0% {
        box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.4), 0 0 10px rgba(0, 240, 255, 0.1);
    }

    100% {
        box-shadow: inset 0 0 0 2px rgba(0, 240, 255, 0.8), 0 0 25px rgba(0, 240, 255, 0.4);
    }
}

.highlight-card:hover {
    animation: slideUpFade 0.6s ease-out backwards;
}

/* Arrow Animation */
.arrow-wrapper {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transform: translateY(-50%) translateZ(30px);
}

.action-arrow {
    color: #38bdf8;
    font-size: 1.4rem;
    animation: flyArrow 1.5s infinite ease-in-out;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.8));
}

@keyframes flyArrow {
    0% {
        transform: translateX(0);
        opacity: 0.6;
    }

    50% {
        transform: translateX(8px);
        opacity: 1;
        filter: drop-shadow(0 0 10px #7dd3fc);
    }

    100% {
        transform: translateX(0);
        opacity: 0.6;
    }
}

/* Floating CTAs */
.z-10 {
    z-index: 10;
    position: relative;
}

.floating-cta {
    position: absolute;
    background: #e11d48;
    /* Red for high contrast */
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    white-space: nowrap;
    animation: floatCTA 2s infinite ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cta-tiktok {
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    /* Neon cyan to blue */
    color: #0a0f1c;
    transform: rotate(-10deg);
}

.cta-facebook {
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #4776E6, #8E54E9);
    /* Tech Blue to Purple */
    transform: rotate(-10deg);
}

.cta-fanpage {
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    /* Emerald tech */
    transform: rotate(-10deg);
}

.cta-youtube {
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    /* Neon Red/Pink */
    transform: rotate(-10deg);
}

.cta-telegram {
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #00ff00, #006600);
    /* Hacker Green */
    color: #0a0f1c;
    /* Dark text for contrast */
    transform: rotate(-10deg);
}

.cta-arrow {
    font-size: 0.8rem;
    animation: bounceDown 1.5s infinite;
}

@keyframes floatCTA {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-5px) rotate(-8deg);
    }
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }
}

/* === AI Cyber Donate Card === */
.cta-cyber {
    top: -15px;
    left: 20px;
    background: #00f0ff;
    color: #0a0f1c;
    transform: rotate(-10deg);
    text-shadow: none;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
    font-weight: 900;
    animation: cyberGlitch 1.5s infinite;
}

@keyframes cyberGlitch {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg) scale(1);
        background: #00f0ff;
        color: #0a0f1c;
    }

    45% {
        transform: translateY(-2px) rotate(-10deg) scale(1);
        background: #00f0ff;
        color: #0a0f1c;
    }

    46% {
        transform: translateY(5px) rotate(-15deg) scale(1.1);
        background: #ff0055;
        color: #fff;
        box-shadow: 0 0 25px #ff0055;
    }

    50% {
        transform: translateY(-2px) rotate(-10deg) scale(1);
        background: #00f0ff;
        color: #0a0f1c;
    }
}

.badge-cyber {
    background: linear-gradient(135deg, #00f2fe, #ff0055);
    color: white;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.5);
    animation: badgePulseCyber 1.5s infinite alternate;
}

@keyframes badgePulseCyber {
    from {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    }

    to {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(255, 0, 85, 0.8);
    }
}

.ai-cyber-card {
    background: linear-gradient(135deg, #0a1128 0%, #001f3f 100%);
    border: 1px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 240, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ai-cyber-card:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6), inset 0 0 30px rgba(0, 240, 255, 0.3);
    border-color: #00f0ff;
    transform: translateY(-3px);
}

.ai-cyber-card:active {
    transform: translateY(1px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.8), inset 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Background tech grid */
.ai-cyber-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
    background-size: 15px 15px;
    z-index: 0;
    opacity: 0.5;
    animation: gridScroll 10s linear infinite;
}

.cyber-effects {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Lưới quét scanline */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.8), transparent);
    box-shadow: 0 0 10px #00f0ff;
    animation: aiScan 2.5s infinite linear;
}

@keyframes aiScan {
    0% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(150px);
    }
}

/* Tia sét giật */
.strike {
    position: absolute;
    background: #fff;
    box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff;
    opacity: 0;
    filter: blur(1px);
}

.s1 {
    width: 3px;
    height: 150%;
    top: -20%;
    left: 25%;
    transform: rotate(20deg);
    animation: thunderZap 2.1s infinite 0.5s;
}

.s2 {
    width: 150%;
    height: 2px;
    top: 50%;
    left: -20%;
    transform: rotate(-10deg);
    animation: thunderZap 3.3s infinite 1.2s;
}

.s3 {
    width: 2px;
    height: 120%;
    top: -10%;
    right: 30%;
    transform: rotate(-25deg);
    animation: thunderZap 1.8s infinite 2.1s;
}

.s4 {
    width: 120%;
    height: 3px;
    bottom: 20%;
    left: -10%;
    transform: rotate(5deg);
    animation: thunderZap 4s infinite 0.8s;
}

@keyframes thunderZap {

    0%,
    93% {
        opacity: 0;
        transform: scale(1);
        filter: brightness(1) blur(1px);
    }

    94% {
        opacity: 1;
        transform: scale(1.1) translateX(3px);
        filter: brightness(1.5) hue-rotate(90deg) blur(0px);
    }

    95% {
        opacity: 0;
    }

    96% {
        opacity: 1;
        transform: scale(1.3) translateX(-5px) translateY(2px);
        filter: brightness(2) blur(0px);
    }

    97% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Icon jiggle / charge */
.ai-cyber-card .icon-wrapper {
    z-index: 2;
    animation: chargePulse 1s infinite alternate;
}

.cyber-icon {
    font-size: 2.2rem;
    color: #00f0ff;
}

@keyframes chargePulse {
    0% {
        transform: translateZ(30px) scale(0.95);
        filter: drop-shadow(0 0 5px #00f0ff);
    }

    100% {
        transform: translateZ(30px) scale(1.15);
        filter: drop-shadow(0 0 20px #00f0ff) drop-shadow(0 0 30px #fff);
    }
}

.ai-cyber-card .text-wrapper {
    z-index: 2;
}

.ai-cyber-card .link-text.cyber-text {
    color: #fff;
    text-shadow: 0 0 8px #00f0ff;
}

.ai-cyber-card .link-subtext.cyber-subtext {
    color: #a5f3fc;
}

.ai-cyber-card .arrow-wrapper {
    z-index: 2;
}

.action-arrow.cyber-arrow {
    color: #00f0ff;
    filter: drop-shadow(0 0 8px #00f0ff);
}

/* --- TIKTOK CYBER EFFECTS --- */
.cyber-social-tiktok {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 25, 0.9) 100%);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.tk-effects .scanline {
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 254, 0.6), transparent);
    box-shadow: 0 0 10px #00f2fe;
    animation: tkScan 3s infinite linear;
}

@keyframes tkScan {
    0% {
        transform: translateY(-50px);
    }

    100% {
        transform: translateY(150px);
    }
}

.tk-effects .neon-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    animation: tkBorder 2s linear infinite;
}

@keyframes tkBorder {
    0% {
        box-shadow: inset 0 0 5px #00f2fe, 0 0 5px #00f2fe;
        border-color: rgba(0, 242, 254, 0.1);
    }

    50% {
        box-shadow: inset 0 0 15px #ff0050, 0 0 15px #ff0050;
        border-color: rgba(255, 0, 80, 0.5);
    }

    100% {
        box-shadow: inset 0 0 5px #00f2fe, 0 0 5px #00f2fe;
        border-color: rgba(0, 242, 254, 0.1);
    }
}

/* --- YOUTUBE CYBER EFFECTS --- */
.cyber-social-youtube {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.8) 0%, rgba(40, 0, 0, 0.9) 100%);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.yt-effects .scanline {
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 0, 0, 0.2), transparent);
    transform: skewX(-20deg) translateX(-100%);
    animation: ytScan 4s infinite linear;
}

@keyframes ytScan {

    0%,
    20% {
        transform: skewX(-20deg) translateX(-100%);
    }

    80%,
    100% {
        transform: skewX(-20deg) translateX(100%);
    }
}

.yt-effects .glow-orb {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    animation: ytOrb 3s infinite alternate ease-in-out;
}

@keyframes ytOrb {
    0% {
        left: -50px;
        opacity: 0.5;
    }

    100% {
        left: calc(100% - 50px);
        opacity: 1;
    }
}

/* --- FACEBOOK CYBER EFFECTS --- */
.cyber-social-fb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 10, 40, 0.8) 0%, rgba(0, 20, 80, 0.9) 100%);
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.fb-effects .scanline {
    background: linear-gradient(to bottom, transparent, rgba(24, 119, 242, 0.6), transparent);
    box-shadow: 0 0 10px #1877f2;
    animation: fbScan 2s infinite ease-in-out alternate;
}

@keyframes fbScan {
    0% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(100px);
    }
}

.fb-effects .data-stream {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(24, 119, 242, 0.1) 2px, rgba(24, 119, 242, 0.1) 4px);
    z-index: 1;
    animation: streamScroll 10s linear infinite;
    opacity: 0.3;
}

@keyframes streamScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 100%;
    }
}

/* --- TELEGRAM CYBER/HACKER EFFECTS --- */
.cyber-social-telegram {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 20, 10, 0.8) 0%, rgba(0, 40, 15, 0.9) 100%);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.tg-effects .scanline {
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 0, 0.6), transparent);
    box-shadow: 0 0 10px #00ff00;
    animation: tgScan 2.5s infinite linear;
}

@keyframes tgScan {
    0% {
        transform: translateY(-50px);
    }

    100% {
        transform: translateY(150px);
    }
}

.tg-effects .matrix-rain {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(180deg, transparent, transparent 4px, rgba(0, 255, 0, 0.15) 4px, rgba(0, 255, 0, 0.15) 8px);
    z-index: 1;
    animation: matrixScroll 5s linear infinite;
    opacity: 0.4;
}

@keyframes matrixScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 100%;
    }
}

.tg-effects .glitch-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 255, 0, 0.1);
    animation: tgGlitchBox 3s infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes tgGlitchBox {
    0% {
        transform: translate(-50%, -50%) skewX(0deg);
        opacity: 0;
    }

    1% {
        transform: translate(-52%, -48%) skewX(5deg);
        opacity: 0.3;
        background: rgba(0, 255, 0, 0.05);
    }

    2% {
        transform: translate(-48%, -52%) skewX(-5deg);
        opacity: 0.1;
        background: transparent;
    }

    3% {
        transform: translate(-50%, -50%) skewX(0deg);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) skewX(0deg);
        opacity: 0;
    }
}

/* Hacker Glitch Text */
.hacker-glitch-text {
    position: relative;
    display: inline-block;
}

.hacker-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 255, 0, 0.1) 45%,
            rgba(0, 255, 0, 1) 50%,
            rgba(0, 255, 0, 0.1) 55%,
            transparent 100%);
    background-size: 100% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    animation: tgScanSweep 3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

@keyframes tgScanSweep {
    0% {
        background-position: 0 -100%;
    }

    50% {
        background-position: 0 200%;
    }

    100% {
        background-position: 0 -100%;
    }
}

@keyframes rotateGlow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes donateGlow {
    0% {
        box-shadow: 0 6px 0 #021a0e, 0 0 15px rgba(16, 185, 129, 0.3);
        border-color: rgba(16, 185, 129, 0.5);
    }

    100% {
        box-shadow: 0 6px 0 #021a0e, 0 0 35px rgba(52, 211, 153, 0.6);
        border-color: rgba(52, 211, 153, 1);
    }
}

.donate-card:hover {
    background: linear-gradient(135deg, #059669 0%, #065f46 100%);
    border-color: rgba(52, 211, 153, 0.9);
    box-shadow: 0 8px 0 #021a0e, 0 15px 30px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

.donate-card:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #021a0e, 0 5px 10px rgba(16, 185, 129, 0.5);
}

.donate-card .action-arrow {
    color: #34d399;
    animation: flyArrowDonate 1.5s infinite ease-in-out;
    filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.8));
}

@keyframes flyArrowDonate {
    0% {
        transform: translateX(0);
        opacity: 0.6;
    }

    50% {
        transform: translateX(8px);
        opacity: 1;
        filter: drop-shadow(0 0 10px #6ee7b7);
    }

    100% {
        transform: translateX(0);
        opacity: 0.6;
    }
}

/* AI Voice Visualizer */
.ai-voice-visualizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
    margin: 20px 0;
}

.ai-voice-visualizer .bar {
    width: 6px;
    height: 5px;
    background: #00f0ff;
    border-radius: 3px;
    opacity: 0.5;
    box-shadow: 0 0 10px #00f0ff;
    transition: height 0.1s ease, opacity 0.1s ease;
}

/* Base idle animation */
@keyframes idleBeat {

    0%,
    100% {
        height: 5px;
    }

    50% {
        height: 15px;
    }
}

.ai-voice-visualizer.idle .bar {
    animation: idleBeat 1.5s infinite ease-in-out;
}

.ai-voice-visualizer.idle .bar:nth-child(1) {
    animation-delay: 0s;
}

.ai-voice-visualizer.idle .bar:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-voice-visualizer.idle .bar:nth-child(3) {
    animation-delay: 0.4s;
}

.ai-voice-visualizer.idle .bar:nth-child(4) {
    animation-delay: 0.6s;
}

.ai-voice-visualizer.idle .bar:nth-child(5) {
    animation-delay: 0.4s;
}

.ai-voice-visualizer.idle .bar:nth-child(6) {
    animation-delay: 0.2s;
}

.ai-voice-visualizer.idle .bar:nth-child(7) {
    animation-delay: 0s;
}

/* Active state is handled by JS by directly setting height */


/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    perspective: 1200px;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.8),
        inset 0 0 0 2px rgba(0, 240, 255, 0.2),
        0 0 30px rgba(0, 240, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    /* 3D Transform properties for VanillaTilt */
    transform-style: preserve-3d;
    transform: translateZ(30px);
}

.modal.show .modal-content {
    animation: hologramConstruct 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes hologramConstruct {
    0% {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
        transform: translateY(50px) scale(0.95);
        filter: drop-shadow(0 0 10px #00f0ff);
        box-shadow: 0 -5px 15px #00f0ff, inset 0 -5px 10px #00f0ff;
    }

    50% {
        opacity: 0.8;
        transform: translateY(10px) scale(0.98);
        box-shadow: 0 -2px 10px #00f0ff, inset 0 -2px 5px #00f0ff;
    }

    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateY(0) scale(1);
    }
}

.modal-content::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    height: 2px;
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.modal.show .modal-content::after {
    animation: scanDraw 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes scanDraw {
    0% {
        top: 100%;
        opacity: 1;
    }

    90% {
        top: 0%;
        opacity: 1;
    }

    100% {
        top: 0%;
        opacity: 0;
    }
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 380px;
    position: relative;
    transform: translateY(40px) scale(0.9) rotateX(-10deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center bottom;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1) rotateX(0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

.close-btn:hover {
    color: white;
}

.modal-header {
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(to right, #10b981, #6ee7b7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.qr-container {
    background: white;
    padding: 1.25rem;
    border-radius: 20px;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 0 0 2px rgba(16, 185, 129, 0.3);
    position: relative;
    animation: floatQR 3s ease-in-out infinite;
}

@keyframes floatQR {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.qr-image {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
    border-radius: 8px;
}

.account-info {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-name {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: #f8fafc;
}

.account-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #34d399;
    font-family: monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

.bank-name {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    font-weight: 600;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-toast {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #10b981;
    color: white;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 10;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .name {
        font-size: 1.35rem;
    }

    .link-text {
        font-size: 0.95rem;
    }
}

/* AI Vision Toggle Button */
.ai-vision-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 15, 28, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #00f0ff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.ai-vision-toggle:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.ai-vision-toggle:active {
    transform: translateY(0);
}

.ai-vision-toggle .vision-status {
    color: #ff0055;
    text-shadow: 0 0 8px #ff0055;
}

.ai-vision-toggle .vision-status.on {
    color: #4ade80;
    text-shadow: 0 0 8px #4ade80;
}

/* ============================================================
   Facebook Group Highlight Card - Green Matrix Style
   ============================================================ */
.cyber-social-fb-group {
    background: linear-gradient(135deg,
        rgba(10, 15, 28, 0.85) 0%,
        rgba(5, 46, 22, 0.6) 50%,
        rgba(10, 15, 28, 0.85) 100%) !important;
    box-shadow:
        inset 0 0 0 1px rgba(74, 222, 128, 0.35),
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(74, 222, 128, 0.08) !important;
    border-radius: 14px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
}

.cyber-social-fb-group:hover {
    box-shadow:
        inset 0 0 0 1px rgba(74, 222, 128, 0.7),
        0 8px 30px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(74, 222, 128, 0.25) !important;
    transform: translateY(-3px) scale(1.01) !important;
}

/* Scanline sweep for fb-group */
.fbg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
    z-index: 0;
}

.fbg-effects .scanline {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
        transparent,
        rgba(74, 222, 128, 0.12),
        rgba(74, 222, 128, 0.25),
        rgba(74, 222, 128, 0.12),
        transparent);
    animation: fbgScan 3s ease-in-out infinite;
}

@keyframes fbgScan {
    0% { left: -100%; }
    100% { left: 150%; }
}

.fbg-effects .pulse-orb {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.3) 0%, transparent 70%);
    animation: fbgPulse 2.5s ease-in-out infinite alternate;
}

@keyframes fbgPulse {
    0% { transform: translateY(-50%) scale(1); opacity: 0.5; }
    100% { transform: translateY(-50%) scale(1.4); opacity: 1; }
}

/* Floating CTA for Facebook Group */
.cta-fb-group {
    top: -15px;
    left: 20px;
    transform: rotate(-10deg);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(22, 101, 52, 0.2));
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #4ade80 !important;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
    letter-spacing: 2px;
    font-size: 0.7rem;
    animation: ctaFbGroupPulse 2s ease-in-out infinite alternate;
}

@keyframes ctaFbGroupPulse {
    from {
        box-shadow: 0 0 10px rgba(74, 222, 128, 0.15);
        transform: translateY(0) rotate(-10deg);
    }
    to {
        box-shadow: 0 0 25px rgba(74, 222, 128, 0.4);
        transform: translateY(-5px) rotate(-8deg);
    }
}

/* z-10 utility for stacking above cyber-effects */
.z-10 {
    position: relative;
    z-index: 10;
}

/* Sản Phẩm Win featured card */
.swin-wrapper { margin-top: 0.6rem; }

.swin-card {
    padding: 1.15rem 1.35rem !important;
    background: linear-gradient(135deg, rgba(10, 15, 28, 0.9) 0%, rgba(120, 72, 0, 0.55) 45%, rgba(8, 90, 98, 0.55) 100%) !important;
    box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.75), 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 36px rgba(251, 191, 36, 0.35) !important;
    border-radius: 16px !important;
    animation: slideUpFade 0.6s ease-out backwards, swinGlow 2.2s ease-in-out infinite alternate !important;
}

.swin-card:hover {
    box-shadow: inset 0 0 0 2px rgba(253, 224, 71, 1), 0 10px 32px rgba(0, 0, 0, 0.6), 0 0 55px rgba(251, 191, 36, 0.6) !important;
    transform: translateY(-3px) scale(1.015) !important;
}

@keyframes swinGlow {
    from { box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.6), 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 22px rgba(251, 191, 36, 0.25); }
    to { box-shadow: inset 0 0 0 2px rgba(253, 224, 71, 0.95), 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 48px rgba(31, 200, 214, 0.45); }
}

.swin-effects { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; z-index: 0; }

.swin-effects .scanline {
    position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(253, 224, 71, 0.18), rgba(253, 224, 71, 0.32), rgba(253, 224, 71, 0.18), transparent);
    animation: fbgScan 2.6s ease-in-out infinite;
}

.swin-effects .pulse-orb {
    position: absolute; right: -24px; top: 50%; width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 200, 214, 0.4) 0%, transparent 70%);
    animation: fbgPulse 2.2s ease-in-out infinite alternate;
}

.swin-icon .link-icon { font-size: 1.9rem; color: #fbbf24; filter: drop-shadow(0 0 12px #fbbf24); }

.swin-title { font-size: 1.2rem !important; font-weight: 800 !important; color: #fff !important; text-shadow: 0 0 10px rgba(251, 191, 36, 0.9); letter-spacing: 0.5px; }

.swin-sub { color: #fde68a !important; }

.swin-go {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 0.5rem;
    padding: 0.3rem 0.75rem; border-radius: 999px; background: linear-gradient(135deg, #fbbf24, #1fc8d6);
    color: #0a0f1c; font-size: 0.78rem; font-weight: 800; box-shadow: 0 0 14px rgba(251, 191, 36, 0.5);
}

.badge-swin { background: linear-gradient(135deg, #fbbf24, #f97316) !important; color: #000 !important; box-shadow: 0 0 12px rgba(251, 191, 36, 0.7); border: 1px solid rgba(253, 224, 71, 0.8); z-index: 11; }

.cta-swin { top: -15px; left: 20px; background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; text-shadow: 0 0 6px rgba(0, 0, 0, 0.6); box-shadow: 0 0 16px rgba(251, 191, 36, 0.55); letter-spacing: 1px; }
.swin-card .text-wrapper { padding-right: 0.5rem; }

.swin-go { white-space: nowrap; }

/* Tạp Hóa Ông Chú MMO featured card */
.store-wrapper { margin-top: 0.6rem; }

.store-card {
    padding: 1.15rem 1.35rem !important;
    background: linear-gradient(135deg, rgba(10, 15, 28, 0.9) 0%, rgba(150, 40, 10, 0.6) 45%, rgba(190, 24, 93, 0.5) 100%) !important;
    box-shadow: inset 0 0 0 2px rgba(251, 146, 60, 0.8), 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 36px rgba(249, 115, 22, 0.4) !important;
    border-radius: 16px !important;
    animation: slideUpFade 0.6s ease-out backwards, storeGlow 2s ease-in-out infinite alternate !important;
}

.store-card:hover {
    box-shadow: inset 0 0 0 2px rgba(253, 186, 116, 1), 0 10px 32px rgba(0, 0, 0, 0.6), 0 0 55px rgba(249, 115, 22, 0.65) !important;
    transform: translateY(-3px) scale(1.015) !important;
}

@keyframes storeGlow {
    from { box-shadow: inset 0 0 0 2px rgba(251, 146, 60, 0.6), 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 22px rgba(249, 115, 22, 0.3); }
    to { box-shadow: inset 0 0 0 2px rgba(253, 186, 116, 0.95), 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 48px rgba(236, 72, 153, 0.5); }
}

.store-effects { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; z-index: 0; }

.store-effects .scanline {
    position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(253, 186, 116, 0.18), rgba(253, 186, 116, 0.32), rgba(253, 186, 116, 0.18), transparent);
    animation: fbgScan 2.4s ease-in-out infinite;
}

.store-effects .pulse-orb {
    position: absolute; right: -24px; top: 50%; width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, transparent 70%);
    animation: fbgPulse 2s ease-in-out infinite alternate;
}

.store-icon .link-icon { font-size: 1.8rem; color: #fb923c; filter: drop-shadow(0 0 12px #f97316); }

.store-title { font-size: 1.2rem !important; font-weight: 800 !important; color: #fff !important; text-shadow: 0 0 10px rgba(249, 115, 22, 0.9); letter-spacing: 0.5px; }

.store-sub { color: #fed7aa !important; }

.store-go {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 0.5rem; white-space: nowrap;
    padding: 0.3rem 0.75rem; border-radius: 999px; background: linear-gradient(135deg, #fb923c, #ec4899);
    color: #fff; font-size: 0.78rem; font-weight: 800; box-shadow: 0 0 14px rgba(249, 115, 22, 0.55);
}

.badge-store { background: linear-gradient(135deg, #f97316, #ec4899) !important; color: #fff !important; box-shadow: 0 0 12px rgba(249, 115, 22, 0.7); border: 1px solid rgba(253, 186, 116, 0.8); z-index: 11; }

.cta-store { top: -15px; left: 20px; background: linear-gradient(135deg, #ea580c, #be185d); color: #fff; text-shadow: 0 0 6px rgba(0, 0, 0, 0.6); box-shadow: 0 0 16px rgba(249, 115, 22, 0.55); letter-spacing: 1px; }
.store-card .text-wrapper { padding-right: 0.5rem; }

@media (prefers-reduced-motion: reduce) { .store-card, .store-effects * { animation: none !important; } }

/* Game treo LIVE TikTok card, right below Sản Phẩm Win: TikTok cyan and pink */
.live-wrapper { margin-top: 0.6rem; }

.live-card {
    padding: 1.15rem 1.35rem !important;
    background: linear-gradient(135deg, rgba(10, 15, 28, 0.9) 0%, rgba(150, 12, 48, 0.55) 45%, rgba(8, 110, 120, 0.55) 100%) !important;
    box-shadow: inset 0 0 0 2px rgba(254, 44, 85, 0.8), 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 36px rgba(254, 44, 85, 0.4) !important;
    border-radius: 16px !important;
    animation: slideUpFade 0.6s ease-out backwards, liveGlow 2.1s ease-in-out infinite alternate !important;
}

.live-card:hover {
    box-shadow: inset 0 0 0 2px rgba(255, 120, 150, 1), 0 10px 32px rgba(0, 0, 0, 0.6), 0 0 55px rgba(254, 44, 85, 0.65) !important;
    transform: translateY(-3px) scale(1.015) !important;
}

@keyframes liveGlow {
    from { box-shadow: inset 0 0 0 2px rgba(254, 44, 85, 0.6), 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 22px rgba(254, 44, 85, 0.3); }
    to { box-shadow: inset 0 0 0 2px rgba(37, 244, 238, 0.9), 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 48px rgba(37, 244, 238, 0.45); }
}

.live-effects { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; z-index: 0; }

.live-effects .scanline {
    position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(37, 244, 238, 0.16), rgba(37, 244, 238, 0.3), rgba(37, 244, 238, 0.16), transparent);
    animation: fbgScan 2.5s ease-in-out infinite;
}

.live-effects .pulse-orb {
    position: absolute; right: -24px; top: 50%; width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 44, 85, 0.45) 0%, transparent 70%);
    animation: fbgPulse 2.1s ease-in-out infinite alternate;
}

.live-icon .link-icon { font-size: 1.8rem; color: #25f4ee; filter: drop-shadow(0 0 12px #fe2c55); }

.live-title { font-size: 1.2rem !important; font-weight: 800 !important; color: #fff !important; text-shadow: 0 0 10px rgba(254, 44, 85, 0.9); letter-spacing: 0.5px; }

.live-sub { color: #a5f3fc !important; }

.live-go {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 0.5rem; white-space: nowrap;
    padding: 0.3rem 0.75rem; border-radius: 999px; background: linear-gradient(135deg, #fe2c55, #25f4ee);
    color: #0a0f1c; font-size: 0.78rem; font-weight: 800; box-shadow: 0 0 14px rgba(254, 44, 85, 0.55);
}

.badge-live { background: linear-gradient(135deg, #fe2c55, #f97316) !important; color: #fff !important; box-shadow: 0 0 12px rgba(254, 44, 85, 0.7); border: 1px solid rgba(255, 150, 170, 0.8); z-index: 11; }

.cta-live { top: -15px; left: 20px; background: linear-gradient(135deg, #e11d48, #0e7490); color: #fff; text-shadow: 0 0 6px rgba(0, 0, 0, 0.6); box-shadow: 0 0 16px rgba(254, 44, 85, 0.55); letter-spacing: 1px; }
.live-card .text-wrapper { padding-right: 0.5rem; }

@media (prefers-reduced-motion: reduce) { .live-card, .live-effects * { animation: none !important; } }
