:root {
    --bg: #000814;
    --text: #e0e0e0;
    --muted: #a0b8c0;
    --primary: #00ffa3;      /* neon green */
    --primary-2: #00e676;    /* secondary green */
    --primary-3: #00ffcc;    /* tealish green */
    --glow: rgba(0, 255, 163, 0.5);
    --glow-soft: rgba(0, 255, 163, 0.15);
    --delay: 5;
}

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

body {
    font-family: 'Consolas', 'Monaco', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Matrix Rain Effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100px;
    color: rgba(0, 255, 163, 0.2);
    font-size: 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    text-shadow: 0 0 2px rgba(0, 255, 163, 0.3);
    animation: matrixRain 10s linear infinite;
    opacity: 0;
    animation-delay: calc(var(--delay) * 1s);
}

@keyframes matrixRain {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Subtle animated grid background */
.grid-bg {
    position: fixed; inset: 0; width: 100%; height: 100%;
    background-image:
            linear-gradient(rgba(0, 255, 163, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 255, 163, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none; z-index: 0; animation: gridMove 20s linear infinite;
}
@keyframes gridMove { 0% { transform: perspective(500px) rotateX(60deg) translateY(0);} 100% { transform: perspective(500px) rotateX(60deg) translateY(50px);} }

.container { max-width: 1400px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; }

header { text-align: center; padding: 60px 20px 40px; position: relative; }

.logo-wrapper {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px 40px;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    --logo-gleam-speed: 3s; /* duration of sweep */
    --logo-gleam-pause: 7s; /* pause between cycles */
}

/* Disable previous wrapper-wide gleam */
.logo-wrapper::after {
    content: none !important;
    animation: none !important;
}

.logo {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5em);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    text-shadow: 0 0 30px var(--glow);
    position: relative; z-index: 1;
}
.logo > span { font-size: clamp(2.5rem, 5vw, 4em); }

/* Underline below the logo text */
.logo::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
    opacity: 0.5;
    border-radius: 2px;
}

/* Subtle gleam moving along the underline only */
.logo::before {
    content: '';
    position: absolute;
    bottom: -1px; /* center over the 2px line with 1px overlap */
    left: 0;
    width: 18%;
    height: 4px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0) 100%
    );
    mix-blend-mode: screen;
    filter: blur(1px);
    border-radius: 4px;
    animation: logoLineGleam 30s linear infinite;
    pointer-events: none;
}

@keyframes logoLineGleam {
    0% { transform: translateX(-30%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(480%); opacity: 0; }
}

.tagline {
    color: var(--primary);
    font-size: clamp(0.7rem, 2.5vw, 1em);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

/* User Information Block */
.user-info-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.08) 0%, rgba(0, 230, 118, 0.05) 100%);
    border: 2px solid rgba(0, 255, 163, 0.3);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    transition: all 0.3s ease;
}

.user-info-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    clip-path: polygon(-100% -100%, 0 100%, 100% 0);
}

.user-info-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

.user-info-container:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.12) 0%, rgba(0, 230, 118, 0.08) 100%);
    box-shadow: 0 0 30px var(--glow);
}

.user-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--primary);
    transition: all 0.2s ease;
}

.user-info-item:hover {
    background: rgba(0, 255, 163, 0.1);
    border-left-color: var(--primary-2);
    transform: translateX(3px);
}

.info-label {
    font-size: 0.75em;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.8;
}

.info-value {
    font-size: 0.9em;
    color: var(--text);
    font-family: 'Consolas', 'Monaco', monospace;
    word-break: break-word;
}

.info-value.loading {
    color: var(--muted);
    font-style: italic;
}

.info-value.error {
    color: #ff6b6b;
    font-size: 0.85em;
}

/* IP Block specific styling - spans full width on first row */
.user-info-ip-block {
    grid-column: 1 / -1;
}

