:root {
    --bg-color: #050508;
    --card-bg: #0a0a0e;
    --text-main: #e0e0e0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- BACKGROUND --- */
.background-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(50, 50, 50, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 50, 50, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

/* --- HEADER --- */
header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    width: 100%;
    max-width: 800px;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.subtitle { color: #888; }

.back-link {
    display: block;
    margin-bottom: 20px;
    color: #666;
    text-decoration: none;
    transition: 0.3s;
}
.back-link:hover { color: #fff; letter-spacing: 1px; }

/* --- GRID --- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 90%;
    max-width: 1000px;
    padding-bottom: 50px;
}

/* --- CARD --- */
.tool-card {
    background: var(--card-bg);
    border: 1px solid #333; /* Default border */
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.tool-card.offline {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}
.tool-card.offline:hover { transform: none; box-shadow: none; }

.tool-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.tool-icon { font-size: 1.5rem; }
.tool-status { font-weight: bold; }

.tool-body { padding: 20px; }

.tool-body h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
}

.tool-body p {
    margin: 0;
    color: #888;
    line-height: 1.5;
    font-size: 0.9rem;
}

footer {
    margin-top: auto;
    padding: 20px;
    color: #444;
    font-size: 0.8rem;
}