@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Chakra+Petch:wght@400;500;600;700&display=swap');

/* =========================================
   Base Styles & Typography
   ========================================= */
html,
body {
    font-family: 'Inter', sans-serif;
    background-color: #050510;
    color: #e2e8f0;
    overflow-x: hidden;
    width: 100%;
}

.display-font,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Chakra Petch', sans-serif;
}

/* =========================================
   Background & Universe Effects
   ========================================= */
.bg-universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #050510 100%);
}

.nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.15) 0%, transparent 40%);
    animation: pulse-slow 10s ease-in-out infinite alternate;
}

/* Restored Star Class for JS Animation */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: blink 3s infinite;
}

/* =========================================
   Glassmorphism & Cards
   ========================================= */
.glass-header {
    background: rgba(5, 5, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.text-glow {
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

/* =========================================
   Buttons
   ========================================= */
.btn-liquid {
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: linear-gradient(90deg, #0ea5e9, #7c3aed);
    transition: all 0.3s ease;
}

.btn-liquid:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.btn-liquid::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-liquid:hover::after {
    left: 100%;
}

/* =========================================
   Scroll Animations
   ========================================= */
.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

/* =========================================
   3D Scene & Animations
   ========================================= */
.scene-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Cyber Cube */
.cyber-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(45deg);
    animation: cube-spin 20s linear infinite;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(14, 165, 233, 0.5);
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2) inset;
    backdrop-filter: blur(2px);
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}

.face-front {
    transform: translateZ(100px);
}

.face-back {
    transform: rotateY(180deg) translateZ(100px);
}

.face-right {
    transform: rotateY(90deg) translateZ(100px);
}

.face-left {
    transform: rotateY(-90deg) translateZ(100px);
}

.face-top {
    transform: rotateX(90deg) translateZ(100px);
}

.face-bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

/* Server Stack */
.server-stack {
    position: relative;
    width: 300px;
    height: 400px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: rotateY(-15deg);
}

.server-unit {
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #1e293b, #0f172a, #1e293b);
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 20px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
    transition: all 0.3s ease;
}

.server-unit:hover {
    transform: translateZ(20px);
    border-color: #0ea5e9;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

.server-leds {
    display: flex;
    gap: 8px;
}

.led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: blink 2s infinite;
}

.led:nth-child(2) {
    animation-delay: 0.5s;
    background: #0ea5e9;
    box-shadow: 0 0 10px #0ea5e9;
}

.led:nth-child(3) {
    animation-delay: 1s;
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}

/* Galaxy System Animation (Space Theme) */
.galaxy-system {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.galaxy-sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #f97316, #ef4444);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.6);
    animation: sun-pulse 3s infinite alternate;
}

.galaxy-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit-1 {
    width: 160px;
    height: 160px;
    animation: orbit-spin 10s linear infinite;
}

.orbit-2 {
    width: 220px;
    height: 220px;
    animation: orbit-spin 15s linear infinite reverse;
}

/* Holographic Cloud Network (Premium Tech Theme) */
.holographic-cloud {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.holographic-cloud * {
    transform-style: flat !important;
}

/* Base Disc Glow */
.holo-mesh {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-radius: 50%;
    box-shadow: inset 0 0 50px rgba(34, 211, 238, 0.05);
    animation: pulse-glow 5s infinite alternate;
}

/* Connecting Rings */
.holo-orbit-1 {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 320px;
    height: 320px;
    border: 1px dashed rgba(34, 211, 238, 0.2);
    border-radius: 50%;
    animation: spin-slow 40s linear infinite;
}

.holo-orbit-2 {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-radius: 50%;
    animation: spin-reverse 60s linear infinite;
}

/* Central Core */
.holo-core {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 20;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 211, 238, 0.5);
    border-radius: 50%;
    box-shadow:
        0 0 30px rgba(34, 211, 238, 0.2),
        inset 0 0 20px rgba(34, 211, 238, 0.1);
    animation: float-gentle 4s ease-in-out infinite;
}

/* Satellite Icons (Glass Bubbles) */
.holo-sat {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #22d3ee;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.holo-sat:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: #22d3ee;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
    transform: scale(1.1);
    cursor: pointer;
}

/* Positions (Fixed Layout) */
.hs-1 {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Top */
.hs-2 {
    bottom: 20%;
    left: 15%;
}

/* Bottom Left */
.hs-3 {
    bottom: 20%;
    right: 15%;
}

/* Bottom Right */
.hs-4 {
    top: 25%;
    left: 10%;
}

/* Top Left */
.hs-5 {
    top: 25%;
    right: 10%;
}

/* Top Right */

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes scan-vertical {
    0% {
        transform: translateY(-90px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(90px);
        opacity: 0;
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}


@keyframes orbit-spin {
    from {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}


/* Holographic Globe / Gyroscope */
.gyroscope {
    width: 300px;
    height: 300px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    /* Centering */
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    animation: float-centered 6s ease-in-out infinite;
}

.gyro-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.ring-outer {
    width: 300px;
    height: 300px;
    border-bottom-color: transparent;
    border-width: 3px;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
    animation: rotate-x 10s linear infinite;
}

.ring-middle {
    width: 240px;
    height: 240px;
    border: 2px solid rgba(124, 58, 237, 0.4);
    border-left-color: transparent;
    animation: rotate-y 8s linear infinite reverse;
}

.ring-inner {
    width: 180px;
    height: 180px;
    border: 2px dashed rgba(244, 63, 94, 0.8);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
    animation: rotate-z 12s linear infinite;
}

.globe-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #0ea5e9, #0f172a);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.6);
}

.holo-globe {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.1), transparent),
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(14, 165, 233, 0.2) 3px);
    border: 1px solid rgba(14, 165, 233, 0.3);
    position: relative;
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.2);
    animation: globe-spin 20s linear infinite;
}

.holo-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff;
}

