

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --pink: hsl(340, 85%, 60%);
  --orange: hsl(20, 90%, 65%);
  --gradient: linear-gradient(135deg, hsl(340, 85%, 60%) 0%, hsl(20, 90%, 65%) 100%);

  --bg: hsl(330, 20%, 98%);
  --card-bg: #ffffff;
  --border: hsl(330, 15%, 90%);
  --ink: hsl(330, 10%, 10%);
  --muted: hsl(330, 5%, 45%);
  --muted-light: hsl(330, 10%, 60%);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --radius: 1.25rem;
  --radius-sm: 0.9rem;
  --shadow: 0 12px 32px hsla(330, 15%, 70%, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.15;
}

p { color: var(--muted); line-height: 1.65; margin: 0; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 88px 20px 100px;
  min-height: 100vh;
}
.container.wide { max-width: 920px; }

/* --- Navbar (fixed, blurred) --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.navbar-logo .gem {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn:active { transform: scale(0.97); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px hsla(340, 85%, 60%, 0.3); }
.btn-primary:hover { box-shadow: 0 10px 28px hsla(340, 85%, 60%, 0.45); }
.btn-outline { background: rgba(255,255,255,0.6); color: var(--ink); border: 2px solid var(--border); }
.btn-secondary { background: hsl(330, 15%, 95%); color: var(--ink); }
.btn-danger { background: transparent; color: var(--pink); border: 2px solid hsla(340, 85%, 60%, 0.4); }
.btn-white { background: #fff; color: var(--pink); font-weight: 800; }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.05rem; padding: 0.95rem 1.8rem; }
.btn-sm { font-size: 0.82rem; padding: 0.45rem 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-round { width: 64px; height: 64px; border-radius: 50%; font-size: 26px; padding: 0; border: none; }
.btn-like { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px hsla(340, 85%, 60%, 0.35); }
.btn-pass { background: #fff; color: var(--muted); border: 2px solid var(--border); }

/* --- Cards & surfaces --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  background: hsla(340, 85%, 60%, 0.12);
}

/* --- Forms --- */
label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pink);
  margin: 18px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
label:first-of-type { margin-top: 0; }

input, select, textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink); }
input::placeholder, textarea::placeholder { color: var(--muted-light); }
textarea { resize: vertical; min-height: 80px; }

.field-error { color: var(--pink); font-size: 0.8rem; margin-top: 6px; display: none; }
.field-error.show { display: block; }

.password-wrap { position: relative; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 0.75rem; font-weight: 700; font-family: var(--font-body);
}

.banner {
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: block;
  font-weight: 600;
}
.banner.error { background: hsla(340, 85%, 60%, 0.1); color: hsl(340, 70%, 42%); border: 1px solid hsla(340, 85%, 60%, 0.3); }
.banner.success { background: hsla(150, 55%, 45%, 0.1); color: hsl(150, 55%, 30%); border: 1px solid hsla(150, 55%, 45%, 0.3); }
.banner.warning { background: hsla(40, 90%, 60%, 0.1); color: hsl(40, 70%, 35%); border: 1px solid hsla(40, 90%, 60%, 0.3); }

/* --- Bottom tab bar --- */
.tabbar {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 448px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 100;
}
.tabbar a {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  border-radius: 999px;
}
.tabbar a.active { color: #fff; background: var(--gradient); }
.tabbar .icon { font-size: 18px; }

/* --- Profile card (swipe) --- */
.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { padding: 1.4rem; }
.profile-name { font-size: 1.35rem; font-family: var(--font-display); }
.profile-meta { color: var(--muted); font-size: 0.88rem; margin: 4px 0 10px; font-weight: 700; }

.swipe-actions { display: flex; justify-content: center; gap: 1.75rem; margin-top: 1.5rem; }

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: hsl(330, 15%, 95%);
  color: var(--muted);
}
.badge.tier-Premium { background: hsla(20, 90%, 65%, 0.15); color: hsl(20, 70%, 45%); }
.badge.tier-VIP { background: hsla(340, 85%, 60%, 0.15); color: hsl(340, 70%, 45%); }

