:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(15, 15, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f0;
    --text-muted: #8b9298;
    
    --brand-red: #ff4655;
    --brand-red-hover: #ff5e6b;
    
    /* Rank Colors */
    --color-iron: #6b7776;
    --color-bronze: #b08151;
    --color-silver: #adb6b6;
    --color-gold: #f1c232;
    --color-plat: #44a2b0;
    --color-dia: #ba76e3;
    --color-asc: #3b9f76;
    --color-imm: #ff4655;

    /* Dynamic price colors overwritten by JS */
    --current-color: #ff4655;
    --desired-color: #ff8c95;

    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, .badge, .logo-text, .price-val {
    font-family: var(--font-head);
}

/* Enhancing background with VALORANT Image */
.wallpaper-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.contentstack.io/v3/assets/bltb6530b271fddd0b1/bltc7de2b467d5ce807/6476e3bedc9f531d0db2d3ba/VALORANT_Jett_Wallpaper_16x9.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1; /* Very subtle so it doesn't distract */
    z-index: -3;
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    opacity: 0.15;
    transition: background 0.8s ease;
}

#ambient-current { top: -20vh; left: -20vw; background: var(--brand-red); }
#ambient-desired { bottom: -20vh; right: -20vw; background: var(--brand-red); }

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.text-gradient {
    background: linear-gradient(135deg, #ff4655, #ff8c95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo i { color: var(--brand-red); }
.owner { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; font-family: var(--font-body); margin-left:5px; }

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1.05rem;
}

.nav-links a i {
    margin-right: 4px;
    color: var(--text-muted);
}
.nav-links a:hover { color: var(--brand-red); }
.nav-links a:hover i { color: var(--brand-red); }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.lang-switch button.active { color: var(--text-main); }
.lang-switch .divider { width: 1px; height: 14px; background: var(--glass-border); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary { background: var(--brand-red); color: white; }
.btn-primary:hover:not(:disabled) {
    background: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 70, 85, 0.3);
}

.btn-secondary { background: rgba(255,255,255,0.05); color: var(--text-main); border: 1px solid var(--glass-border); }
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Info Section */
.info-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.info-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}

.info-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); }

.glow-icon {
    font-size: 3.5rem;
    color: var(--brand-red);
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255,70,85,0.5));
}

.info-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.info-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 70, 85, 0.1);
    color: var(--brand-red);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 70, 85, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Calculator Section */
.calculator-section {
    max-width: 1100px;
    margin: 40px auto 120px;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 50px;
}

.calc-wrapper {
    display: flex;
    align-items: stretch;
    gap: 24px;
    position: relative;
}

.calc-box {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.arrow-divider {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.calc-box h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}

.tier-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tier-item {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.tier-item:hover:not(.disabled) {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
}

.tier-item img {
    height: 48px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
    transition: 0.3s;
}

.tier-item span {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.tier-item.active { background: rgba(255, 255, 255, 0.08); }

/* The "Disabled / Shadowed / Impossible" logic requested by user */
.tier-item.disabled {
    opacity: 0.2;
    filter: grayscale(1);
    pointer-events: none;
    box-shadow: none !important;
    border-color: transparent !important;
}

.div-btn.disabled {
    opacity: 0.2;
    pointer-events: none;
    background: transparent !important;
    border-color: rgba(255,255,255,0.05);
}

.division-list {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.div-btn {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.div-btn:hover:not(.disabled) { background: rgba(255,255,255,0.1); }
.div-btn.active {
    background: var(--text-main);
    color: var(--bg-dark);
    border-color: var(--text-main);
}


.summary-panel {
    margin-top: 24px;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.price-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.price-left > span {
    font-size: 1.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* HUGE GRADIENT PRICE LOGIC */
#price-amount-container {
    font-size: 4.5rem; /* Ortalama Boyut */
    line-height: 1;
    font-weight: 900;
    background: linear-gradient(90deg, var(--current-color), var(--desired-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.5s ease;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency {
    font-size: 8rem; /* TL işareti çok daha büyük */
    margin-left: 12px;
    background: linear-gradient(135deg, #9e9e9e 35%, #ffffff 50%, #9e9e9e 65%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(255,255,255,0.4));
    animation: shineSweep 2.5s linear infinite;
    display: inline-block;
}

@keyframes shineSweep {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.btn-large {
    padding: 24px 60px;
    font-size: 1.5rem;
    border-radius: 16px;
}

.btn-large:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.error-msg {
    color: var(--brand-red);
    text-align: center;
    margin-top: 16px;
    font-weight: 500;
    min-height: 20px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: #0f1215;
    padding: 50px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content { transform: scale(1); }

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover { color: white; }

.modal-icon {
    font-size: 4rem;
    color: var(--brand-red);
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(255,70,85,0.4);
}

.modal-content h3 { font-size: 2.2rem; margin-bottom: 12px; }
.modal-content p { color: var(--text-muted); margin-bottom: 24px; font-size: 1.05rem;}

.whatsapp-btn:hover { background: #1b9144 !important; border-color: #25D366 !important; color: white !important;}
.whatsapp-btn i { font-size: 1.2rem; }

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media(max-width: 950px) {
    .calc-wrapper { flex-direction: column; }
    .arrow-divider { transform: rotate(90deg); padding: 10px 0; }
    .hero-title { font-size: 3rem; }
    .info-container { grid-template-columns: 1fr; }
    .summary-panel { gap: 30px; text-align: center; } /* Already col layout now */
    #price-amount-container { font-size: 5rem; }
    .currency { font-size: 3.5rem; }
}
