:root {
  --bg: #0b1020;
  --panel: #121a31;
  --panel-2: #17213f;
  --text: #eef3ff;
  --muted: #9fb0d3;
  --line: rgba(255,255,255,0.08);
  --accent: #78a6ff;
}

* { box-sizing: border-box; }
html, body {
  font-family: Arial, Helvetica, sans-serif;
  background: 
    linear-gradient(rgba(8,16,29,0.8), rgba(13,21,48,0.9)),
    url('media/bg.jpg') center no-repeat;
    
  background-size: auto;          /* головне */
  background-attachment: fixed;   /* щоб не рухався */
  
  color: var(--text);
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 32px 18px 48px; }
.hero {
  background: linear-gradient(135deg, rgba(120,166,255,0.18), rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 20px;
}
.eyebrow { margin: 0 0 10px; color: #b6c8f2; text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; }
h1, h2 { margin: 0; }
h1 { font-size: 36px; line-height: 1.1; margin-bottom: 10px; }
.subtitle { margin: 0; color: var(--muted); max-width: 760px; line-height: 1.6; }
.panel {
  background: rgba(18, 26, 49, 0.10); /* було 0.88 → стало прозоріше */
  backdrop-filter: blur(14px);        /* сильніше розмиття */
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 20px;

  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; color: #cbd7f4; }
.field input[type="text"],
.field input[type="number"] {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font-size: 16px; outline: none;
}
.tlds { display: flex; flex-wrap: wrap; gap: 10px; }
.tlds label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
  border: 1px solid var(--line); background: #1a2546; color: var(--text);
  border-radius: 14px; padding: 12px 16px; font-size: 15px; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #08101d; font-weight: 700; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .6; cursor: wait; }
.hint { color: var(--muted); margin: 16px 0 0; line-height: 1.5; }
.results-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
#stats { color: var(--muted); }
.results { display: grid; gap: 10px; }
.result-item {
  display: grid; grid-template-columns: 1.4fr 110px 140px 1.7fr 110px; gap: 12px; align-items: center;
  padding: 14px 16px; background: #111a34; border: 1px solid var(--line); border-radius: 16px;
}
.domain { font-size: 18px; font-weight: 700; word-break: break-word; }
.score, .message { color: var(--muted); font-size: 14px; }
.status { display: inline-flex; justify-content: center; padding: 8px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status.available { background: rgba(40,199,111,0.16); color: #7cf1aa; }
.status.taken { background: rgba(255,107,107,0.16); color: #ff9d9d; }
.status.unknown { background: rgba(255,200,87,0.16); color: #ffd97b; }
.status.not-checked { background: rgba(120,166,255,0.15); color: #bcd0ff; }
.small-btn { padding: 9px 12px; font-size: 13px; border-radius: 12px; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
.toast {
  position: fixed; right: 18px; bottom: 18px; background: rgba(12,18,36,.95); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; z-index: 9999;
}
@media (max-width: 980px) {
  .result-item { grid-template-columns: 1fr; align-items: start; }
  h1 { font-size: 28px; }
}

.field.wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }


/* Сайд меню */
.side-menu {
  position: fixed;
  top: 0;
  left: -220px; /* ховаємо */
  width: 220px;
  height: 100%;
  background: #0f1d3a;
  padding: 20px;
  box-shadow: 5px 0 20px rgba(0,0,0,0.3);
  transition: left 0.3s ease;
  z-index: 1000;
}

/* Коли наводиш */
.side-menu:hover {
  left: 0;
}

/* Заголовок */
.side-menu__title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
}

/* Меню */
.side-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Посилання */
.side-menu__nav a {
  text-decoration: none;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  background: #1a2d5c;
  transition: 0.2s;
}

.side-menu__nav a:hover {
  background: #2c46a3;
}

/* Активна сторінка */
.side-menu__nav a.active {
  background: #4c6fff;
}

/* Ручка (щоб видно було меню) */
.side-menu::after {
  content: '☰';
  position: absolute;
  right: -40px;
  top: 20px;
  background: #0f1d3a;
  color: white;
  padding: 10px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
}

.page-content {
  margin-left: 0;
  padding: 24px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

@media (max-width: 900px) {
  .side-menu {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .page-content {
    margin-left: 0;
    padding: 18px;
  }

  .wrap {
    max-width: 100%;
  }
}