:root {
    --bg-deep: #050a14;
    --bg-card: #0a1428;
    --border: #1e3c72;
    --text-main: #d0d0d0;
    --text-muted: #8090a0;
    --accent-blue: #00d2ff;
    --accent-cyan: #00ffff;
    --accent-green: #00ff88;
    --accent-red: #ff4444;
    --accent-yellow: #ffcc00;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: rgba(10, 20, 40, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.brand {
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro h1 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.count-badge {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--accent-blue);
    color: var(--bg-deep);
}

.action-btn.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--bg-deep);
}

footer {
    margin-top: 5rem;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    background: rgba(10, 20, 40, 0.5);
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.disclaimer h3 {
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

/* Age Gate */
#ageGate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
}

.age-gate-modal {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 3rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.1);
}

.age-gate-modal h2 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.age-gate-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    text-align: left;
}

.age-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.age-option:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 210, 255, 0.05);
}

.age-option input {
    accent-color: var(--accent-cyan);
}

.age-gate-modal .action-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.pulse-animation {
    animation: pulse 0.5s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ZIP Input */
.zip-container {
    margin: 2rem auto;
    max-width: 300px;
    background: rgba(10, 20, 40, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.zip-container label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.zip-container input {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    color: var(--accent-cyan);
    padding: 0.6rem;
    border-radius: 4px;
    text-align: center;
    font-family: monospace;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s;
}

.zip-container input:focus {
    border-color: var(--accent-blue);
}

.btn-large {
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    letter-spacing: 2px;
    border-width: 2px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.btn-large:hover {
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.4);
}

/* Legend Panel */
#legendPanel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: var(--bg-card);
    border-left: 2px solid var(--border);
    z-index: 2000;
    padding: 2rem;
    display: none;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease-out;
}

.legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.legend-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.color-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.bg-blue { background: var(--accent-blue); }
.bg-green { background: var(--accent-green); }
.bg-yellow { background: var(--accent-yellow); }
.bg-red { background: var(--accent-red); }

.legend-info {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Card Status */
.card-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-left: 0.5rem;
}

.status-stable { border: 1px solid var(--accent-green); color: var(--accent-green); }
.status-trending { border: 1px solid var(--accent-yellow); color: var(--accent-yellow); }
.status-active { border: 1px solid var(--accent-red); color: var(--accent-red); }
.status-low { border: 1px solid var(--border); color: var(--text-muted); }

/* Softer Spacing & Polish */
.grid {
    gap: 2rem;
}

.card {
    border-width: 1px;
    background: linear-gradient(145deg, #0a1428, #070e1e);
}

/* Easter Egg Notification */
#toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--accent-cyan);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    z-index: 3000;
    display: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

@media (max-width: 768px) {
    #legendPanel {
        width: 100%;
    }
}

    header {
        flex-direction: column;
        gap: 1rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}
