* {
  box-sizing: border-box;
}
:root {
  --bg0: #070a12;
  --bg1: #090d18;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --border2: rgba(255, 255, 255, 0.14);
  --text: rgba(236, 241, 255, 0.92);
  --muted: rgba(236, 241, 255, 0.62);
  --accent: #7aa7ff;
  --ok: #64f2c8;
  --danger: #ff6fae;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(
      800px circle at 18% 12%,
      rgba(122, 167, 255, 0.18),
      transparent 45%
    ),
    radial-gradient(
      900px circle at 82% 88%,
      rgba(100, 242, 200, 0.12),
      transparent 48%
    ),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  font-size: 18px;
}

.app {
  width: min(820px, 92vw);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.title {
  margin: 0;
  font-size: 34px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(236, 241, 255, 0.96);
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 16px;
  backdrop-filter: blur(8px);
}

.label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--muted);
  text-transform: uppercase;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.input {
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.input::placeholder {
  color: rgba(236, 241, 255, 0.45);
}

.input:focus {
  border-color: rgba(122, 167, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(122, 167, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn {
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(122, 167, 255, 0.45);
  background: linear-gradient(
    180deg,
    rgba(122, 167, 255, 0.22),
    rgba(122, 167, 255, 0.1)
  );
  color: rgba(236, 241, 255, 0.95);
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.08s ease, filter 0.15s ease, border-color 0.15s ease;
  font-size: 16px;
}

.btn:hover {
  filter: brightness(1.12);
  border-color: rgba(122, 167, 255, 0.62);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}

.subtitle {
  margin: 0 0 10px 0;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(236, 241, 255, 0.82);
}

.message {
  margin: 10px 0 0 0;
  min-height: 22px;
  font-weight: 700;
  color: rgba(236, 241, 255, 0.78);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.12s ease, border-color 0.12s ease,
    box-shadow 0.12s ease, background 0.12s ease;
}

.list li:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 167, 255, 0.28);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.list li span {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(236, 241, 255, 0.92);
  word-break: break-word;
}

.list li button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(236, 241, 255, 0.92);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  transition: transform 0.08s ease, filter 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
}

.list li button:hover {
  filter: brightness(1.15);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.list li button:active {
  transform: translateY(1px) scale(0.99);
}

.done {
  border-color: rgba(100, 242, 200, 0.45);
  background: linear-gradient(
    180deg,
    rgba(100, 242, 200, 0.14),
    rgba(100, 242, 200, 0.06)
  );
}

.done span {
  color: rgba(236, 241, 255, 0.75);
  text-decoration: line-through;
}

.fresh span {
  font-weight: 800;
}

.pop {
  animation: pop 0.22s ease-out;
}

@keyframes pop {
  from {
    transform: translateY(2px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.list li span {
  cursor: pointer;
}
.list li span:hover {
  opacity: 0.9;
}

.glow {
  box-shadow: 0 0 0 1px rgba(100, 242, 200, 0.55),
    0 0 24px rgba(100, 242, 200, 0.45), 0 0 48px rgba(100, 242, 200, 0.25);
}
