:root {
    --primary-cyan: #00f3ff;
    --primary-purple: #b537ff;
    --primary-orange: #ff9500;
    --primary-gold: #ffd700;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 15, 25, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --glow-cyan: 0 0 20px rgba(0, 243, 255, 0.5);
    --glow-purple: 0 0 20px rgba(181, 55, 255, 0.5);
    --glow-orange: 0 0 20px rgba(255, 149, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Animated Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
    box-shadow: var(--glow-cyan);
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: grid-move 20s linear infinite;
    pointer-events: none;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Scanning Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--primary-cyan),
            transparent);
    box-shadow: 0 0 20px var(--primary-cyan);
    z-index: 1;
    animation: scan 4s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Main Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fade-in-down 1s ease-out;
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glitch-text {
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 8px;
    position: relative;
    color: var(--primary-cyan);
    text-shadow:
        0 0 10px var(--primary-cyan),
        0 0 20px var(--primary-cyan),
        0 0 40px var(--primary-cyan);
    animation: glitch 3s infinite;
}

@keyframes glitch {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    92% {
        transform: translate(-2px, 2px);
    }

    94% {
        transform: translate(2px, -2px);
    }

    96% {
        transform: translate(-2px, -2px);
    }

    98% {
        transform: translate(2px, 2px);
    }
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: var(--primary-orange);
    animation: glitch-before 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    color: var(--primary-purple);
    animation: glitch-after 3s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-before {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    92% {
        transform: translate(-3px, 0);
    }
}

@keyframes glitch-after {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    92% {
        transform: translate(3px, 0);
    }
}

.subtitle {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
}

.typing-text {
    display: inline-block;
    border-right: 2px solid var(--primary-cyan);
    animation: typing 4s steps(30) infinite, blink 0.5s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes typing {

    0%,
    100% {
        width: 0;
    }

    50% {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    animation: fade-in-up 1s ease-out 0.3s both;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(0, 243, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: card-shine 3s infinite;
}

@keyframes card-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow:
        0 10px 40px rgba(0, 243, 255, 0.3),
        inset 0 0 20px rgba(0, 243, 255, 0.1);
}

.card-pulse {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: rgba(0, 243, 255, 0.3);
    }

    50% {
        border-color: rgba(0, 243, 255, 0.6);
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.icon-container {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-cyan), transparent);
    border-radius: 50%;
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.icon {
    font-size: 2rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px var(--primary-cyan));
}

.card-header h3 {
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-cyan);
}

.card-content {
    position: relative;
    z-index: 1;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row:hover {
    background: rgba(0, 243, 255, 0.05);
    padding-left: 10px;
}

.label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.ip-value {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-cyan);
    animation: data-flicker 3s infinite;
}

@keyframes data-flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.status-active {
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
    animation: status-blink 2s infinite;
}

@keyframes status-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.small-text {
    font-size: 0.75rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Time Display */
.time-display {
    text-align: center;
    margin-bottom: 20px;
}

.current-time {
    font-size: 3rem;
    color: var(--primary-cyan);
    text-shadow:
        0 0 20px var(--primary-cyan),
        0 0 40px var(--primary-cyan);
    font-weight: bold;
    letter-spacing: 4px;
    animation: time-glow 2s infinite;
}

@keyframes time-glow {

    0%,
    100% {
        text-shadow:
            0 0 20px var(--primary-cyan),
            0 0 40px var(--primary-cyan);
    }

    50% {
        text-shadow:
            0 0 30px var(--primary-cyan),
            0 0 60px var(--primary-cyan),
            0 0 80px var(--primary-cyan);
    }
}

.current-date {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 10px;
    letter-spacing: 2px;
}

/* Login Container */
.login-container {
    max-width: 500px;
    margin: 0 auto 60px;
    animation: fade-in-up 1s ease-out 0.6s both;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid rgba(181, 55, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(181, 55, 255, 0.2);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(181, 55, 255, 0.2),
            transparent);
    animation: login-shine 3s infinite;
}

@keyframes login-shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.security-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--primary-purple), transparent);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

.lock-icon {
    font-size: 3rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px var(--primary-purple));
    animation: lock-rotate 4s infinite;
}

@keyframes lock-rotate {

    0%,
    90%,
    100% {
        transform: rotate(0deg);
    }

    95% {
        transform: rotate(-10deg);
    }

    97% {
        transform: rotate(10deg);
    }
}

.login-header h2 {
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--primary-purple);
    text-shadow: 0 0 20px var(--primary-purple);
    margin-bottom: 10px;
}

.access-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.login-form {
    position: relative;
    z-index: 1;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.label-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--primary-purple));
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(181, 55, 255, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: rgba(160, 160, 176, 0.5);
}

