*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #111;
  color: #fff;
}

header {
  padding: 20px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #ff4f6a;
  background: #000;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.left {
  flex: 1;
  min-width: 300px;
}

h1 {
  font-size: 42px;
  margin-top: 0;
}

p {
  color: #ccc;
  font-size: 18px;
  line-height: 1.5;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.section h2 {
  font-size: 26px;
  margin: 10px 0 6px;
}

.section p {
  color: #bbb;
  font-size: 16px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #28d76b;
  color: #000;
}

.btn-secondary {
  padding: 12px 18px;
  font-size: 15px;
  background: #28d76b;
  color: #000;
  margin-bottom: 18px;
}

/* Profiles grid */
.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.profile-slot {
  background: #222;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.profile-tag {
  font-size: 13px;
  color: #ff4f6a;
  font-weight: 600;
}

.profile-city {
  font-size: 12px;
  color: #ccc;
}

.online-dot {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ff5a;
  box-shadow: 0 0 6px #00ff5a;
}

/* Chatbox */
.chatbox {
  flex: 1;
  min-width: 300px;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  max-height: 360px;
  display: flex;
  flex-direction: column;
}

.bubble {
  max-width: 75%;
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0;
}

.her {
  background: #ff4f6a;
  color: #fff;
  border-bottom-left-radius: 4px;
}

.you {
  background: #333;
  color: #ddd;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.see-pic {
  text-align: center;
  font-weight: 800;
  background: #28d76b;
  color: #000;
  cursor: pointer;
  border-bottom-left-radius: 14px;
  display: none; /* hidden until chat completes */
}

.see-pic a {
  color: #000;
  text-decoration: none;
  font-weight: 800;
  display: block;
}

/* Animations */
@keyframes bubbleFade {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.bubble.show {
  animation: bubbleFade 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }
  .chatbox {
    max-height: 320px;
  }
}
