* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1e1e2f, #3a3a5f);
}

.calculator {
  width: 320px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#display {
  width: 100%;
  height: 60px;
  border: none;
  outline: none;
  margin-bottom: 15px;
  text-align: right;
  font-size: 24px;
  padding: 10px;
  border-radius: 10px;
  background: #111;
  color: #fff;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

button {
  height: 55px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  background: #2a2a40;
  color: #fff;
  transition: 0.s;
}

button:hover {
  background: #4444aa;
}

.equal {
  grid-row: span 2;
  background: #ff7a18;
}

.zero {
  grid-column: span 2;
}

@media (max-width: 400px) {
  .calculator {
    width: 95%;
  }
}