* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #050505;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* BACKGROUND */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 0, 92, 0.18), transparent 30%),
    radial-gradient(circle at 20% 85%, rgba(255,255,255,0.06), transparent 28%);
  z-index: -1;
}

/* BACK BUTTON */
.back-btn {
  position: fixed;
  top: 22px;
  left: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(20,20,20,0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: 100px auto;
  padding: 0 20px;
}

/* HEADER */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.header p {
  color: #ff005c;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 900;
}

.header h1 {
  font-size: 60px;
  font-weight: 900;
}

.header h1::after {
  content: "";
  display: block;
  width: 140px;
  height: 5px;
  margin: 18px auto 0;
  background: #ff005c;
  box-shadow: 0 0 20px rgba(255,0,92,0.7);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* CARD */
.card {
  background: rgba(20,20,20,0.85);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 25px;
  backdrop-filter: blur(14px);
}

/* TITLE */
.card h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* INPUT */
input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
}

/* BUTTONS */
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.main-btn {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: #ff005c;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.clear-btn {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

/* OUTPUT */
.output {
  margin-top: 15px;
  font-family: monospace;
  color: #cfcfcf;
  min-height: 60px;
}

/* PREVIEW MODE */
.preview-mode .grid,
.preview-mode .back-btn,
.preview-mode .header p {
  display: none;
}

.preview-mode .container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-mode .header h1 {
  font-size: 70px;
}