::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #202225; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: #5865f2; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7289da; }

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top left, #2f3136 0%, #1e1f22 80%);
  color: #fff;
  margin: 0; padding: 0;
  display: flex; justify-content: center; align-items: center;
  height: 100vh;
  overflow: hidden;
}

.card {
  background: rgba(54, 57, 63, 0.9);
  padding: 40px;
  border-radius: 22px;
  box-shadow:
    0 15px 35px rgba(0,0,0,.5),
    0 0 25px rgba(88,101,242,.15);
  width: 100%; max-width: 620px;
  animation: fadeIn .8s ease;
  overflow: auto; max-height: 95vh;
  backdrop-filter: blur(10px);
  transition: transform .4s ease, box-shadow .4s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 45px rgba(0,0,0,.6),
    0 0 35px rgba(88,101,242,.25);
}

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

h2 {
  color: #b9c4ff;
  text-align: center;
  margin: 0 0 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(88,101,242,0.4);
}

label {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity .3s;
}

label:hover {
  opacity: 1;
}

input[type="text"], textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(32,34,37,0.8);
  color: #fff;
  font-family: monospace;
  resize: vertical;
  outline: none;
  transition: border-color .3s, background .3s;
}

input[type="text"]:focus,
textarea:focus {
  border-color: #5865f2;
  background: rgba(32,34,37,0.95);
  box-shadow: 0 0 8px rgba(88,101,242,0.3);
}

textarea {
  min-height: 70px;
  overflow-y: auto;
}

.button-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

button {
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
  user-select: none;
}

button.primary {
  width: 50%;
  background: linear-gradient(135deg, #7079ff, #5865f2);
  color: #fff;
  box-shadow:
    0 4px 15px rgba(88,101,242,.4),
    0 0 10px rgba(255,255,255,.1),
    inset 0 0 5px rgba(255,255,255,.2);
}

button.primary:hover {
  background: linear-gradient(135deg, #8a94ff, #4e57e0);
  box-shadow:
    0 8px 20px rgba(88,101,242,.5),
    0 0 20px rgba(255,255,255,.2),
    inset 0 0 10px rgba(255,255,255,.3);
  transform: scale(1.04);
}

button.primary:active {
  transform: scale(0.96);
  box-shadow: inset 0 4px 6px rgba(0,0,0,.3);
}

button.secondary {
  width: 50%;
  background: linear-gradient(135deg, #ff5c5c, #c0392b);
  color: #fff;
  box-shadow:
    0 4px 15px rgba(236,81,81,.4),
    0 0 10px rgba(255,255,255,.1),
    inset 0 0 5px rgba(255,255,255,.2);
}

button.secondary:hover {
  background: linear-gradient(135deg, #ff7b7b, #e74c3c);
  box-shadow:
    0 8px 20px rgba(236,81,81,.5),
    0 0 20px rgba(255,255,255,.2),
    inset 0 0 10px rgba(255,255,255,.3);
  transform: scale(1.04);
}

button.secondary:active {
  transform: scale(0.96);
  box-shadow: inset 0 4px 6px rgba(0,0,0,.3);
}

#log {
  margin-top: 24px;
  padding: 12px;
  height: 140px;
  overflow-y: auto;
  background: rgba(32,34,37,0.8);
  border-radius: 10px;
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  border: 1px solid rgba(255,255,255,0.05);
  transition: background .3s;
}

#log:hover {
  background: rgba(32,34,37,0.9);
}

@media (max-width: 600px) {
  .card { padding: 20px; max-width: 95%; border-radius: 14px; }
  h2 { font-size: 18px; margin-bottom: 18px; }
  label { font-size: 13px; margin-top: 12px; }
  input[type="text"], textarea { padding: 10px; font-size: 13px; }
  .button-container { flex-direction: column; gap: 10px; }
  button.primary, button.secondary { width: 100%; font-size: 16px; padding: 12px; }
  #log { height: 100px; font-size: 11px; }
}
