* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0f0f0f;
  color: white;
}

.bg {
  position: absolute;
  inset: 0;
  filter: blur(40px);
}

.pink {
  background:
    radial-gradient(circle at top left, #ff4d8d, transparent 30%),
    radial-gradient(circle at bottom right, #ff99bb, transparent 35%),
    #12060d;
}

.card {
  position: relative;
  z-index: 1;
  width: 340px;
  padding: 32px;
  border-radius: 30px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  text-align: center;
}

.title {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 900;
  letter-spacing: -2px;
}

.avatar.small {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 4px solid rgba(255,255,255,0.2);
}

.username {
  font-size: 30px;
  margin: 0;
  margin-bottom: 20px;
  font-weight: bold;
}

.message {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.92;
}

.meter {
  width: 100%;
  height: 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 24px;
}

.fill {
  height: 100%;
  width: 99%;
}

.pink-fill {
  background: linear-gradient(to right, #ff4d8d, #ff85a2);
}

.obsession {
  margin-top: 14px;
  font-size: 16px;
  font-weight: bold;
}

.chat-btn {
  width: 100%;
  margin-top: 28px;
  border: none;
  padding: 18px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  background: linear-gradient(to right, #ff4d8d, #ff709f);
  transition: 0.25s;
}

.chat-btn:hover {
  transform: scale(1.03);
}

.top-badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 22px;
  font-weight: bold;
}

.main-title {
  font-size: 42px;
  line-height: 1;
  margin: 0;
  margin-bottom: 18px;
  font-weight: 900;
  letter-spacing: -2px;
}

.subtitle {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 26px;
}

.main-btn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(to right, #ff4d8d, #ff7aa8);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
}

.main-btn:hover {
  transform: scale(1.03);
}

.loading-box {
  margin-top: 24px;
}

.hidden {
  display: none;
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.15);
  border-top: 4px solid white;
  margin: 0 auto 18px;
  animation: spin 1s linear infinite;
}
