:root {
  --accent: #00ff9c;
  --bg: #050505;
  --border: rgba(0, 255, 156, 0.3);
  --glass: rgba(0, 15, 10, 0.95);
  --dim: #004422;
  --error: #ff3333;
}

* { box-sizing: border-box; cursor: crosshair; }

body, html {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  color: var(--accent);
  font-family: 'Consolas', monospace;
  overflow: hidden;
}

body::before {
  content: " ";
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
  background-size: 100% 4px; z-index: 1000; pointer-events: none;
}

#layout { display: flex; height: 100vh; }

aside {
  width: 320px;
  border-right: 1px solid var(--border);
  background: rgba(0, 5, 2, 0.9);
  padding: 30px 15px;
  display: flex; flex-direction: column;
}

.brand { font-size: 26px; font-weight: bold; letter-spacing: 4px; text-align: center; margin-bottom: 40px; text-shadow: 0 0 10px var(--accent); }
.menu-group { margin-bottom: 25px; overflow-y: auto; flex: 1; padding-right: 5px; }
.menu-label { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 2px; margin: 15px 0 5px 0; display: block; }

nav button {
  width: 100%; background: transparent; border: 1px solid transparent;
  color: var(--accent); text-align: left; padding: 8px 10px;
  font-family: inherit; font-size: 12px; text-transform: uppercase;
  transition: 0.2s; margin-bottom: 1px;
}

nav button:hover { background: rgba(0, 255, 156, 0.1); border-color: var(--border); }
nav button.active { background: var(--accent); color: #000; }

main { flex: 1; padding: 60px; overflow-y: auto; scroll-behavior: smooth; background: radial-gradient(circle at center, #001105 0%, #000 100%); }

.page { display: none; max-width: 850px; animation: fadeIn 0.4s ease-out; }
.page.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

h1 { font-size: 36px; margin: 0 0 20px 0; letter-spacing: -1px; text-transform: uppercase; }
h2 { color: #fff; font-size: 18px; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-top: 30px; text-transform: uppercase; }

.info-card { border: 1px solid var(--border); background: rgba(0, 255, 156, 0.03); padding: 20px; margin: 20px 0; line-height: 1.6; }

.recipe-box { background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--accent); padding: 15px; margin: 15px 0; font-size: 13px; color: #fff; }

.craft-container { margin: 20px 0; padding: 15px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); display: inline-block; }

.craft-grid { display: grid; grid-template-columns: repeat(3, 50px); grid-template-rows: repeat(3, 50px); gap: 4px; margin-top: 10px; }

.slot { width: 50px; height: 50px; background: rgba(0, 255, 156, 0.05); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }

.slot img { max-width: 80%; max-height: 80%; image-rendering: pixelated; }

.disclaimer { margin-top: 80px; color: var(--error); font-size: 10px; text-align: center; opacity: 0.5; border-top: 1px dotted var(--error); padding-top: 20px; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); }

/* Стилизация полей формы донабора */
.input {
    width: 100%;
    background: rgba(0, 255, 156, 0.02);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 10px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    outline: none;
    transition: all 0.25s ease;
    margin-top: 5px;
}

.input:focus {
    background: rgba(0, 255, 156, 0.07);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.15);
}

textarea.input {
    height: 90px;
    resize: none;
}

/* Стилизация триггера отправки */
#send:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent);
}