/* ============================================================
   Another Love — Design System
   Palette: Abyss #0A1628 · Teal #00BFB3 · Navy #0D2035
            Ice #E8F8F7 · Soft Teal #7DDBD6
   Fonts: Cinzel (display) · Inter (UI)
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #0A1628;
  color: #E8F8F7;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

#app {
  width: 100vw;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0A1628;
}

/* ── Typography ──────────────────────────────────────────── */
.display         { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.display-sm      { font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.06em; }
h1               { font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.08em; }
h2               { font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 600; }
h3               { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 600; }
p                { line-height: 1.6; }
a                { color: #00BFB3; text-decoration: none; }
a:hover          { color: #7DDBD6; }

/* ── Splash ──────────────────────────────────────────────── */
.splash {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  background: #0A1628;
}
.splash-logo {
  width: 240px;
  animation: fadeIn 0.6s ease;
}

/* ── Screen wrapper ──────────────────────────────────────── */
.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  animation: fadeIn 0.3s ease;
}

.screen-padded {
  padding: 2rem 1.5rem;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #00BFB3, #0097A7);
  color: #0A1628;
}
.btn-primary:hover { background: linear-gradient(135deg, #00D4C7, #00BFB3); }

.btn-secondary {
  background: transparent;
  border: 1.5px solid #00BFB3;
  color: #00BFB3;
}
.btn-secondary:hover { background: rgba(0,191,179,0.08); }

.btn-ghost {
  background: transparent;
  color: #7DDBD6;
  font-size: 0.9rem;
  padding: 0.5rem;
}

.btn-google {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #E8F8F7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.btn-google:hover { background: rgba(255,255,255,0.1); }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Inputs ──────────────────────────────────────────────── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.input-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #7DDBD6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
input, select, textarea {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #E8F8F7;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
input::placeholder { color: rgba(232,248,247,0.35); }
input:focus, select:focus {
  border-color: #00BFB3;
  background: rgba(0,191,179,0.06);
}
select option { background: #0D2035; color: #E8F8F7; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: #0D2035;
  border: 1px solid rgba(0,191,179,0.15);
  border-radius: 16px;
  overflow: hidden;
}

/* ── Welcome Screen ──────────────────────────────────────── */
.welcome-screen {
  background: linear-gradient(180deg, #0A1628 0%, #0D2035 50%, #0A1628 100%);
  padding: 3rem 2rem 2rem;
  align-items: center;
  text-align: center;
  gap: 0;
}
.welcome-logo {
  width: 200px;
  margin-bottom: 2rem;
}
.welcome-tagline {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #7DDBD6;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.welcome-features {
  list-style: none;
  text-align: left;
  width: 100%;
  max-width: 320px;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.welcome-features li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.95rem;
  color: #E8F8F7;
  opacity: 0.85;
}
.welcome-features .feat-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(0,191,179,0.12);
  border: 1px solid rgba(0,191,179,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.welcome-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  width: 100%;
  max-width: 320px;
}
.welcome-footer .btn { margin-bottom: 1rem; }
.welcome-login-link {
  font-size: 0.85rem;
  color: rgba(232,248,247,0.55);
  text-align: center;
}
.welcome-login-link a { color: #00BFB3; }

/* ── Auth Screen ─────────────────────────────────────────── */
.auth-screen {
  padding: 2.5rem 1.75rem;
  gap: 1.5rem;
}
.auth-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #7DDBD6;
  font-size: 0.9rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.auth-header { margin-bottom: 0.5rem; }
.auth-header h1 { margin-bottom: 0.5rem; }
.auth-header p { color: rgba(232,248,247,0.55); font-size: 0.9rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(232,248,247,0.3);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.auth-footer {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(232,248,247,0.5);
  margin-top: auto;
  padding-top: 1rem;
}
.auth-footer a { color: #00BFB3; }

.auth-error {
  background: rgba(255,80,80,0.12);
  border: 1px solid rgba(255,80,80,0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #ff9090;
}

/* ── Onboarding ──────────────────────────────────────────── */
.onboarding-screen {
  padding: 2.5rem 1.75rem;
  gap: 1.5rem;
}
.onboarding-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 0.5rem;
}
.onboarding-progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  transition: background 0.3s;
}
.onboarding-progress span.active { background: #00BFB3; }

.onboarding-header h1 { margin-bottom: 0.5rem; }
.onboarding-header p  { color: rgba(232,248,247,0.55); font-size: 0.9rem; }

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.option-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}
.option-card:hover  { border-color: rgba(0,191,179,0.4); background: rgba(0,191,179,0.05); }
.option-card.selected {
  border-color: #00BFB3;
  background: rgba(0,191,179,0.1);
}
.option-icon {
  font-size: 1.4rem;
  width: 42px;
  text-align: center;
}
.option-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.1rem; }
.option-text span   { font-size: 0.8rem; color: rgba(232,248,247,0.5); }

/* ── Browse Screen ───────────────────────────────────────── */
.browse-screen {
  background: #0A1628;
}
.browse-header {
  padding: 1.5rem 1.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.browse-header h2 { font-family: 'Cinzel', serif; font-size: 1.1rem; letter-spacing: 0.06em; }
.browse-sub { color: rgba(232,248,247,0.45); font-size: 0.8rem; margin-top: 0.2rem; }

.browse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem 6rem;
}
.character-card {
  background: #0D2035;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0,191,179,0.1);
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}
.character-card:active { transform: scale(0.97); }
.character-card:hover  { border-color: rgba(0,191,179,0.35); }

.character-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
}
.character-card-info {
  padding: 0.65rem 0.75rem 0.75rem;
}
.character-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #E8F8F7;
}
.character-card-sub {
  font-size: 0.75rem;
  color: rgba(232,248,247,0.45);
  margin-top: 0.1rem;
}

.character-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: rgba(232,248,247,0.4);
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0,191,179,0.2);
  border-top-color: #00BFB3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

/* ── Character Profile (full screen) ────────────────────── */
.profile-screen {
  position: relative;
  min-height: 100dvh;
  background: #0A1628;
}
.profile-hero {
  position: relative;
  width: 100%;
  height: 65dvh;
}
.profile-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.profile-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, #0A1628 0%, transparent 100%);
}
.profile-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10,22,40,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  color: #E8F8F7;
  font-size: 1rem;
}
.profile-content {
  padding: 0 1.5rem 2rem;
  margin-top: -2rem;
  position: relative;
}
.profile-name {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.profile-meta {
  color: rgba(232,248,247,0.5);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.profile-tag {
  background: rgba(0,191,179,0.1);
  border: 1px solid rgba(0,191,179,0.25);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  color: #7DDBD6;
}
.profile-overview {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(232,248,247,0.75);
  margin-bottom: 1.5rem;
}
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Chat Screen ─────────────────────────────────────────── */
.chat-screen {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: #0A1628;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #0D2035;
  border-bottom: 1px solid rgba(0,191,179,0.1);
  flex-shrink: 0;
}
.chat-header-back {
  background: none;
  border: none;
  color: #7DDBD6;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
}
.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 1.5px solid rgba(0,191,179,0.4);
}
.chat-header-info { flex: 1; }
.chat-header-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #E8F8F7;
}
.chat-header-status {
  font-size: 0.75rem;
  color: #00BFB3;
}
.chat-header-timer {
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  color: rgba(232,248,247,0.5);
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  animation: fadeIn 0.2s ease;
}
.chat-bubble.user {
  background: linear-gradient(135deg, #00BFB3, #0097A7);
  color: #0A1628;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.chat-bubble.assistant {
  background: #0D2035;
  color: #E8F8F7;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(0,191,179,0.1);
}
.chat-bubble.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.85rem 1.1rem;
}
.chat-bubble.typing span {
  width: 7px;
  height: 7px;
  background: #00BFB3;
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #0D2035;
  border-top: 1px solid rgba(0,191,179,0.1);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 0.7rem 1.1rem;
  color: #E8F8F7;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  resize: none;
  outline: none;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: #00BFB3; }
.chat-input::placeholder { color: rgba(232,248,247,0.3); }

.chat-send-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: linear-gradient(135deg, #00BFB3, #0097A7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A1628;
  font-size: 1rem;
  transition: transform 0.15s;
}
.chat-send-btn:active { transform: scale(0.92); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-mute-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.chat-mute-btn:hover { opacity: 1; }

.chat-mic-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.chat-mic-btn:hover { border-color: rgba(0,191,179,0.4); }
.chat-mic-btn:active { transform: scale(0.92); }
.chat-mic-btn.mic-listening {
  border-color: #ff5050;
  background: rgba(255,80,80,0.1);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,80,80,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(255,80,80,0); }
}

.chat-photo-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.chat-photo-btn:hover  { border-color: rgba(0,191,179,0.4); }
.chat-photo-btn:active { transform: scale(0.92); }
.chat-photo-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-image-bubble { padding: 0.25rem !important; overflow: hidden; }
.chat-photo-img {
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  display: block;
}

.chat-limit-bar {
  background: rgba(0,191,179,0.06);
  border-top: 1px solid rgba(0,191,179,0.1);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: rgba(232,248,247,0.45);
  text-align: center;
  flex-shrink: 0;
}
.chat-limit-bar a { color: #00BFB3; }

.chat-session-end {
  background: rgba(0,191,179,0.06);
  border: 1px solid rgba(0,191,179,0.2);
  border-radius: 12px;
  margin: 0 1rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(232,248,247,0.6);
}
.chat-session-end strong { display: block; color: #00BFB3; margin-bottom: 0.5rem; }
.chat-session-end .btn { margin-top: 0.75rem; }

/* ── Upgrade Screen ──────────────────────────────────────── */
.upgrade-screen {
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, #0A1628, #0D2035);
}
.upgrade-header {
  text-align: center;
  margin-bottom: 2rem;
}
.upgrade-header h1 { margin-bottom: 0.5rem; }
.upgrade-header p  { color: rgba(232,248,247,0.55); font-size: 0.9rem; }

.tier-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.tier-card {
  background: #0D2035;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.tier-card:hover    { border-color: rgba(0,191,179,0.4); }
.tier-card.popular  { border-color: #00BFB3; }
.tier-card.selected { border-color: #00BFB3; background: rgba(0,191,179,0.06); }

.tier-badge {
  position: absolute;
  top: -1px;
  right: 1rem;
  background: #00BFB3;
  color: #0A1628;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 0 0 8px 8px;
}
.tier-name  { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.tier-price { font-size: 1.4rem; font-weight: 700; color: #00BFB3; margin-bottom: 0.5rem; }
.tier-price span { font-size: 0.8rem; color: rgba(232,248,247,0.45); font-weight: 400; }
.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.tier-features li {
  font-size: 0.82rem;
  color: rgba(232,248,247,0.65);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tier-features li::before { content: '✓'; color: #00BFB3; font-weight: 700; }

.upgrade-footer {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(232,248,247,0.35);
  margin-top: 1rem;
}

/* ── Toast notifications ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0D2035;
  border: 1px solid rgba(0,191,179,0.3);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: #E8F8F7;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
  white-space: nowrap;
}
.toast.error { border-color: rgba(255,80,80,0.4); }

/* ── Utility ─────────────────────────────────────────────── */
.mt-auto  { margin-top: auto; }
.text-dim { color: rgba(232,248,247,0.5); }
.text-teal { color: #00BFB3; }
.spacer   { flex: 1; }
.divider  { height: 1px; background: rgba(255,255,255,0.07); margin: 0.5rem 0; }

/* ── Swipe / Browse Screen ───────────────────────────────── */
.swipe-screen {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #0A1628;
  overflow: hidden;
}
.swipe-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  flex-shrink: 0;
}
.swipe-logo { height: 28px; }

.swipe-stack-wrap {
  flex: 1;
  position: relative;
  padding: 0 1rem;
  overflow: hidden;
}
.swipe-loading {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}

/* ── Swipe card ───────────────────────────────── */
.swipe-card {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
  background: #0D2035;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,191,179,0.12);
  cursor: grab;
  user-select: none;
  will-change: transform;
  transition: transform 0.15s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.swipe-card:active { cursor: grabbing; }

.card-photo-wrap {
  position: relative;
  width: 100%;
  height: 72%;
}
.card-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  pointer-events: none;
}
.card-photo-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, #0D2035 0%, transparent 100%);
}
.identity-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: rgba(0,191,179,0.85);
  color: #0A1628;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

.card-info {
  padding: 0.75rem 1.25rem 1rem;
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.card-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}
.card-name {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem; font-weight: 700;
  color: #E8F8F7;
}
.card-age {
  font-size: 1.25rem;
  color: rgba(232,248,247,0.7);
  font-weight: 400;
}
.card-occupation {
  font-size: 0.82rem;
  color: #7DDBD6;
  margin-bottom: 0.3rem;
}
.card-blurb {
  font-size: 0.82rem;
  color: rgba(232,248,247,0.6);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.card-tap-hint {
  font-size: 0.7rem;
  color: rgba(232,248,247,0.3);
  text-align: center;
}

/* Swipe hint overlay */
.card-swipe-hint {
  position: absolute;
  top: 1.5rem; left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  pointer-events: none;
}
.hint-date {
  background: rgba(0,191,179,0.85);
  color: #0A1628;
  border: 2px solid #00BFB3;
}
.hint-skip {
  background: rgba(255,80,80,0.8);
  color: white;
  border: 2px solid #ff5050;
}

/* ── Bottom action buttons ────────────────────── */
.swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem 1rem;
  flex-shrink: 0;
}
.swipe-btn {
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.swipe-btn:active { transform: scale(0.9); }
.swipe-btn svg { pointer-events: none; }

.swipe-btn-skip {
  width: 52px; height: 52px;
  background: #0D2035;
  border: 2px solid rgba(255,80,80,0.4);
  color: #ff7070;
}
.swipe-btn-skip svg { width: 20px; height: 20px; }
.swipe-btn-skip:hover { border-color: #ff5050; box-shadow: 0 0 16px rgba(255,80,80,0.2); }

.swipe-btn-info {
  width: 44px; height: 44px;
  background: #0D2035;
  border: 2px solid rgba(255,255,255,0.1);
  color: rgba(232,248,247,0.5);
}
.swipe-btn-info svg { width: 18px; height: 18px; }

.swipe-btn-date {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #00BFB3, #0097A7);
  color: white;
  box-shadow: 0 4px 20px rgba(0,191,179,0.4);
}
.swipe-btn-date svg { width: 26px; height: 26px; }
.swipe-btn-date:hover { box-shadow: 0 6px 28px rgba(0,191,179,0.55); }

.swipe-end-card {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

/* ── Full profile screen ──────────────────────── */
.profile-screen-full {
  min-height: 100dvh;
  background: #0A1628;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}
.profile-full-photo {
  position: relative;
  width: 100%;
  height: 65dvh;
}
.profile-full-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.profile-full-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, #0A1628, transparent);
}
.profile-full-back {
  position: absolute;
  top: 1rem; left: 1rem;
  width: 40px; height: 40px;
  background: rgba(10,22,40,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #E8F8F7;
}
.profile-full-name-block {
  position: absolute;
  bottom: 1.25rem; left: 1.5rem; right: 1.5rem;
}
.profile-full-name-block h1 {
  font-family: 'Cinzel', serif;
  font-size: 2rem; font-weight: 700;
  display: flex; align-items: baseline; gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.profile-full-name-block h1 span {
  font-size: 1.4rem;
  color: rgba(232,248,247,0.65);
  font-weight: 400;
}
.profile-full-name-block p {
  color: #7DDBD6;
  font-size: 0.9rem;
}

.profile-full-body {
  padding: 1.25rem 1.5rem 3rem;
}
.profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.profile-pill {
  background: rgba(0,191,179,0.08);
  border: 1px solid rgba(0,191,179,0.2);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  color: #7DDBD6;
}

.profile-section {
  margin-bottom: 1.5rem;
}
.profile-section-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.9rem;
  color: #E8F8F7; margin-bottom: 0.6rem;
}
.profile-section p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(232,248,247,0.7);
}
.profile-interests {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.interest-tag {
  background: #0D2035;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: rgba(232,248,247,0.65);
}

.profile-full-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ── Bottom tab bar ──────────────────────────────────────── */
.tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #0D2035;
  border-top: 1px solid rgba(0,191,179,0.12);
  padding: 0.5rem 0 0.6rem;
  flex-shrink: 0;
}
.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(232,248,247,0.35);
  padding: 0.3rem 2rem;
  transition: color 0.15s;
}
.tab-btn svg {
  width: 22px; height: 22px;
}
.tab-btn span {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.tab-btn-active {
  color: #00BFB3;
}
.tab-btn:hover { color: #7DDBD6; }

/* ── Conversations screen ────────────────────────────────── */
.conv-screen {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #0A1628;
  overflow: hidden;
}
.conv-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.conv-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}
.conv-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.conv-item:hover, .conv-item:active {
  background: rgba(0,191,179,0.05);
}
.conv-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.conv-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(0,191,179,0.2);
}
.conv-online-dot {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 10px; height: 10px;
  background: #00BFB3;
  border-radius: 50%;
  border: 2px solid #0A1628;
}
.conv-info {
  flex: 1;
  min-width: 0;
}
.conv-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
}
.conv-name {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #E8F8F7;
}
.conv-time {
  font-size: 0.7rem;
  color: rgba(232,248,247,0.35);
  flex-shrink: 0;
}
.conv-preview {
  font-size: 0.82rem;
  color: rgba(232,248,247,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-preview-char {
  color: rgba(0,191,179,0.7);
}
.conv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 3rem 2rem;
  text-align: center;
  gap: 0.75rem;
}
.conv-empty-icon { font-size: 3rem; }
.conv-empty h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #E8F8F7;
}
.conv-empty p {
  color: rgba(232,248,247,0.45);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ── Safe area (iPhone notch/home bar) ───────────────────── */
@supports (padding: env(safe-area-inset-bottom)) {
  .chat-input-area { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
  .tab-bar         { padding-bottom: calc(0.6rem + env(safe-area-inset-bottom)); }
}