.info-value-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.ip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.ip-type {
    font-size: 0.75em;
    color: var(--primary-2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    min-width: 45px;
}

/* Copy button styling */
.copy-btn {
    background: rgba(0, 255, 163, 0.1);
    border: 1px solid rgba(0, 255, 163, 0.3);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.copy-btn:hover {
    background: rgba(0, 255, 163, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--glow);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: rgba(0, 255, 163, 0.3);
    border-color: var(--primary);
}

/* Toggle details button */
.toggle-details-btn {
    background: rgba(0, 255, 163, 0.1);
    border: 1px solid rgba(0, 255, 163, 0.3);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-family: 'Consolas', 'Monaco', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 15px;
    align-self: center;
}

.toggle-details-btn:hover {
    background: rgba(0, 255, 163, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
    transform: translateY(-2px);
}

.toggle-details-btn:active {
    transform: translateY(0);
}

.toggle-details-btn.expanded {
    background: rgba(0, 255, 163, 0.2);
}

/* User info details container - hidden by default */
.user-info-details {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.user-info-details.visible {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
}

/* Responsive layout */
@media (max-width: 1024px) {
    .user-info-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .user-info-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .user-info-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-info-ip-block {
        grid-column: 1 / -1;
    }
    
    .info-value-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-info-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .user-info-container {
        grid-template-columns: 1fr;
    }
    
    .user-info-details {
        grid-template-columns: 1fr;
    }
    
    .copy-btn {
        font-size: 0.8em;
        padding: 3px 6px;
    }
}

.search-container { max-width: 700px; margin: 0 auto; position: relative; }
.search-container input {
    width: 100%;
    color: var(--primary);
    font-family: Consolas, monospace;
    font-size: 16px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    padding: 18px 50px 18px 20px;
    background: rgba(0, 255, 163, 0.05);
    border: none;
    outline: none;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}
.search-container::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border: 2px solid var(--primary);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    pointer-events: none;
}
.search-container::after {
    content: "";
    position: absolute;
    opacity: 0.5;
    z-index: -1;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--primary-2), var(--primary));
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}
.search-container input:focus { background: rgba(0, 255, 163, 0.15); box-shadow: 0 0 30px var(--glow), inset 0 0 20px var(--glow-soft); }
.search-container input::placeholder { color: rgba(0, 255, 163, 0.5); }

.category { margin-bottom: 70px; opacity: 0; transform: translateY(20px) scale(0.98); transition: opacity .6s ease, transform .6s ease; }
.category.revealed { opacity: 1; transform: translateY(0) scale(1); }

.category-header {
    display: flex; align-items: center; gap: 20px; margin-bottom: 35px; padding: 20px;
    background: linear-gradient(90deg, rgba(0, 255, 163, 0.15) 0%, transparent 100%);
    border-left: 5px solid var(--primary); position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.category-header::before { content: ''; position: absolute; right: 0; top: 0; width: 20px; height: 20px; background: var(--primary); clip-path: polygon(0 0, 100% 100%, 100% 0); }
.category-icon { font-size: 2.5em; filter: drop-shadow(0 0 15px var(--primary)); }
.category-title { font-size: 2em; color: var(--primary); text-transform: uppercase; letter-spacing: 4px; font-weight: 700; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }

.tool-card {
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.08) 0%, rgba(0, 230, 118, 0.05) 100%);
    border: 2px solid rgba(0, 255, 163, 0.3);
    padding: 28px; position: relative; cursor: pointer;
    transition: transform .2s ease, box-shadow .3s ease, border-color .2s ease, background .3s ease;
    overflow: hidden; clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    will-change: transform;
}
.tool-card::before { content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; background: var(--primary); clip-path: polygon(-100% -100%, 0 100%, 100% 0); }
.tool-card::after  { content: ''; position: absolute; bottom: 0; right: 0; width: 15px; height: 15px; background: var(--primary); clip-path: polygon(100% 100%, 0 100%, 100% 0); }
.tool-card-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(0, 255, 163, 0.28) 0%, transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.tool-card:hover .tool-card-glow { opacity: 1; }
.tool-card:hover { border-color: var(--primary); background: linear-gradient(135deg, rgba(0,255,163,0.15) 0%, rgba(0,230,118,0.10) 100%); box-shadow: 0 0 40px var(--glow), inset 0 0 20px var(--glow-soft); }
.tool-name { font-size: 1.3em; color: var(--primary); margin-bottom: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; position: relative; z-index: 1; }
.tool-description { color: var(--muted); font-size: 0.95em; line-height: 1.7; position: relative; z-index: 1; }
.tool-status { position: absolute; top: 15px; right: 15px; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); animation: blink 2s ease-in-out infinite; z-index: 1; }
/*.tool-status {*/
/*    position: absolute;*/
/*    top: 10px;*/
/*    right: 10px;*/
/*    width: 7px;*/
/*    height: 7px;*/
/*    border-radius: 50%;*/
/*    box-shadow: 0 0 5px currentColor, 0 0 5px currentColor;*/
/*}*/
.status-active {
    background-color: #00ff00;
    color: #00ff00;
}
.status-inactive {
    background-color: #ff0000;
    color: #ff0000;
}
@keyframes blink { 0%,100% { opacity: 1;} 50% { opacity: 0.3;} }

footer { text-align: center; padding: 50px 20px; border-top: none; margin-top: 80px; color: var(--primary); position: relative; }
footer::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%); }
footer a { color: var(--primary-2); text-decoration: none; transition: all 0.3s; border-bottom: 1px solid transparent; }
footer a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary); border-bottom-color: var(--primary); }

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-3)); box-shadow: 0 0 10px var(--glow); z-index: 9999; }

/* Neon cursor dot */
.cursor-dot { position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); pointer-events: none; mix-blend-mode: screen; box-shadow: 0 0 20px var(--glow); transform: translate(-50%, -50%); opacity: 0.9; z-index: 9999; }
.cursor-ring { position: fixed; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--primary); pointer-events: none; mix-blend-mode: screen; box-shadow: 0 0 20px var(--glow); transform: translate(-50%, -50%); opacity: 0.35; z-index: 9998; transition: width .15s ease, height .15s ease, opacity .2s ease; }

@media (max-width: 768px) {
    .tools-grid { grid-template-columns: 1fr; }
    .category-title { font-size: 1.5em; }
}