/* --- Matches list --- */
.match-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}
.match-row:hover { background: hsl(330, 20%, 96%); }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- Chat --- */
.chat-shell { display: flex; flex-direction: column; height: calc(100vh - 200px); }
.chat-header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 18px; font-size: 0.9rem; line-height: 1.4; }
.bubble.sent { align-self: flex-end; background: var(--gradient); color: #fff; border-bottom-right-radius: 4px; }
.bubble.received { align-self: flex-start; background: hsl(330, 15%, 95%); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble-time { font-size: 0.65rem; opacity: 0.7; margin-top: 4px; }
.chat-input-row { display: flex; gap: 10px; padding-top: 12px; }
.chat-input-row input { flex: 1; border-radius: 999px; }

/* --- Landing / hero --- */
.hero { text-align: center; padding: 40px 0 24px; }
.badge-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: hsla(340, 85%, 60%, 0.1);
  color: hsl(340, 85%, 50%);
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid hsla(340, 85%, 60%, 0.25);
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: 2.6rem; }
.hero p { max-width: 360px; margin: 14px auto 28px; }
.landing-actions { display: flex; flex-direction: column; gap: 12px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.stat-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stat-box .num { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--pink); display: block; }
.stat-box .label { font-size: 0.75rem; color: var(--muted); font-weight: 700; }

.plan-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1rem; background: var(--card-bg); }
.plan-card.recommended { border-color: var(--pink); box-shadow: var(--shadow); }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; margin: 6px 0; }
.plan-features { color: var(--muted); font-size: 0.85rem; margin: 10px 0 16px; padding-left: 18px; }
.plan-features li { margin-bottom: 4px; }

.link { color: var(--pink); text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 0.85rem; }
.mt-24 { margin-top: 24px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }

@media (max-width: 420px) {
  .hero h1 { font-size: 2.1rem; }
}

/* ============================================================
   WELCOME PAGE SECTIONS — hero, trust rows, features, CTA
   ============================================================ */

.hero-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(253,245,249,0.95) 0%, rgba(253,245,249,0.75) 55%, rgba(253,245,249,0.95) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; text-align: center; max-width: 560px; margin: 0 auto; }

.trust-row { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 2rem; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.trust-icon { width: 18px; height: 18px; color: var(--pink); flex-shrink: 0; }

.features-section { padding: 3.5rem 20px; text-align: center; }
.section-label {
  display: inline-block; font-weight: 700; font-size: 0.8rem; color: var(--pink);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem;
}
.features-section > p.lead { max-width: 380px; margin: 0.75rem auto 2.5rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}

.cta-section {
  margin: 0 20px 3rem;
  border-radius: 1.5rem;
  background: var(--gradient);
  padding: 3rem 1.5rem;
  text-align: center;
  color: #fff;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }

footer.site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.script-accent {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin: 20px auto 35px;
  max-width: 480px;
  line-height: 1.3;
}

.badge-pill-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-stack {
    position: fixed;
    top: 78px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    width: 100%;
    max-width: 440px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-body);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
    animation: toast-slide-in 0.3s ease;
}

.toast-success {
    background: hsl(150, 70%, 95%);
    color: hsl(150, 60%, 28%);
    border: 1px solid hsl(150, 50%, 75%);
}

.toast-error {
    background: hsl(340, 90%, 96%);
    color: hsl(340, 70%, 38%);
    border: 1px solid hsl(340, 70%, 80%);
}

.toast-warning {
    background: hsl(40, 100%, 95%);
    color: hsl(40, 70%, 35%);
    border: 1px solid hsl(40, 80%, 75%);
}

@keyframes toast-slide-in {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* --- Progress bar for long-duration toasts --- */
.toast {
    position: relative;
    overflow: hidden;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--gradient);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    animation: toast-progress linear forwards;
}

@keyframes toast-progress {
    from { width: 100%; }
    to   { width: 0%; }
}