* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  min-height: 100vh;
  background: #0b0f1a;
  color: white;
  overflow-x: hidden;
}

/* BACKGROUND */
.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, #7f5cff55, transparent 40%),
    radial-gradient(circle at 80% 70%, #00eaff55, transparent 40%),
    linear-gradient(120deg, #05070f, #0b0f1a);
  z-index: -1;
}

/* HISTORY */
.history {
  position: fixed;
  left: 20px;
  top: 40px;
  width: 220px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 15px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.history h3 {
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.history ul {
  list-style: none;
}

.history li {
  font-size: 13px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.8;
}

.history li:hover {
  background: rgba(255,255,255,0.1);
}

/* MAIN APP */
.glass {
  width: 420px;
  margin: 80px auto;
  padding: 40px;
  border-radius: 28px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

header {
  text-align: center;
  margin-bottom: 30px;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field label {
  font-size: 13px;
  opacity: 0.7;
}

.field input, select {
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: white;
}

button {
  padding: 16px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, #7f5cff, #00eaff);
  color: #0b0f1a;
  font-weight: 600;
  cursor: pointer;
}

.loader {
  margin-top: 30px;
  text-align: center;
}

.orbit {
  width: 50px;
  height: 50px;
  border: 3px solid transparent;
  border-top: 3px solid #00eaff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.card {
  margin-top: 25px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(0,0,0,0.35);
}

.tag {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #00eaff33;
  display: inline-block;
  font-size: 13px;
}

.save {
  margin-top: 15px;
  background: #ffffff22;
  color: white;
}

.hidden {
  display: none;
}

footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  opacity: 0.4;
}
/* 📱 MOBILE */
@media (max-width: 768px) {
  .history {
    display: none;
  }

  .glass {
    width: 90%;
    margin: 40px auto;
    padding: 30px;
  }

  header h1 {
    font-size: 22px;
  }
}