.input-wrapper input:focus {
    border-color: var(--primary-purple);
    box-shadow:
        0 0 20px rgba(181, 55, 255, 0.3),
        inset 0 0 10px rgba(181, 55, 255, 0.1);
    transform: translateY(-2px);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-orange));
    transition: width 0.3s ease;
}

.input-wrapper input:focus+.input-underline {
    width: 100%;
}

.login-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-orange));
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(181, 55, 255, 0.5),
        0 0 40px rgba(255, 149, 0, 0.3);
}

.login-button:hover .button-glow {
    width: 300px;
    height: 300px;
}

.login-button:active {
    transform: translateY(-1px);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: status-dot-pulse 2s infinite;
}

@keyframes status-dot-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    animation: fade-in 1s ease-out 0.9s both;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.separator {
    color: var(--primary-cyan);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .current-time {
        font-size: 2rem;
    }

    .login-card {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* Additional Animations */
@keyframes rotate-hue {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-purple), var(--primary-pink));
}

/* Holographic Card Effects */
.holographic {
    position: relative;
    background: linear-gradient(135deg,
            rgba(15, 15, 25, 0.9),
            rgba(25, 15, 35, 0.9),
            rgba(15, 25, 35, 0.9));
    border: 1px solid transparent;
    background-clip: padding-box;
}

.holographic::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            var(--primary-cyan),
            var(--primary-purple),
            var(--primary-orange),
            var(--primary-cyan));
    background-size: 300% 300%;
    border-radius: 15px;
    z-index: -1;
    animation: holographic-border 4s linear infinite;
    opacity: 0.6;
}

@keyframes holographic-border {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.holographic:hover::after {
    opacity: 1;
    animation-duration: 2s;
}

/* Special Value Styling */
.protocol-value {
    color: var(--primary-purple);
    text-shadow: 0 0 10px var(--primary-purple);
    animation: protocol-pulse 3s infinite;
}

@keyframes protocol-pulse {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--primary-purple);
    }

    50% {
        opacity: 0.8;
        text-shadow: 0 0 20px var(--primary-purple), 0 0 30px var(--primary-purple);
    }
}

.security-value {
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
    animation: security-flicker 2s infinite;
}

@keyframes security-flicker {

    0%,
    100% {
        opacity: 1;
    }

    25% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
    }

    75% {
        opacity: 0.95;
    }
}

.server-value {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-cyan);
    animation: server-glow 2.5s infinite;
}

@keyframes server-glow {

    0%,
    100% {
        text-shadow: 0 0 10px var(--primary-cyan);
    }

    50% {
        text-shadow: 0 0 20px var(--primary-cyan), 0 0 30px var(--primary-cyan);
    }
}

/* Routing Value Styling */
.routing-value {
    color: var(--primary-orange);
    text-shadow: 0 0 10px var(--primary-orange);
    animation: routing-pulse 2s infinite;
}

@keyframes routing-pulse {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--primary-orange);
    }

    50% {
        opacity: 0.85;
        text-shadow: 0 0 15px var(--primary-orange), 0 0 25px var(--primary-orange);
    }
}

/* Orange Icon Glow */
.icon-glow-orange {
    background: radial-gradient(circle, var(--primary-orange), transparent) !important;
}

.headers-count {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    font-size: 1.2rem;
    animation: count-pulse 1.5s infinite;
}

@keyframes count-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Data Stream Styling */
.data-stream {
    background: linear-gradient(135deg,
            rgba(0, 10, 20, 0.95),
            rgba(10, 0, 20, 0.95));
}

.data-stream-container {
    max-height: 150px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.stream-line {
    color: var(--primary-cyan);
    margin: 5px 0;
    opacity: 0;
    animation: stream-fade-in 0.5s forwards;
    text-shadow: 0 0 5px var(--primary-cyan);
}

.stream-line:nth-child(1) {
    animation-delay: 0s;
}

.stream-line:nth-child(2) {
    animation-delay: 0.2s;
}

.stream-line:nth-child(3) {
    animation-delay: 0.4s;
}

.stream-line:nth-child(n+4) {
    animation-delay: 0.6s;
}

@keyframes stream-fade-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stream-line.new-data {
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
    animation: new-data-flash 0.5s;
}

@keyframes new-data-flash {

    0%,
    100% {
        background: transparent;
    }

    50% {
        background: rgba(0, 255, 136, 0.2);
    }
}

/* Matrix Rain Effect for Data Stream */
.data-stream-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 243, 255, 0.05) 50%,
            transparent 100%);
    animation: matrix-rain 2s linear infinite;
    pointer-events: none;
}

@keyframes matrix-rain {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Responsive adjustments for new cards */
@media (max-width: 768px) {
    .holographic::after {
        animation-duration: 6s;
    }

    .data-stream-container {
        max-height: 120px;
        font-size: 0.75rem;
    }
}