:root {
  --bg-primary: #0e1118;
  --bg-card: #171b26;
  --bg-card-hover: #1f2533;
  --accent: #ff5e7e;
  --accent-glow: rgba(255, 94, 126, 0.25);
  --accent-secondary: #a777e3;
  --text-main: #f0f3f8;
  --text-muted: #8b95a5;
  --border: #283042;
  --success: #2ecc71;
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
  overflow-x: hidden;
}

.app-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 40px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

.brand span.logo {
  font-size: 1.5rem;
  animation: pulse 2.5s infinite;
}

.streak-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 94, 126, 0.15);
  border: 1px solid rgba(255, 94, 126, 0.3);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* Profiles bar */
.couple-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.member-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 2px solid var(--border);
}

.member-pill.active .avatar {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.member-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.status-dot {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot.done {
  color: var(--success);
}

.status-dot.waiting {
  color: #f39c12;
}

.heart-divider {
  font-size: 1.2rem;
  color: var(--accent);
  animation: pulse 1.8s infinite;
}

/* Question Card */
.card-question {
  background: linear-gradient(145deg, #181d2a, #131722);
  border-radius: 24px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card-question::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: var(--accent-glow);
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 12px;
}

.question-text {
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

/* Forms & Inputs */
.answer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

textarea {
  width: 100%;
  height: 110px;
  background: #11141d;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  color: #fff;
  font-size: 1rem;
  resize: none;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.choice-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-choice {
  background: #11141d;
  border: 1.5px solid var(--border);
  color: var(--text-main);
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-choice:hover, .btn-choice.selected {
  border-color: var(--accent);
  background: rgba(255, 94, 126, 0.1);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #ff5e7e, #e05260);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 20px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  align-self: flex-end;
}

/* Revealed answers */
.answers-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.answer-card {
  background: #11141d;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  position: relative;
}

.answer-card.blurred {
  filter: blur(10px);
  user-select: none;
  opacity: 0.5;
  pointer-events: none;
}

.answer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.answer-body {
  font-size: 1rem;
  line-height: 1.5;
  color: #e2e8f0;
  white-space: pre-wrap;
}

.locked-banner {
  background: rgba(243, 156, 18, 0.1);
  border: 1px dashed rgba(243, 156, 18, 0.4);
  color: #f39c12;
  padding: 14px;
  border-radius: 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Reactions Bar */
.reactions-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-emoji {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-emoji:active {
  transform: scale(1.2);
}

.reactions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.reaction-chip {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Pairing modal / overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px 22px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-header h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.slot-option {
  border: 2px solid var(--border);
  background: #11141d;
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.slot-option.selected {
  border-color: var(--accent);
  background: rgba(255, 94, 126, 0.12);
}

.slot-option .emoji {
  font-size: 2rem;
}

.slot-option span {
  font-size: 0.9rem;
  font-weight: 600;
}

.input-field {
  background: #11141d;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.input-field:focus {
  border-color: var(--accent);
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #11141d;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin-top: 10px;
}

.qr-box img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
}

.qr-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.confetti {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
