:root {
    --val-red: #9f1621;
    --val-dark: #0F1923;
    --val-card-bg: #1F2326;
    --val-text-light: #ECE8E1;
}
body {
    background-color: var(--val-dark);
    color: var(--val-text-light);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
}
.nav-item {
    position: relative;
    text-decoration: none;
    color: #E5E7EB; 
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    overflow: visible;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeDown 0.6s ease forwards;
}
.nav-item li:nth-child(1) { animation-delay: 0.35s; }
.nav-item li:nth-child(2) { animation-delay: 0.45s; }
.nav-item li:nth-child(3) { animation-delay: 0.55s; }
.nav-item li:nth-child(4) { animation-delay: 0.65s; }
.nav-item li:nth-child(5) { animation-delay: 0.75s; }
@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nav-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF4655 35%, #FF7882 100%);
    box-shadow: 0 0 10px rgba(255, 70, 85, 0.8);
    transition: width 0.3s ease;
}
.nav-item a:hover::after {
    width: 100%;
}
.nav-item a:hover {
    transform: translateY(-2px);
    color: #FF4655;
}
.val-header {
    background-color: var(--val-red);
    border-bottom: 3px solid #000;
}
.val-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.agent-card {
    background-color: var(--val-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    overflow: hidden;
    height: 100%;
}
.agent-card:hover {
    transform: translateY(-5px);
    border-color: var(--val-red);
    box-shadow: 0 10px 20px rgba(255, 70, 85, 0.25);
}
.agent-img-wrapper {
    position: relative;
    background: radial-gradient(circle, rgba(255, 70, 85, 0.2) 0%, rgba(15, 25, 35, 0.9) 100%);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.agent-portrait {
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.agent-card:hover .agent-portrait {
    transform: scale(1.08);
}
.role-badge {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.page-link {
    background-color: var(--val-card-bg);
    color: var(--val-text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 700;
    cursor: pointer;
}
.page-link:hover {
    background-color: var(--val-red);
    color: #fff;
    border-color: var(--val-red);
}
.page-item.disabled .page-link {
    background-color: #15191d;
    color: #555;
    border-color: rgba(255, 255, 255, 0.05);
}
.form-select {
    background-color: var(--val-card-bg);
    color: var(--val-text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}
.form-select option {
    font-weight: 600;
}
.form-select:focus {
    background-color: var(--val-card-bg);
    color: var(--val-text-light);
    border-color: var(--val-red);
    box-shadow: 0 0 0 0.25rem rgba(255, 70, 85, 0.25);
}
.ability-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--val-red);
    border-radius: 4px;
}
.agent-hero-section {
    position: relative;
    background: radial-gradient(circle at 30% 50%, rgba(255, 70, 85, 0.12) 0%, rgba(20, 23, 26, 0.95) 70%);
    border: 1px solid #323A40;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.agent-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.ability-card {
    background-color: #161A1D !important;
    border: 1px solid #323A40 !important;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ability-card:hover {
    transform: translateY(-4px);
    border-color: #FF4655 !important;
}