:root {
    --bg-dark: #0a0b10;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-primary: #7000ff;
    --accent-secondary: #00d1ff;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --status-online: #00ff88;
    --status-offline: #ff3e3e;
    --status-pending: #ffd900;
    --glass-border: rgba(255, 255, 255, 0.1);
    --hacker-green: #00ff00;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1b26 0%, #0a0b10 100%);
}

.background-animation::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    animation: rotate 120s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.accent {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.global-status {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    font-weight: 600;
}

.pulse-icon {
    width: 10px;
    height: 10px;
    background-color: var(--status-pending);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--status-pending);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

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

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Card Styling */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-online-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--status-online);
    border: 1px solid var(--status-online);
}

.status-offline-badge {
    background: rgba(255, 62, 62, 0.1);
    color: var(--status-offline);
    border: 1px solid var(--status-offline);
}

.status-pending-badge {
    background: rgba(255, 217, 0, 0.1);
    color: var(--status-pending);
    border: 1px solid var(--status-pending);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.url-text {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 300;
}

.performance-info {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ping-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.ping-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-secondary);
    transition: width 0.5s ease-out;
}

/* Footer */
.footer {
    margin-top: 6rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Hacker Button */
.btn-hacker {
    background: transparent;
    border: 1px solid var(--hacker-green);
    color: var(--hacker-green);
    padding: 10px 25px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.btn-hacker:hover {
    background: var(--hacker-green);
    color: black;
    box-shadow: 0 0 20px var(--hacker-green);
}

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

.btn-proteja {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe, #fd79a8);
    background-size: 200% 200%;
    color: #fff;
    padding: 12px 32px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
    animation: gradientShift 3s ease infinite;
}

.btn-proteja:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.6);
}

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

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

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

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #050505;
    border: 2px solid var(--hacker-green);
    padding: 3rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.1);
}

.hacker-title {
    color: var(--hacker-green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

input[type="password"] {
    width: 100%;
    background: #111;
    border: 1px solid var(--hacker-green);
    color: var(--hacker-green);
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 2rem;
    outline: none;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-actions button {
    flex: 1;
    background: transparent;
    border: 1px solid var(--hacker-green);
    color: var(--hacker-green);
    padding: 10px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s;
}

#btn-confirm:hover {
    background: var(--hacker-green);
    color: black;
}

#btn-cancel {
    border-color: #666;
    color: #666;
}

#btn-cancel:hover {
    background: #222;
}

.error-msg {
    color: #ff3e3e;
    font-size: 0.8rem;
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

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