.hp-1 {
    top: 30%;
    left: 40%;
    animation: pulse-fast 2s infinite;
}

.hp-2 {
    top: 60%;
    left: 70%;
    animation: pulse-fast 3s infinite;
}

.hp-3 {
    top: 45%;
    left: 20%;
    animation: pulse-fast 2.5s infinite;
}

/* Floating Particles & Models */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.p1 {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation: float 5s infinite;
}

.p2 {
    width: 6px;
    height: 6px;
    top: 60%;
    right: 15%;
    animation: float 7s infinite reverse;
}

.p3 {
    width: 3px;
    height: 3px;
    bottom: 30%;
    left: 40%;
    animation: float 4s infinite 1s;
}

.tech-grid {
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 500px;
    transform: rotateX(60deg);
    opacity: 0.3;
}

.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(14, 165, 233, 0.5);
}

.pricing-card.popular {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.1);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: #0ea5e9;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.05);
}

.footer-link {
    position: relative;
    display: inline-block;
    transition: color 0.3s;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #0ea5e9;
    transition: width 0.3s;
}

.footer-link:hover::after {
    width: 100%;
}

.model-3d-container {
    perspective: 1000px;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyber-scene {
    perspective: 1000px;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-platform {
    position: absolute;
    bottom: 50px;
    left: 50%;
    /* Center Horizontally */
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0.05) 60%, transparent 70%);
    transform: translateX(-50%) rotateX(70deg);
    /* Apply centering + Rotation */
    border: 2px solid rgba(14, 165, 233, 0.6);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.3), inset 0 0 20px rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    animation: pulse-slow 4s infinite;
}

.tech-platform::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 1px dashed rgba(14, 165, 233, 0.5);
    border-radius: 50%;
    animation: spin-centered 10s linear infinite;
}

.tech-platform::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.floating-icon {
    position: absolute;
    z-index: 10;
    padding: 15px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.tp-1 {
    top: 30%;
    left: 35%;
    animation: float-p1 5s ease-in-out infinite;
}

.tp-2 {
    bottom: 35%;
    right: 35%;
    animation: float-p2 7s ease-in-out infinite;
}

.tp-3 {
    top: 50%;
    left: 65%;
    /* Positioned to the right of center */
    margin-left: 20px;
    animation: float-p3 6s ease-in-out infinite;
}

/* =========================================
   Keyframe Definitions
   ========================================= */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-centered {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -20px);
    }
}

@keyframes cube-spin {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes globe-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-x {
    0% {
        transform: translate(-50%, -50%) rotateX(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(360deg);
    }
}

@keyframes rotate-y {
    0% {
        transform: translate(-50%, -50%) rotateY(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateY(360deg);
    }
}

@keyframes rotate-z {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes core-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes float-p1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -30px);
    }
}

@keyframes float-p2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 20px);
    }
}

