:root {
    --bg-dark: #0a0b10;
    --primary: #ff9f43; /* NEON ORANGE */
    --primary-glow: rgba(255, 159, 67, 0.4);
    --secondary: #ffd700; /* GOLD */
    --panel-bg: rgba(22, 27, 34, 0.95);
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    
    --metal: #9ca3af;
    --crystal: #79c0ff;
    --deuterium: #56d364;

    --font-tech: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #1c2333 0%, #0b0e14 70%);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0; padding: 15px;
    min-height: 100vh;
}

.background-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 80% 20%, rgba(255, 159, 67, 0.05) 0%, transparent 20%); z-index: -1; pointer-events: none; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; padding-bottom: 40px; }

/* HEADER */
.header-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; gap: 15px; }
.header-left, .header-right { display: flex; align-items: center; gap: 15px; }

.main-title { font-family: var(--font-tech); font-size: 2rem; font-weight: 700; margin: 0; letter-spacing: 1px; color: white; }
.highlight { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }
.v-tag { font-size: 0.5em; border: 1px solid var(--primary); color: var(--primary); padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 10px; font-weight: 600; }

.home-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--primary); color: var(--primary); border-radius: 8px; font-size: 1.2rem; transition: 0.3s; text-decoration: none; }
.home-btn:hover { background: var(--primary); color: #000; box-shadow: 0 0 15px var(--primary); }

.btn-donate-header { display: flex; align-items: center; gap: 8px; padding: 6px 15px; background: rgba(255, 215, 0, 0.05); border: 1px solid #ffd700; color: #ffd700; border-radius: 50px; text-decoration: none; font-family: var(--font-tech); font-weight: 700; font-size: 0.8rem; transition: 0.3s; }
.btn-donate-header:hover { background: #ffd700; color: #000; box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }

.lang-select { background: #000; border: 1px solid var(--secondary); color: var(--text-muted); padding: 4px 8px; font-family: var(--font-tech); font-weight: 700; border-radius: 4px; outline: none; cursor: pointer; }
.lang-select option { background-color: #000; color: white; }

/* RATIO BAR */
.ratio-bar { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 15px; background: var(--panel-bg); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.ratio-label { font-family: var(--font-tech); font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; }
.ratio-inputs { display: flex; align-items: center; gap: 10px; }
.r-group { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.05); padding: 5px 10px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.1); }
.input-ratio { width: 50px; background: transparent; border: none; color: white; font-family: var(--font-tech); font-size: 1.2rem; font-weight: bold; text-align: center; }
.input-ratio:focus { outline: none; }
.colon { font-size: 1.2rem; color: var(--text-muted); font-weight: bold; }

/* MAIN GRID */
.main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.glass-panel { background: var(--panel-bg); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; }
.panel-title { margin: 0 0 15px 0; font-family: var(--font-tech); color: var(--primary); font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }

/* COMMON INPUTS */
.trade-input-section label, .mix-input-section label { display: block; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 5px; font-weight: 600; }
.input-group-large { display: flex; gap: 10px; }
.select-cyber { background: #000; border: 1px solid var(--secondary); color: white; padding: 10px; border-radius: 6px; font-family: var(--font-tech); font-size: 1rem; width: 120px; }
.input-cyber-large { flex: 1; background: rgba(0,0,0,0.5); border: 1px solid var(--primary); color: var(--primary); padding: 10px; font-family: 'Rajdhani'; font-size: 1.5rem; font-weight: bold; border-radius: 6px; text-align: right; }
.input-cyber-large:focus { outline: none; box-shadow: 0 0 15px var(--primary-glow); }

.trade-arrow { text-align: center; margin: 20px 0; font-size: 1.5rem; color: var(--text-muted); opacity: 0.5; }

/* DIRECT TRADE RESULTS */
.trade-results { display: flex; flex-direction: column; gap: 10px; }
.res-card { display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.res-card:hover { border-color: var(--primary); transform: translateX(5px); }
.icon-box { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: rgba(0,0,0,0.3); border-radius: 50%; }
.result-met .icon-box { color: var(--metal); border: 1px solid var(--metal); }
.result-cry .icon-box { color: var(--crystal); border: 1px solid var(--crystal); }
.result-deu .icon-box { color: var(--deuterium); border: 1px solid var(--deuterium); }
.res-info { display: flex; flex-direction: column; }
.res-name { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
.res-val { font-family: var(--font-tech); font-size: 1.8rem; font-weight: 700; color: white; }

/* SPLIT PANEL */
.desc-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }

.split-controls { margin: 20px 0; background: rgba(255,255,255,0.02); padding: 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.split-labels { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: bold; color: var(--text-main); font-family: var(--font-tech); font-size: 1.1rem; }

/* SLIDER NEON */
.range-wrapper { position: relative; padding: 10px 0; }
.neon-slider { 
    -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; 
    background: linear-gradient(90deg, var(--crystal) 0%, var(--deuterium) 100%); 
    outline: none; transition: 0.3s; 
}
.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff;
    cursor: pointer; box-shadow: 0 0 10px white; border: 2px solid #000;
}
.range-values { display: flex; justify-content: space-between; margin-top: 5px; font-size: 0.9rem; font-weight: bold; color: var(--text-muted); }

/* SPLIT RESULTS */
.split-results { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.res-card-small { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.icon-small { font-size: 1.2rem; margin-bottom: 5px; }
.res-mini-lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.res-mini-val { font-size: 1.3rem; font-family: var(--font-tech); font-weight: 700; color: white; word-break: break-all; }
.plus-sign { font-size: 1.5rem; color: var(--text-muted); font-weight: bold; }

/* Dynamic Colors for Split */
.color-met { color: var(--metal); } .color-cry { color: var(--crystal); } .color-deu { color: var(--deuterium); }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 500px; background: #111; border: 1px solid var(--secondary); border-radius: 8px; padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; z-index: 100; transition: bottom 0.5s; }
.cookie-banner.show { bottom: 20px; }
.cookie-text { font-size: 0.8rem; color: #ccc; }
.cookie-btn { background: var(--secondary); color: #000; border: none; padding: 6px 15px; font-weight: bold; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }

@media (max-width: 900px) { .main-grid { grid-template-columns: 1fr; } }