/* ===== Variables ===== */
:root {
    --primary: #00f5ff;
    --secondary: #7c3aed;
    --accent: #f472b6;
    --bg-dark: #030014;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glow-cyan: 0 0 30px rgba(0, 245, 255, 0.5);
    --glow-purple: 0 0 30px rgba(124, 58, 237, 0.5);
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ===== Animated Stars Background ===== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.stars,
.stars2,
.stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.stars {
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255, 255, 255, 0.7), transparent);
    background-size: 350px 350px;
    animation: starsMove 100s linear infinite;
}

.stars2 {
    background-image:
        radial-gradient(1px 1px at 50px 160px, rgba(0, 245, 255, 0.8), transparent),
        radial-gradient(2px 2px at 180px 60px, rgba(124, 58, 237, 0.6), transparent),
        radial-gradient(1px 1px at 280px 200px, rgba(244, 114, 182, 0.7), transparent),
        radial-gradient(2px 2px at 120px 280px, rgba(0, 245, 255, 0.5), transparent);
    background-size: 400px 400px;
    animation: starsMove 80s linear infinite reverse;
}

.stars3 {
    background-image:
        radial-gradient(3px 3px at 100px 200px, rgba(0, 245, 255, 0.9), transparent),
        radial-gradient(2px 2px at 250px 100px, rgba(124, 58, 237, 0.8), transparent),
        radial-gradient(3px 3px at 50px 50px, rgba(255, 255, 255, 0.6), transparent);
    background-size: 500px 500px;
    animation: starsTwinkle 4s ease-in-out infinite;
}

@keyframes starsMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

@keyframes starsTwinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ===== Aurora Effect ===== */
.aurora {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.05) 0%, transparent 60%);
    animation: auroraMove 15s ease-in-out infinite alternate;
}

@keyframes auroraMove {
    0% {
        transform: rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(20deg) scale(1.1);
    }
}

/* ===== Grid Overlay ===== */
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* ===== Particles ===== */
.particles {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
    animation: particleFloat 8s infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }

    100% {
        transform: translateY(0vh) scale(0);
        opacity: 0;
    }
}

/* ===== Scanlines ===== */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px);
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

/* ===== Main Container ===== */
.main-container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Logo Container ===== */
.logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
}

.logo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-outer {
    inset: 0;
    border-color: rgba(0, 245, 255, 0.3);
    animation: ringRotate 10s linear infinite;
}

.ring-middle {
    inset: 20px;
    border-color: rgba(124, 58, 237, 0.4);
    animation: ringRotate 8s linear infinite reverse;
}

.ring-inner {
    inset: 40px;
    border-color: rgba(244, 114, 182, 0.3);
    animation: ringRotate 6s linear infinite;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-core {
    position: absolute;
    inset: 55px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 40px rgba(0, 245, 255, 0.4),
        0 0 80px rgba(124, 58, 237, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(0, 245, 255, 0.4), 0 0 80px rgba(124, 58, 237, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(0, 245, 255, 0.6), 0 0 100px rgba(124, 58, 237, 0.5);
    }
}

.dns-icon {
    width: 45px;
    height: 45px;
    color: white;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: iconSpin 10s linear infinite;
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
}

.dot-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitDot1 10s linear infinite;
}

.dot-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--secondary);
    box-shadow: var(--glow-purple);
    animation: orbitDot2 8s linear infinite;
}

.dot-3 {
    bottom: 20px;
    left: 20px;
    background: var(--accent);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.5);
    animation: orbitDot3 6s linear infinite;
}

@keyframes orbitDot1 {
    0% {
        transform: translateX(-50%) rotate(0deg) translateY(-90px) rotate(0deg);
    }

    100% {
        transform: translateX(-50%) rotate(360deg) translateY(-90px) rotate(-360deg);
    }
}

@keyframes orbitDot2 {
    0% {
        transform: translateY(-50%) rotate(0deg) translateX(90px) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(-360deg) translateX(90px) rotate(360deg);
    }
}

@keyframes orbitDot3 {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

/* ===== Main Title ===== */
.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.glitch {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitchText 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before {
    animation: glitchBefore 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    animation: glitchAfter 2s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitchText {

    0%,
    90%,
    100% {
        opacity: 1;
    }

    92% {
        opacity: 0.8;
    }

    94% {
        opacity: 1;
    }
}

@keyframes glitchBefore {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }
}

@keyframes glitchAfter {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(3px);
    }

    40% {
        transform: translateX(-3px);
    }

    60% {
        transform: translateX(2px);
    }

    80% {
        transform: translateX(-2px);
    }
}

/* ===== Subtitle ===== */
.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 50px;
    animation: subtitleGlow 2s ease-in-out infinite alternate;
}

@keyframes subtitleGlow {
    from {
        text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
    }

    to {
        text-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
    }
}

/* ===== Hostname Container ===== */
.hostname-container {
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hostname-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 15px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #10b981;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.hostname-box {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hostname-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.hostname-box:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.2);
}

