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

:root {
  --bg: #080d1d;
  --card: #10172b;
  --card-light: #151e36;
  --text: #f5f7ff;
  --muted: #9ca7c2;
  --blue: #4285ff;
  --purple: #8b5cf6;
  --border: rgba(255, 255, 255, 0.09);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 20%, rgba(74, 96, 255, 0.14), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.navbar {
  height: 70px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #4c9aff, #9b6cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status {
  color: #7f8aa8;
  font-size: 14px;
}

.status::first-letter {
  color: #42d392;
}

main {
  min-height: calc(100vh - 130px);
}

.screen {
  display: none;
  min-height: calc(100vh - 130px);
  padding: 50px 20px;
}

.screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  max-width: 760px;
  text-align: center;
}

.logo-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 25px;
  border: 2px solid #4268d8;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 0 40px rgba(66, 104, 216, 0.25);
}

.hero h1 {
  font-size: clamp(60px, 10vw, 100px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #4d9aff, #a16cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  margin-top: 18px;
  font-size: clamp(22px, 4vw, 34px);
}

.hero p {
  margin: 25px auto;
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.features span {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.035);
  color: #cbd3e8;
  font-size: 14px;
}

.primary-btn {
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  color: white;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 12px 30px rgba(75, 100, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(75, 100, 255, 0.38);
}

.age-warning {
  font-size: 13px !important;
  margin-top: 18px !important;
  color: #78839e !important;
}

.seo-content {
  margin: 55px auto 10px;
  max-width: 720px;
  text-align: left;
}

.seo-block {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.seo-block h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #eef2ff;
}

.seo-block p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.seo-block a {
  color: #8db8ff;
}

.card {
  width: 100%;
  max-width: 700px;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(16, 23, 43, 0.92);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.card h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.card label {
  display: block;
  margin: 25px 0 12px;
  font-weight: 700;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option {
  border: 1px solid #293454;
  background: #111a31;
  color: #b8c2dc;
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.option:hover,
.option.selected {
  border-color: #668cff;
  background: rgba(76, 130, 255, 0.15);
  color: white;
}

.card .primary-btn {
  width: 100%;
  margin-top: 30px;
}

.secondary-btn {
  margin-top: 12px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: #aeb8d0;
  cursor: pointer;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.matching-box {
  text-align: center;
  max-width: 600px;
}

.loader {
  width: 105px;
  height: 105px;
  margin: 0 auto 40px;
  border: 3px solid #1c315e;
  border-top-color: #4c9aff;
  border-right-color: #956cff;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.matching-box h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.matching-box p {
  color: var(--muted);
}

#interestDisplay {
  margin-top: 25px;
}

.interest-tag {
  display: inline-block;
  margin: 5px;
  padding: 8px 14px;
  border: 1px solid #315a9d;
  border-radius: 20px;
  color: #8db8ff;
  background: rgba(65, 126, 255, 0.08);
}

.chat-container {
  width: 100%;
  max-width: 800px;
  height: 650px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: #0e162b;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.chat-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.chat-header strong {
  font-size: 18px;
}

.online {
  margin-top: 5px;
  color: #42d392;
  font-size: 12px;
}

.chat-actions {
  display: flex;
  gap: 8px;
}

.chat-actions button {
  border: 1px solid var(--border);
  background: #151f37;
  color: #d6dded;
  padding: 9px 14px;
  border-radius: 9px;
  cursor: pointer;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
}

.system-message {
  text-align: center;
  color: #68748f;
  font-size: 13px;
  margin-bottom: 20px;
}

.message {
  max-width: 75%;
  padding: 11px 15px;
  margin: 10px 0;
  border-radius: 15px;
  line-height: 1.45;
}

.message.mine {
  margin-left: auto;
  background: linear-gradient(135deg, #386fe8, #7652df);
}

.message.theirs {
  background: #19243c;
  color: #dce3f3;
}

.chat-input {
  display: flex;
  gap: 10px;
  padding: 15px;
  border-top: 1px solid var(--border);
}

.chat-input input {
  flex: 1;
  min-width: 0;
  padding: 14px;
  border: 1px solid #293653;
  border-radius: 12px;
  outline: none;
  background: #0a1122;
  color: white;
}

.chat-input input:focus {
  border-color: #5687ff;
}

.chat-input button {
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  color: white;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  cursor: pointer;
  font-weight: 700;
}

.safety-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
}

.safety-actions button {
  border: none;
  background: transparent;
  color: #727e98;
  cursor: pointer;
  font-size: 12px;
}

.safety-actions button:hover {
  color: #ff8585;
}

footer {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #59647d;
  font-size: 12px;
  border-top: 1px solid var(--border);
}

/* Shared navigation used by the public information and guide pages. */
.guide-nav,
.page-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.guide-nav a,
.page-nav a {
  margin-right: 0 !important;
}

@media (max-width: 600px) {
  .navbar {
    padding: 0 20px;
  }

  .status {
    font-size: 12px;
  }

  .screen {
    padding: 30px 15px;
  }

  .card {
    padding: 25px 18px;
  }

  .card h2 {
    font-size: 25px;
  }

  .hero p {
    font-size: 16px;
  }

  .features span {
    font-size: 12px;
  }

  .seo-content {
    margin-top: 40px;
  }

  .seo-block {
    padding: 18px;
  }

  .seo-block h2 {
    font-size: 18px;
  }

  .seo-block p {
    font-size: 14px;
  }

  .chat-container {
    height: calc(100vh - 160px);
    border-radius: 16px;
  }

  .chat-header {
    padding: 15px;
  }

  .chat-actions button {
    padding: 8px 10px;
  }

  .message {
    max-width: 85%;
  }

  .chat-input {
    padding: 10px;
  }

  .chat-input button {
    padding: 0 14px;
  }
}