﻿* { box-sizing: border-box; margin: 0; padding: 0; }
:root { color-scheme: dark; font-family: 'Segoe UI', Roboto, sans-serif; color: #e2e8f0; --bg:#050914; --panel:rgba(10,17,32,0.9); --panel-strong:rgba(7,10,20,0.98); --border:rgba(148,163,184,0.12); --text:#e2e8f0; --muted:#94a3b8; --accent:#3b82f6; --success:#22c55e; --danger:#ef4444; }
html, body { min-height:100%; background: radial-gradient(circle at 22% 15%, rgba(59,130,246,0.14), transparent 18%), radial-gradient(circle at 80% 0%, rgba(59,130,246,0.08), transparent 22%), linear-gradient(180deg, #050914 0%, #071016 100%); }
body { color: var(--text); display:flex; justify-content:center; padding:24px; overflow-x:hidden; }
button, input { font: inherit; }
.container { width:min(100%,1080px); position:relative; z-index:2; }
#offlineOverlay { position:fixed; inset:0; background:rgba(2,7,18,0.96); display:none; align-items:center; justify-content:center; z-index:10010; padding:20px; opacity:0; transition:opacity 0.2s ease; }
#offlineOverlay.visible { display:flex; opacity:1; }
.offline-box { max-width:420px; width:100%; background:rgba(15,23,42,0.95); border:1px solid rgba(255,255,255,0.08); border-radius:28px; padding:34px 28px; text-align:center; }
.offline-box h3 { margin:0 0 16px; font-size:1.6rem; }
.offline-box p { color:var(--muted); line-height:1.8; margin-bottom:22px; }
#bg { position:fixed; inset:0; z-index:0; pointer-events:none; }
#loader { position:fixed; inset:0; z-index:10000; background: #050914; display:flex; align-items:center; justify-content:center; }
.loader-content { display:flex; flex-direction:column; align-items:center; text-align:center; }
.loader-logo { height:85px; margin-bottom:30px; filter:drop-shadow(0 0 30px #3b82f6); animation:pulse 1.5s infinite ease-in-out; }
@keyframes pulse { 0%,100%{transform:scale(1);filter:drop-shadow(0 0 20px #3b82f6);} 50%{transform:scale(1.08);filter:drop-shadow(0 0 45px #3b82f6);} }
.progress-container { width:220px; height:4px; background:rgba(255,255,255,0.05); border-radius:10px; overflow:hidden; }
.progress-bar { height:100%; width:0; background:#3b82f6; box-shadow:0 0 20px #3b82f6; transition:0.3s; }
body.loaded .container { opacity:1; transform:translateY(0); }
.container { opacity:0; transform:translateY(15px); transition:0.8s cubic-bezier(0.2,0.8,0.2,1); }
header { display:flex; align-items:center; justify-content:center; gap:14px; margin-bottom:24px; }
header img { height:50px; filter:drop-shadow(0 0 15px #3b82f6); }
header h2 { font-size:22px; font-weight:600; letter-spacing:0.5px; }
.help-btn { width:36px; height:36px; border-radius:50%; background:rgba(59,130,246,0.1); border:1px solid rgba(59,130,246,0.25); color:#60a5fa; cursor:pointer; display:grid; place-items:center; transition:0.25s; }
.help-btn:hover { background:#3b82f6; color:#fff; transform:scale(1.05); }
.card { background:var(--panel); border:1px solid rgba(255,255,255,0.08); border-radius:28px; padding:26px; margin-bottom:18px; backdrop-filter:blur(20px); }
.items { display:flex; justify-content:center; gap:34px; align-items:center; margin-bottom:28px; }
.item-box { display:flex; flex-direction:column; align-items:center; gap:10px; width:110px; color:var(--muted); font-size:13px; }
.item-box img { width:75px; filter:drop-shadow(0 0 10px rgba(0,0,0,0.4)); transition:0.4s; }
.normal-box:hover img { transform:translateY(-8px) scale(1.05); filter:drop-shadow(0 0 15px #fbbf24) drop-shadow(0 0 30px rgba(251,191,36,0.5)); }
.cursed-box:hover img { transform:translateY(-8px) scale(1.05); filter:drop-shadow(0 0 12px #ef4444) drop-shadow(0 0 25px rgba(239,68,68,0.7)); }
.grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
.input-group { position:relative; min-width:0; }
.input-group svg { position:absolute; left:16px; top:50%; transform:translateY(-50%); width:18px; height:18px; fill:#3b82f6; opacity:0.8; }
input { width:100%; padding:15px 15px 15px 48px; border-radius:16px; border:1px solid rgba(255,255,255,0.08); background:rgba(7,11,20,0.55); color:#fff; outline:none; font-size:15px; transition:0.25s; min-width:0; }
input::placeholder { color:rgba(226,232,240,0.45); }
input:focus { border-color:#3b82f6; background:rgba(7,11,20,0.8); }
.wide, .input-group.wide { grid-column:1 / -1; }
.result { position:relative; font-size:14px; line-height:1.8; padding:25px; background:rgba(15,23,42,0.85); border-radius:28px; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); min-width:280px; max-width:calc(100% - 40px); padding:14px 18px; border-radius:18px; background:rgba(15,23,42,0.95); color:#fff; font-size:14px; box-shadow:0 18px 45px rgba(0,0,0,0.3); opacity:0; pointer-events:none; transition:opacity 0.25s ease, transform 0.25s ease; z-index:10020; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(-8px); }
.toast.success { background: rgba(34,197,94,0.95); }
.toast.error { background: rgba(239,68,68,0.95); }
.toast.warning { background: rgba(245,158,11,0.95); }
.tag.real-tag { background: rgba(59,130,246,0.12); color: #bfdbfe; }
.tag.bot-tag { background: rgba(244,63,94,0.14); color: #fecdd3; }.result hr { border:0; border-top:1px solid rgba(255,255,255,0.08); margin:18px 0; }
.result-row { display:flex; justify-content:space-between; gap:16px; }
.result-row span { color:var(--muted); }
.result-row strong { color:var(--text); }
.profit-positive { color:var(--success); }
.profit-negative { color:var(--danger); }
.thermometer-track { width:100%; height:10px; background:rgba(255,255,255,0.08); border-radius:999px; overflow:hidden; margin-top:14px; }
.thermometer-fill { height:100%; width:0; transition:width 0.45s ease; }
.share-btn { margin-top:18px; padding:12px 16px; border-radius:16px; border:1px solid rgba(59,130,246,0.2); background:rgba(59,130,246,0.1); color:#60a5fa; cursor:pointer; display:inline-flex; align-items:center; gap:8px; font-weight:600; transition:0.25s; }
.share-btn:hover { background:rgba(59,130,246,0.2); color:#fff; }
.modal { position:fixed; inset:0; z-index:10005; display:none; align-items:center; justify-content:center; background:rgba(2,7,18,0.86); backdrop-filter:blur(12px); padding:20px; }
.modal[aria-hidden="false"] { display:flex; }
.modal-content { width:min(540px,100%); background:#111827; border:1px solid rgba(255,255,255,0.08); border-radius:28px; padding:28px; box-shadow:0 30px 70px rgba(0,0,0,0.75); }
.modal-content h3 { margin:0 0 20px; font-size:22px; text-align:center; }
.modal-item { margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid rgba(255,255,255,0.05); }
.modal-item:last-child { border-bottom:none; margin-bottom:10px; }
.modal-item b { display:block; color:#60a5fa; font-size:12px; text-transform:uppercase; letter-spacing:1px; margin-bottom:8px; }
.modal-item p { color:#cbd5e1; font-size:15px; line-height:1.7; }
.nowrap { color:#60a5fa; font-weight:700; white-space:nowrap; }
.editable-kurs { cursor:pointer; border-bottom:1px dashed #3b82f6; }
.close-modal, .save-kurs { width:100%; padding:16px; border:none; border-radius:16px; background:#3b82f6; color:#fff; font-weight:700; font-size:16px; cursor:pointer; transition:0.25s; }
.close-modal:hover, .save-kurs:hover { background:#2563eb; transform:translateY(-2px); }
.kurs-input { width:100%; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); padding:18px; border-radius:16px; color:#fff; font-size:18px; text-align:center; margin-bottom:20px; outline:none; }
.kurs-input:focus { border-color:#3b82f6; background:rgba(59,130,246,0.06); }
@media (max-width:900px) { .grid { grid-template-columns:1fr; } .wide { grid-column:1 / -1; } .items { flex-direction:column; gap:20px; } }
