:root {
    --bg-color: #091428;
    --bg-gradient: linear-gradient(135deg, #091428 0%, #0a0a0c 100%);
    --glass-bg: rgba(16, 28, 50, 0.65);
    --glass-border: rgba(200, 170, 110, 0.3);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b0;
    --accent-gold: #C8AA6E;
    --accent-blue: #0AC8B9;
    --accent-glow: rgba(10, 200, 185, 0.4);
    --input-bg: rgba(0, 0, 0, 0.3);
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.background-fx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(10, 200, 185, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(200, 170, 110, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    perspective: 1000px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(10, 200, 185, 0.2);
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--accent-gold), #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-row {
    display: flex;
    gap: 1rem;
}

.select-wrapper,
.input-wrapper {
    flex: 1;
    position: relative;
}

select,
input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
}

select:focus,
input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Custom Select Arrow */
.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 0.7rem;
    pointer-events: none;
}

button {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(45deg, var(--accent-gold), #e0c080);
    border: none;
    border-radius: 10px;
    color: #091428;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(200, 170, 110, 0.4);
}

.result-area {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-area.show {
    opacity: 1;
    transform: translateY(0);
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-shadow: 0 0 20px var(--accent-glow);
    display: block;
    margin: 0.5rem 0;
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Rank Icons Placeholder Styles */
.rank-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .input-row {
        flex-direction: column;
        gap: 1rem;
    }
}

.detailed-scenarios {
    margin-top: 1.5rem;
    display: none;
    /* Hidden by default */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.scenario-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.scenario-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.sc-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.sc-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sc-sub {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
}

.sc-detail {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-weight: 600;
}

.win {
    color: var(--accent-blue);
}

.loss {
    color: #ff6b6b;
}

/* SEO Content Section */
.seo-content {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-align: left;
    backdrop-filter: blur(10px);
}

.seo-content h2 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

.seo-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.seo-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.seo-content h3 {
    font-size: 1rem;
    color: var(--accent-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.seo-content ul {
    list-style-type: disc;
    color: var(--text-secondary);
}

.seo-content li {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.seo-content .small-text {
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
    margin-top: 1.5rem;
}

@media (max-width: 480px) {
    .seo-content {
        padding: 1.5rem;
    }
}

/* Footer Styles */
.site-footer {
    width: 100%;
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-copyright {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.disclaimer {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 0.75rem;
    opacity: 0.5;
    padding: 0 1rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: rgba(16, 28, 50, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    transition: bottom 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner p {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-banner button {
    width: auto;
    margin: 0;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }
}