:root {
    --bg-color: #121212; /* A deep, rich black */
    --card-bg: rgba(26, 32, 44, 0.7); /* Semi-transparent dark slate */
    --text-color: #E2E8F0; /* Soft white/light gray */
    --text-muted: #A0AEC0; /* Muted gray for subtitles */
    --primary-color: #D69E2E; /* Goldenrod */
    --primary-hover: #ECC94B;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-pink: #d53f8c;
    --accent-blue: #3182ce;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 20px 20px;
}
.page.active {
    animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.glass-header {
    background-color: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px 0 rgba(214, 158, 46, 0.2);
}
.nav-link {
    transition: color 0.3s ease;
    position: relative;
}
.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active-link {
    color: white;
}
.nav-link:hover:after, .nav-link.active-link:after {
    width: 60%;
}
.loader {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.custom-input, .custom-select {
    background-color: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.custom-input:focus, .custom-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(214, 158, 46, 0.4);
}
.custom-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23A0AEC0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px;
    background: var(--primary-color);
    border-radius: 50%; cursor: pointer;
    margin-top: -8px;
    transition: transform 0.2s ease;
}
.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.custom-range::-webkit-slider-runnable-track {
    width: 100%; height: 4px;
    background: #4A5568;
    border-radius: 5px;
}
.radio-label {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}
.radio-peer:checked + .radio-label {
    border-color: var(--primary-color);
    background-color: rgba(214, 158, 46, 0.1);
    color: var(--primary-hover);
    transform: scale(1.05);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding-top 0.5s ease-in-out;
}
.faq-answer.open {
    max-height: 200px;
}
.gradient-text {
    background: -webkit-linear-gradient(45deg, var(--primary-hover), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.result-box {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    transform: scale(0.9);
    opacity: 0;
}
.result-box.show {
    transform: scale(1);
    opacity: 1;
}
