:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #060912;
  color: #f5f7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(60, 118, 234, 0.18), transparent 25%),
    radial-gradient(circle at bottom right, rgba(248, 113, 113, 0.14), transparent 20%),
    linear-gradient(180deg, #05080f 0%, #0e1624 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(91, 121, 255, 0.16), transparent 14%),
    radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.14), transparent 12%);
  pointer-events: none;
}

.app {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.hero-copy {
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #82b1ff;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.03;
}

.hero-copy p {
  margin: 1.2rem 0 0;
  max-width: 54rem;
  line-height: 1.75;
  color: #d8e2ff;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.95rem;
}

.hero-card {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.hero-card strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.hero-card #status {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

h1,
h2,
h3,
strong {
  color: #f8fafc;
}

h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

p {
  margin: 0;
}

form {
  display: grid;
  gap: 1rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: #edf2ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.95rem 1rem;
  border-radius: 16px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

button {
  border: none;
  border-radius: 16px;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button {
  color: #fff;
  background: linear-gradient(135deg, #5b7cff, #c084fc);
}

button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

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

label {
  color: #e2e8f0;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.looking-for-block {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.field-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #dbeafe;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.checkbox-grid label {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.checkbox-grid input {
  accent-color: #5b7cff;
}

.helper-text {
  color: #cbd5e1;
  line-height: 1.7;
}

.split-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.panel-block {
  display: grid;
  gap: 1rem;
}

.profile-grid {
  display: grid;
  gap: 0.85rem;
}

.profile-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-head,
.profile-meta,
.match-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.profile-card strong {
  color: #f8fafc;
}

.profile-card span,
.profile-meta span {
  color: #cbd5e1;
}

.match-panel {
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.match-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.audio-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-card strong {
  display: block;
  margin-bottom: 0.9rem;
}

.chat-area {
  min-height: 220px;
  max-height: 340px;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.chat-message {
  max-width: 85%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem;
  margin-top: 1rem;
}

.chat-form input {
  width: 100%;
}

.donation-panel {
  display: grid;
  gap: 1rem;
}

.donation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.donation-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.donation-card {
  padding: 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.donation-card strong {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.donation-card span {
  display: block;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  word-break: break-word;
}

.donation-card button {
  margin-top: 0.8rem;
  justify-self: start;
}

audio {
  width: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .app {
    padding: 1.2rem;
  }
}