@keyframes float-p3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 10px);
    }
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-centered {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes rotate-texture {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

@keyframes pulse-slow {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulse-fast {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Fix for Missing 3D Globe Animation */
@keyframes spin-earth {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotateY(360deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

/* =========================================
   Utility / Overrides
   ========================================= */
/* Hide Spin Buttons in Number Input */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =========================================
   Solar System Animation (VPS Nhieu RAM)
   ========================================= */
.solar-system-container {
    perspective: 1200px;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Removed overflow: hidden so glow isn't cut off */
}

.solar-system {
    position: relative;
    width: 450px;
    height: 450px;
    transform-style: preserve-3d;
    transform: rotateX(60deg);
}

.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(-60deg);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #a855f7 20%, #3b82f6 100%);
    border-radius: 50%;
    box-shadow:
        0 0 60px rgba(168, 85, 247, 0.8),
        0 0 100px rgba(59, 130, 246, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 20;
    animation: pulse-sun 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    /* VISIBLE BORDER */
    border-radius: 50%;
    transform-style: preserve-3d;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    /* GLOW */
}

.orbit-1 {
    width: 220px;
    height: 220px;
    border-color: rgba(59, 130, 246, 0.6);
    /* High Vis Blue */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    animation: spin-orbit 8s linear infinite;
}

.orbit-2 {
    width: 340px;
    height: 340px;
    border-color: rgba(168, 85, 247, 0.6);
    /* High Vis Purple */
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    animation: spin-orbit 12s linear infinite reverse;
}

.orbit-3 {
    width: 460px;
    height: 460px;
    border-color: rgba(14, 165, 233, 0.6);
    /* High Vis Cyan */
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
    animation: spin-orbit 20s linear infinite;
}

.planet {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.5);
    /* Strong border */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    z-index: 30;
    /* Counter-rotate: orbit rotation + system tilt compensation */
    animation: counter-spin-planet 8s linear infinite;
}

/* Specific planet animations to match their orbit speeds */
.orbit-1 .planet {
    animation-duration: 8s;
}

.orbit-2 .planet {
    animation-duration: 12s;
    animation-direction: reverse;
}

.orbit-3 .planet {
    animation-duration: 20s;
}

@keyframes spin-orbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse-sun {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateX(-60deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) rotateX(-60deg) scale(1.1);
        opacity: 0.8;
    }
}

/* Complex counter-rotation to keep icons facing user while orbiting in 3D 
   Includes compensation for the orbit rotation AND the system's X-axis tilt */
@keyframes counter-spin-planet {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) rotateX(-60deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg) rotateX(-60deg);
    }
}

/* =========================================
   "Infinite Black Hole" (VPS Gia Re - Redesign)
   ========================================= */
.blackhole-container {
    width: 100%;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Ensure no scrollbars */
}

/* Central System */
.blackhole-system {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Core (Event Horizon) */
.bh-core {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #000;
    box-shadow:
        0 0 20px rgba(0, 0, 0, 1),
        0 0 40px rgba(168, 85, 247, 0.6),
        /* Purple Glow */
        0 0 80px rgba(56, 189, 248, 0.4);
    /* Blue Glow */
    z-index: 10;
    animation: bh-pulse 4s infinite ease-in-out;
}

/* Accretion Disk (Spinning Rings) */
.bh-accretion-disk {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 4px solid rgba(56, 189, 248, 0.8);
    border-left: 2px solid rgba(168, 85, 247, 0.5);
    filter: blur(1px);
    animation: bh-spin 6s linear infinite;
}

.bh-disk-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 50px rgba(168, 85, 247, 0.2);
    animation: bh-spin 12s linear infinite reverse;
}

/* Components getting sucked in */
.bh-component {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
    z-index: 5;
    opacity: 0;
}

/* Animation Delays & Positions */
.c-ram {
    top: 20%;
    right: 20%;
    animation: implode 5s ease-in infinite;
}

.c-ssd {
    bottom: 25%;
    right: 25%;
    animation: implode 6s ease-in infinite 1.5s;
}

.c-chip {
    top: 50%;
    right: 15%;
    animation: implode 5.5s ease-in infinite 0.5s;
}

/* Background Stars */
.bh-star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: implode-star 4s linear infinite;
}

.s-1 {
    width: 2px;
    height: 2px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.s-2 {
    width: 3px;
    height: 3px;
    bottom: 10%;
    right: 15%;
    animation-delay: 1s;
}

.s-3 {
    width: 1px;
    height: 1px;
    top: 40%;
    right: 5%;
    animation-delay: 2s;
}

/* Keyframes */
@keyframes bh-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bh-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(56, 189, 248, 0.8);
    }
}

