* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── AI status pill ─────────────────────────────────────────────────────────── */
.ai-status {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  transition: all 0.4s ease;
}
.ai-status.loading  { background: rgba(255,210,100,0.12); color: #f5d080; border: 1px solid rgba(255,210,100,0.25); }
.ai-status.ready    { background: rgba(100,220,160,0.12); color: #7de0a8; border: 1px solid rgba(100,220,160,0.25); }
.ai-status.thinking { background: rgba(180,130,255,0.12); color: #c4a0ff; border: 1px solid rgba(180,130,255,0.25); animation: pulse 1.4s infinite; }
.ai-status.fallback { background: rgba(255,255,255,0.07); color: #aaa;    border: 1px solid rgba(255,255,255,0.12); }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

body {
  min-height: 100vh;
  font-family: Georgia, serif;
  color: white;
  background:
    linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, .78)),
    url("clouds.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 35px;
  padding: 45px;
}

.hero,
.work {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.brand,
.small {
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #ffd0c4;
  font-size: 12px;
}

h1 {
  font-size: 96px;
  font-weight: normal;
  margin: 0;
  text-shadow: 0 0 40px rgba(255, 180, 160, .5);
}

h2 {
  font-size: 22px;
  font-weight: normal;
  color: #ffd0c4;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.subtitle {
  font-size: 24px;
  max-width: 440px;
  line-height: 1.5;
  margin-top: 12px;
}

.card,
.result,
.history,
.signup {
  background: rgba(10, 8, 9, 0.58);
  border: 1px solid rgba(255, 210, 200, .22);
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.card .small,
.result .small,
.history .small,
.signup .small {
  margin-bottom: 10px;
  display: block;
}

textarea,
input[type="email"] {
  width: 100%;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 210, 200, .3);
  background: rgba(0, 0, 0, .35);
  color: white;
  font-size: 18px;
  outline: none;
  font-family: Georgia, serif;
  margin-bottom: 18px;
}

textarea {
  min-height: 200px;
  line-height: 1.6;
  resize: vertical;
}

textarea::placeholder,
input::placeholder {
  color: rgba(255, 255, 255, .45);
}

button {
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 210, 200, .2);
  background: rgba(185, 106, 98, .55);
  color: white;
  font-family: Georgia, serif;
  font-size: 16px;
  cursor: pointer;
  transition: .25s ease;
}

button:hover {
  background: rgba(210, 130, 120, .75);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.buttons,
.share-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 18px;
}

.mode.active,
.depth.active {
  box-shadow: 0 0 22px rgba(255, 210, 200, .5);
  background: rgba(255, 180, 160, .25);
  border-color: rgba(255, 210, 200, .5);
}

#transformBtn {
  width: 100%;
  background: linear-gradient(135deg, #b96a62, #5a2623);
}

#transformBtn:hover {
  background: linear-gradient(135deg, #cc7a71, #6e2e2a);
}

#resultText {
  font-size: 20px;
  line-height: 1.75;
  font-style: italic;
  white-space: pre-line;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 22px;
}

.result.glow {
  box-shadow:
    0 0 45px rgba(255, 210, 200, .25),
    0 30px 90px rgba(0, 0, 0, .6);
}

.notice {
  color: #ffd0c4;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 12px;
}

.history-item {
  border-top: 1px solid rgba(255, 210, 200, .18);
  padding-top: 14px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.5;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.offer-grid button {
  width: 100%;
}

#reportBtn {
  background: linear-gradient(135deg, #b96a62, #5a2623);
  font-size: 17px;
  padding: 18px;
}

#reportBtn:hover {
  background: linear-gradient(135deg, #cc7a71, #6e2e2a);
}

#emailBtn {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 950px) {
  .app {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  h1 {
    font-size: 64px;
  }

  .buttons,
  .share-buttons {
    grid-template-columns: 1fr;
  }
}