.hostname-text {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-feedback {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #10b981;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Login Buttons ===== */
.login-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.login-btn:hover::before {
    transform: translateX(100%);
}

.login-btn.cpanel {
    background: linear-gradient(135deg, #ff6b35, #f7931a);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.login-btn.cpanel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.login-btn.whm {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.login-btn.whm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.login-btn.website {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.login-btn.website:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

.login-btn.website .btn-icon {
    animation: globeSpin 8s linear infinite;
}

@keyframes globeSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-icon {
    font-size: 1.3rem;
}

.btn-text {
    text-transform: uppercase;
}

.btn-icon {
    transition: all 0.3s ease;
}

.btn-icon.rotating {
    animation: gearSpin 4s linear infinite;
}

.login-btn:hover .btn-icon {
    transform: scale(1.2);
}

.login-btn:hover .btn-icon.rotating {
    animation-duration: 1s;
}

@keyframes gearSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== Status Icons Animation ===== */
.status-icon {
    transition: all 0.3s ease;
}

.status-icon.bolt {
    color: #facc15;
    animation: boltFlash 2s ease-in-out infinite;
}

@keyframes boltFlash {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 5px #facc15);
    }

    50% {
        opacity: 0.6;
        filter: drop-shadow(0 0 15px #facc15);
    }
}

.status-icon.lock {
    color: #10b981;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px #10b981);
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px #10b981);
    }
}

/* ===== Status Bar ===== */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 15px #10b981;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 15px #10b981;
    }

    50% {
        box-shadow: 0 0 25px #10b981, 0 0 40px #10b981;
    }
}

.status-icon {
    font-size: 1rem;
}

.status-divider {
    color: rgba(255, 255, 255, 0.2);
}

/* ===== Tech Stats ===== */
.tech-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.7s backwards;
}

.stat-card {
    padding: 25px 35px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateY(-5px);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }

    .main-container {
        padding: 15px;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 15px;
        gap: 12px;
    }

    .logo-container {
        width: 90px;
        height: 90px;
        margin-bottom: 10px;
        flex-shrink: 0;
    }

    .logo-core {
        inset: 25px;
    }

    .dns-icon {
        width: 24px;
        height: 24px;
    }

    .main-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
        margin: 0;
    }

    .subtitle {
        font-size: 0.55rem;
        letter-spacing: 2px;
        margin: 0;
    }

    .hostname-container {
        margin: 0;
        width: 100%;
    }

    .hostname-label {
        font-size: 0.55rem;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .hostname-box {
        flex-direction: column;
        gap: 8px;
        padding: 10px 15px;
        width: 90%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hostname-text {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .copy-btn {
        padding: 8px 16px;
        font-size: 0.6rem;
    }

    /* Login Buttons Mobile */
    .login-buttons {
        flex-direction: column;
        gap: 8px;
        margin: 0;
        width: 90%;
        max-width: 250px;
    }

    .login-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.7rem;
        justify-content: center;
        border-radius: 20px;
    }

    .login-btn .btn-icon {
        width: 16px;
        height: 16px;
    }

    /* Status Bar Mobile */
    .status-bar {
        flex-wrap: nowrap;
        gap: 12px;
        margin: 0;
        justify-content: center;
    }

    .status-item {
        font-size: 0.6rem;
        gap: 4px;
    }

    .status-divider {
        display: none;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .status-icon {
        width: 12px;
        height: 12px;
    }

    /* Tech Stats Mobile */
    .tech-stats {
        gap: 8px;
        justify-content: center;
        margin: 0;
    }

    .stat-card {
        padding: 10px 12px;
        flex: 1;
        min-width: 70px;
        max-width: 90px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.45rem;
        letter-spacing: 0.5px;
    }

    /* Background adjustments */
    .grid-overlay {
        background-size: 25px 25px;
    }

    .orbit-dot {
        width: 5px;
        height: 5px;
    }

    .ring-outer,
    .ring-middle,
    .ring-inner {
        border-width: 1px;
    }
}

@media (max-width: 380px) {
    .main-title {
        font-size: 1.5rem;
    }

    .hostname-text {
        font-size: 0.85rem;
    }

    .login-btn {
        padding: 12px 20px;
        font-size: 0.75rem;
    }

    .stat-card {
        min-width: 80px;
        padding: 12px 15px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.55rem;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .main-container {
        padding: 15px;
    }

    .logo-container {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .logo-core {
        inset: 25px;
    }

    .dns-icon {
        width: 20px;
        height: 20px;
    }

    .main-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .subtitle {
        margin-bottom: 15px;
    }

    .hostname-container,
    .login-buttons,
    .status-bar,
    .tech-stats {
        margin-bottom: 15px;
    }

    .login-buttons {
        flex-direction: row;
    }

    .login-btn {
        padding: 10px 20px;
    }
}