@keyframes implode {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes implode-star-refined {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    100% {
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%) scale(0.5);
        opacity: 0;
    }
}

/* =========================================
   Cosmic Debris Extensions
   ========================================= */

/* Generic Object Sucked In */
.bh-object {
    position: absolute;
    opacity: 0;
    z-index: 4;
}

/* Planets */
.obj-planet-1 {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #7f1d1d);
    /* Red planet */
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.5) inset;
    top: 80%;
    right: 10%;
    animation: implode-spiral 7s linear infinite 1s;
}

.obj-planet-2 {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    /* Blue planet */
    top: 10%;
    right: 40%;
    animation: implode-spiral 8s linear infinite 0.5s;
}

/* Satellite */
.obj-satellite {
    top: 50%;
    right: 5%;
    transform: rotate(45deg);
    animation: implode-spiral-wild 6s ease-in infinite 2.5s;
}

/* Meteors */
.obj-meteor-1 {
    width: 6px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, #fff);
    transform: rotate(45deg);
    top: 5%;
    right: 20%;
    animation: meteor-strike 4s ease-in infinite 0.2s;
}

.obj-meteor-2 {
    width: 4px;
    height: 15px;
    background: linear-gradient(to bottom, transparent, #fca5a5);
    transform: rotate(30deg);
    bottom: 20%;
    right: 5%;
    animation: meteor-strike 5s ease-in infinite 1.8s;
}

.obj-meteor-3 {
    width: 3px;
    height: 12px;
    background: linear-gradient(to bottom, transparent, #93c5fd);
    transform: rotate(60deg);
    top: 40%;
    right: 0%;
    animation: meteor-strike 3.5s ease-in infinite 3s;
}

/* Space Dust / Small Debris */
.bh-dust {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 2px;
    height: 2px;
    opacity: 0;
}

.d-1 {
    top: 20%;
    right: 5%;
    animation: implode-dust 3s linear infinite;
}

.d-2 {
    top: 60%;
    right: 5%;
    animation: implode-dust 4s linear infinite 0.5s;
}

.d-3 {
    top: 80%;
    right: 10%;
    animation: implode-dust 2.5s linear infinite 1.2s;
}

.d-4 {
    top: 10%;
    right: 30%;
    animation: implode-dust 5s linear infinite 2s;
}

.d-5 {
    bottom: 5%;
    right: 20%;
    animation: implode-dust 3.5s linear infinite 1.5s;
}


/* New chaotic animations */
@keyframes implode-spiral {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%) scale(0) rotate(720deg);
        opacity: 0;
    }
}

@keyframes implode-spiral-wild {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: 1;
        transform: translate(-20px, 20px) rotate(90deg);
    }

    100% {
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%) scale(0) rotate(1080deg);
        opacity: 0;
    }
}

@keyframes meteor-strike {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%) scale(0.1);
        opacity: 0;
    }
}

@keyframes implode-dust {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    30% {
        opacity: 0.6;
    }

    100% {
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
        opacity: 0;
    }

}

/* =========================================
   "Advanced Satellite Network" (VPS Siêu Sale)
   ========================================= */
.satellite-network-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: visible;
}

/* 3D Globe */
.geo-globe {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: globe-spin 20s linear infinite;
}

.globe-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.3);
    background:
        repeating-linear-gradient(0deg, transparent 0, transparent 19px, rgba(14, 165, 233, 0.1) 20px),
        repeating-linear-gradient(90deg, transparent 0, transparent 19px, rgba(14, 165, 233, 0.1) 20px);
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.2) inset;
    transform: rotateX(15deg);
}

.globe-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

.scanner-beam {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #38bdf8, transparent);
    box-shadow: 0 0 15px #38bdf8;
    transform-origin: center;
    animation: scan-globe 4s linear infinite;
    opacity: 0.8;
}

/* Orbital System */
.orbital-system {
    position: absolute;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
}

.sat-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.sat-ring-1 {
    width: 300px;
    height: 300px;
    border-color: rgba(6, 182, 212, 0.2);
    transform: translate(-50%, -50%) rotateX(60deg) rotateY(-15deg);
    animation: ring-spin-1 12s linear infinite;
}

.sat-ring-2 {
    width: 380px;
    height: 380px;
    border-color: rgba(168, 85, 247, 0.2);
    transform: translate(-50%, -50%) rotateX(-60deg) rotateY(15deg);
    animation: ring-spin-2 15s linear infinite;
}

.sat-ring-3 {
    width: 450px;
    height: 450px;
    border-color: rgba(239, 68, 68, 0.2);
    transform: translate(-50%, -50%) rotateX(75deg);
    animation: ring-spin-1 20s linear infinite reverse;
}

/* Satellite Units */
.sat-unit {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Keep icon upright counter-rotation handled in keyframe or wrapper? */
    /* Simple: Just let them spin with the ring for now, 3D effect implies orientation */
}

.signal-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid currentColor;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: signal-pulse 2s ease-out infinite;
}

/* Data Particles */
.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    opacity: 0;
}

.dp-1 {
    animation: data-flow 3s linear infinite;
    top: 50%;
    left: 50%;
}

.dp-2 {
    animation: data-flow 4s linear infinite 1s;
    top: 50%;
    left: 50%;
}

.dp-3 {
    animation: data-flow 3.5s linear infinite 0.5s;
    top: 40%;
    left: 60%;
}

.dp-4 {
    animation: data-flow 5s linear infinite 2s;
    top: 60%;
    left: 40%;
}

.dp-5 {
    animation: data-flow 4.5s linear infinite 1.5s;
    top: 30%;
    left: 30%;
}


/* Keyframes */
@keyframes globe-spin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

@keyframes scan-globe {
    0% {
        transform: rotateY(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: rotateY(360deg);
        opacity: 0;
    }
}

@keyframes ring-spin-1 {
    from {
        transform: translate(-50%, -50%) rotateX(60deg) rotateY(-15deg) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateX(60deg) rotateY(-15deg) rotate(360deg);
    }
}

@keyframes ring-spin-2 {
    from {
        transform: translate(-50%, -50%) rotateX(-60deg) rotateY(15deg) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateX(-60deg) rotateY(15deg) rotate(360deg);
    }
}

@keyframes signal-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

@keyframes data-flow {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx, 100px), var(--ty, -100px)) scale(0);
        opacity: 0;
    }
}

/* =========================================
   Restored Background Animations
   ========================================= */
.bg-universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050510;
    z-index: -1;
    overflow: hidden;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: nebula-pulse 15s ease-in-out infinite alternate;
}

.nebula:nth-child(1) {
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}

.nebula:nth-child(2) {
    bottom: -20%;
    right: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes nebula-pulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* =========================================
   Standardized Star Background (Enhanced)
   ========================================= */
.bg-stars {
    position: absolute;
    inset: 0;
    /* Layer 1: Static/Slow Stars */
    background-image:
        radial-gradient(1.5px 1.5px at 50px 50px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 120px 220px, #a855f7, rgba(0, 0, 0, 0)),
        /* Purple */
        radial-gradient(2px 2px at 350px 350px, #ffffff, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 500px 500px;
    opacity: 0.8;
}

/* Layer 2: Medium Twinkle */
.bg-stars::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 200px 100px, #0ea5e9, rgba(0, 0, 0, 0)),
        /* Cyan */
        radial-gradient(1.5px 1.5px at 50px 180px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(3px 3px at 400px 400px, #ffffff, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 400px 400px;
    animation: twinkle-opacity 4s infinite ease-in-out;
}

/* Layer 3: Fast/Bright Twinkle */
.bg-stars::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 300px 50px, #f472b6, rgba(0, 0, 0, 0)),
        /* Pink */
        radial-gradient(1.5px 1.5px at 100px 300px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2.5px 2.5px at 250px 250px, #38bdf8, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: twinkle-opacity 2.5s infinite ease-in-out reverse;
}

@keyframes twinkle-opacity {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}