/* ═══════════════════════════════════════════════════════════════
   Lanka.chat — Romantic Premium Design
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --primary:       #c2185b;
  --primary-dark:  #880e4f;
  --primary-light: #f48fb1;
  --gold:          #f4c430;
  --bg:            #ffffff;
  --bg-card:       #ffffff;
  --bg-input:      #fce4ec;
  --text:          #2d1b2e;
  --text-muted:    #9e6b7a;
  --border:        #f8bbd0;
  --success:       #2e7d32;
  --error:         #c62828;
  --info:          #1565c0;
  --radius:        14px;
  --radius-lg:     20px;
  --shadow:        0 2px 16px rgba(194,24,91,.08);
  --shadow-md:     0 4px 24px rgba(194,24,91,.12);
  --shadow-lg:     0 8px 40px rgba(194,24,91,.18);
  --pride:         linear-gradient(90deg,#e40303,#ff8c00,#ffed00,#008026,#004dff,#750787);
  --gradient-love: linear-gradient(160deg, #880e4f 0%, #c2185b 100%);
  --gradient-soft: linear-gradient(135deg, #fce4ec 0%, #ffffff 100%);
  --gradient-card: linear-gradient(to top, rgba(45,27,46,.82) 0%, rgba(45,27,46,.1) 55%, transparent 100%);
  --nav-h:         64px;
  --font-body:     'Inter', 'Noto Sans Sinhala', 'Noto Sans Tamil', sans-serif;
  --font-heading:  'Playfair Display', 'Noto Sans Sinhala', 'Noto Sans Tamil', serif;
  --spring:        cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset / Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
textarea, input, select, button { font-family: inherit; }

/* ── Keyframes ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes matchPulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(194,24,91,.45); }
  60%       { box-shadow: 0 0 0 10px rgba(194,24,91,0); }
}
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-6px); }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateX(-10px) scale(.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes msgOut {
  from { opacity: 0; transform: translateX(10px) scale(.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.15); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.1); }
  56%       { transform: scale(1); }
}

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.navbar::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-love);
  opacity: .5;
}
.nav-container {
  max-width: 1140px; margin: auto; padding: 0 1.25rem;
  display: flex; align-items: center; height: 100%; gap: .75rem;
}
.nav-brand {
  display: flex; align-items: center; gap: .45rem;
  font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700;
  color: var(--primary); text-decoration: none; flex-shrink: 0;
  letter-spacing: -.01em;
}
.brand-icon {
  animation: heartbeat 3s ease-in-out infinite;
  display: inline-block;
}
.nav-links {
  display: flex; align-items: center; gap: .15rem;
  margin-left: auto; flex-wrap: wrap;
}
.nav-link {
  padding: .42rem .8rem; border-radius: 10px;
  color: var(--text); font-size: .88rem; font-weight: 500;
  transition: all .18s var(--ease);
  white-space: nowrap; text-decoration: none;
}
.nav-link:hover { background: var(--bg-input); color: var(--primary); text-decoration: none; }
.nav-link.active {
  background: var(--bg-input); color: var(--primary); font-weight: 600;
}
.nav-link.btn-primary-sm {
  background: var(--gradient-love); color: #fff; margin-left: .25rem;
}
.nav-link.btn-primary-sm:hover { opacity: .9; }
.nav-logout { color: var(--text-muted); }

/* Language switcher */
.lang-switcher {
  display: flex; gap: .2rem; margin-left: .5rem;
  border-left: 1px solid var(--border); padding-left: .65rem;
}
.lang-btn {
  padding: .22rem .55rem; border-radius: 7px;
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  text-decoration: none; transition: all .15s var(--ease);
}
.lang-btn:hover { background: var(--bg-input); color: var(--primary); text-decoration: none; }
.lang-btn.active {
  background: var(--gradient-love); color: #fff;
}

/* Mobile toggle */
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--text);
}

/* Badge */
.badge {
  background: var(--gradient-love); color: #fff;
  border-radius: 99px; font-size: .68rem; font-weight: 700;
  padding: 1px 6px; margin-left: 4px; vertical-align: middle;
  box-shadow: 0 1px 6px rgba(194,24,91,.35);
}

/* ── Flash messages ────────────────────────────────────────────── */
.flash-container {
  position: fixed; top: calc(var(--nav-h) + 10px);
  right: 1.25rem; z-index: 200;
  display: flex; flex-direction: column; gap: .5rem; max-width: 360px;
}
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .8rem 1.1rem; border-radius: var(--radius);
  font-size: .88rem; font-weight: 500; box-shadow: var(--shadow-md);
  animation: slideIn .25s var(--ease);
  border-left: 3px solid currentColor;
}
.flash-success { background: #e8f5e9; color: #2e7d32; }
.flash-error   { background: #ffebee; color: #c62828; }
.flash-info    { background: #e3f2fd; color: #1565c0; }
.flash-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: inherit; opacity: .5;
  transition: opacity .15s;
}
.flash-close:hover { opacity: 1; }

/* ── Main content ──────────────────────────────────────────────── */
.main-content { flex: 1; padding-bottom: 2rem; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.4rem; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent;
  transition: all .22s var(--spring);
  text-decoration: none; white-space: nowrap;
  letter-spacing: .01em;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }

.btn-primary {
  background: var(--gradient-love); color: #fff; border-color: transparent;
}
.btn-primary:hover { opacity: .9; }

.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--bg-input); }

.btn-liked {
  background: var(--primary); color: #fff;
  border-color: transparent;
}
.btn-sm { padding: .38rem .9rem; font-size: .84rem; border-radius: 9px; }
.btn-full { width: 100%; }

.btn-danger { background: #c62828; color: #fff; border-color: transparent; }
.btn-danger-sm {
  background: none; border: 1.5px solid #ef9a9a; color: #c62828;
  padding: .3rem .75rem; border-radius: 8px; font-size: .8rem;
  cursor: pointer; font-weight: 500; transition: all .15s;
}
.btn-danger-sm:hover { background: #ffebee; }

/* Icon send button */
.btn-send {
  width: 42px; height: 42px; border-radius: 50%; padding: 0;
  background: var(--gradient-love); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: all .2s var(--spring);
}
.btn-send:hover { transform: scale(1.08); opacity: .9; }
.btn-send:active { transform: scale(.94); }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group {
  display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem;
}
.form-group label { font-size: .88rem; font-weight: 600; color: var(--text); }

input[type=text], input[type=email], input[type=password],
input[type=number], select, textarea {
  padding: .65rem .95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  font-size: .93rem; color: var(--text);
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194,24,91,.14);
  background: #fff;
}
textarea { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.input-pw { position: relative; }
.input-pw input { padding-right: 2.75rem; }
.pw-toggle {
  position: absolute; right: .65rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; opacity: .55;
  transition: opacity .15s;
}
.pw-toggle:hover { opacity: 1; }

.checkbox-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .4rem; padding: .6rem .75rem;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
}
.checkbox-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .85rem; cursor: pointer; padding: .25rem .3rem;
  border-radius: 7px; transition: background .15s;
}
.checkbox-label:hover { background: var(--bg-input); }
.checkbox-label input { width: auto; cursor: pointer; accent-color: var(--primary); }

.form-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-md);
  border: 1px solid rgba(248,187,208,.6);
}

/* ── Page container ─────────────────────────────────────────────── */
.page-container { max-width: 920px; margin: 2rem auto; padding: 0 1.25rem; }
.page-title {
  font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700;
  color: var(--primary); margin-bottom: 1.5rem; letter-spacing: -.02em;
}

/* ── Auth pages ─────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--nav-h) - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse at 50% -10%, rgba(252,228,236,.8) 0%, transparent 60%);
}
.auth-card {
  background: var(--bg-card); border-radius: 24px;
  padding: 2.75rem; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 430px;
  border: 1px solid rgba(248,187,208,.5);
  animation: fadeUp .35s var(--ease);
}
.auth-card-wide { max-width: 680px; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-icon { font-size: 2.8rem; display: block; margin-bottom: .4rem; }
.auth-header h1 {
  font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700;
  color: var(--text); letter-spacing: -.02em;
}
.auth-note { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.auth-switch { text-align: center; margin-top: 1.4rem; font-size: .88rem; color: var(--text-muted); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  max-width: 1140px; margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.hero-left { text-align: left; }
.pride-ribbon {
  height: 5px; border-radius: 99px;
  background: var(--pride); background-size: 200%;
  width: 72px; margin: 0 0 1.4rem;
  animation: shimmer 4s linear infinite;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem; font-weight: 700; line-height: 1.1;
  color: var(--text); letter-spacing: -.03em;
  animation: fadeUp .4s .05s both var(--ease);
}
.hero-title span { color: var(--primary); }
.hero-tagline {
  font-size: 1.15rem; color: var(--text-muted); margin: 1rem 0 2rem;
  line-height: 1.6; max-width: 380px;
  animation: fadeUp .4s .18s both var(--ease);
}
.hero-actions {
  display: flex; gap: .85rem; flex-wrap: wrap;
  animation: fadeUp .4s .32s both var(--ease);
}

/* Hero image */
.hero-right { display: flex; justify-content: center; align-items: center; }
.hero-img {
  width: 100%; max-width: 480px; height: auto;
  border-radius: 24px;
  object-fit: cover;
}

/* Feature cards */
.hero-features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem; margin-top: 4.5rem;
}
.feature-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow);
  border: 1px solid rgba(248,187,208,.4);
  transition: transform .22s var(--spring), box-shadow .22s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-love); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.feature-card h3 {
  font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700;
  margin-bottom: .4rem; color: var(--primary);
}
.feature-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Profile view ────────────────────────────────────────────────── */
.profile-page { max-width: 700px; margin: 2rem auto; padding: 0 1.25rem; }
.profile-card {
  background: var(--bg-card); border-radius: 24px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(248,187,208,.5);
  animation: fadeUp .35s var(--ease);
}
.profile-photo-wrap {
  background: var(--gradient-love);
  height: 320px; position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 0;
}
.profile-photo-lg {
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 8px 32px rgba(194,24,91,.3);
  margin-bottom: -48px; position: relative; z-index: 2;
}
.profile-info { padding: 3.5rem 1.75rem 1.75rem; }
.profile-header-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem;
}
.profile-username {
  font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700;
  letter-spacing: -.02em;
}
.profile-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.profile-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.meta-badge {
  background: var(--bg-input); color: var(--text);
  padding: .28rem .7rem; border-radius: 99px;
  font-size: .78rem; font-weight: 500; border: 1px solid var(--border);
}
.meta-badge.seeking {
  background: #fce4ec; color: var(--primary);
  border-color: var(--primary-light); font-weight: 600;
}
.mutual-like-badge {
  background: var(--gradient-love); color: #fff;
  padding: .45rem 1.1rem; border-radius: 99px;
  font-size: .88rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .4rem;
  margin-bottom: 1rem;
  animation: matchPulse 2s ease-in-out infinite;
  box-shadow: 0 3px 14px rgba(194,24,91,.4);
}
.profile-bio {
  background: var(--bg); border-radius: var(--radius);
  padding: 1.1rem; font-size: .9rem; line-height: 1.7;
  margin-bottom: 1rem; white-space: pre-wrap;
  border-left: 3px solid var(--primary-light);
  color: var(--text);
}
.profile-footer {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--text-muted); margin-top: .75rem;
}
.profile-moderation {
  display: flex; gap: .5rem; margin-top: 1rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
}

/* ── Blocked users list ──────────────────────────────────────────── */
.blocked-list-card { max-width: 680px; margin-top: 1.5rem; padding: 1.5rem; }
.blocked-list-title { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: .25rem; }
.blocked-list-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.blocked-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.blocked-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .75rem; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
}
.blocked-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.blocked-name { font-weight: 600; font-size: .9rem; }

/* ── Edit profile ────────────────────────────────────────────────── */
.edit-form { max-width: 680px; }
.photo-upload-group { align-items: flex-start; }
.photo-preview-wrap { margin: .5rem 0; }
.photo-preview {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── Browse ──────────────────────────────────────────────────────── */
.browse-header { margin-bottom: 1rem; }
.filter-toggle {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: .55rem 1rem;
  font-size: .88rem; font-weight: 600; color: var(--primary);
  cursor: pointer; margin-bottom: .75rem;
  box-shadow: var(--shadow); transition: all .18s;
}
.filter-toggle:hover { background: var(--bg-input); }
.filter-panel {
  max-height: 0; overflow: hidden;
  transition: max-height .3s var(--ease);
}
.filter-panel.open { max-height: 200px; }
.filter-bar {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: .75rem;
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 1.1rem; box-shadow: var(--shadow);
  margin-bottom: 1.5rem; border: 1px solid rgba(248,187,208,.4);
}
.filter-group { display: flex; flex-direction: column; gap: .3rem; }
.filter-group label { font-size: .78rem; font-weight: 600; color: var(--text-muted); }

/* Profile grid — Hinge-style overlay cards */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
}
.profile-card-link { text-decoration: none; color: inherit; }
.profile-card-mini {
  background: var(--bg-card); border-radius: 18px;
  overflow: hidden; position: relative; cursor: pointer;
  transition: transform .22s var(--spring);
  border: 1px solid var(--border);
}
.profile-card-mini:nth-child(1)  { animation: cardEntrance .3s .02s both; }
.profile-card-mini:nth-child(2)  { animation: cardEntrance .3s .05s both; }
.profile-card-mini:nth-child(3)  { animation: cardEntrance .3s .08s both; }
.profile-card-mini:nth-child(4)  { animation: cardEntrance .3s .11s both; }
.profile-card-mini:nth-child(5)  { animation: cardEntrance .3s .14s both; }
.profile-card-mini:nth-child(6)  { animation: cardEntrance .3s .17s both; }
.profile-card-mini:nth-child(7)  { animation: cardEntrance .3s .20s both; }
.profile-card-mini:nth-child(8)  { animation: cardEntrance .3s .23s both; }
.profile-card-mini:nth-child(9)  { animation: cardEntrance .3s .26s both; }
.profile-card-mini:nth-child(10) { animation: cardEntrance .3s .29s both; }
.profile-card-mini:nth-child(11) { animation: cardEntrance .3s .32s both; }
.profile-card-mini:nth-child(12) { animation: cardEntrance .3s .35s both; }
.profile-card-mini:hover {
  transform: translateY(-4px) scale(1.01);
}

/* Photo with gradient overlay */
.card-photo-wrap { position: relative; width: 100%; height: 240px; overflow: hidden; }
.card-photo-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-card);
  pointer-events: none;
}
.card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .85rem .9rem .75rem; color: #fff; z-index: 1;
}
.card-username { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; display: block; }
.card-age { font-size: .8rem; opacity: .85; display: block; margin-top: .1rem; }
.card-location { font-size: .75rem; opacity: .7; display: block; }
.card-seeking {
  display: inline-block; margin-top: .4rem;
  font-size: .72rem; font-weight: 600;
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
  padding: .15rem .5rem; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.3);
}

/* ── Messaging Hub — two-panel layout ─────────────────────────────── */
.hub-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Sidebar */
.hub-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.hub-tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
}
.hub-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: .9rem .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
}
.hub-tab:hover { color: var(--primary); }
.hub-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.hub-badge {
  background: var(--gradient-love);
  color: #fff;
  border-radius: 99px;
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 6px;
  flex-shrink: 0;
}

.hub-list {
  flex: 1;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  padding: .5rem;
  gap: .2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.hub-list.active { display: flex; }

/* Conversation list item */
.hub-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  position: relative;
  transition: background .13s;
  min-width: 0;
}
.hub-item:hover { background: var(--bg-input); text-decoration: none; }
.hub-item-sel { background: #fce4ec; border-color: rgba(194,24,91,.18); }
.hub-item-unread::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 55%;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.hub-item-photo {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.hub-item-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.hub-item-body { flex: 1; min-width: 0; }
.hub-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .25rem;
}
.hub-item-name {
  font-weight: 700; font-size: .85rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hub-item-time { font-size: .68rem; color: var(--text-muted); flex-shrink: 0; }
.hub-online-dot { color: #2e7d32; }
.hub-item-preview {
  font-size: .76rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block; margin-top: .1rem;
}
.hub-you { color: var(--primary); font-weight: 600; font-style: normal; }

.hub-list-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
}
.hub-list-empty-icon { font-size: 2rem; display: block; margin-bottom: .75rem; }
.hub-list-empty p { margin-bottom: 1rem; font-size: .88rem; }

/* Right chat panel */
.hub-chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
.hub-chat-header {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(194,24,91,.06);
}
.hub-back-btn {
  display: none;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--primary);
  font-size: 1.1rem; font-weight: 700;
  flex-shrink: 0;
  text-decoration: none;
  transition: background .15s;
}
.hub-back-btn:hover { background: var(--border); text-decoration: none; }

.hub-chat .messages-window { flex: 1; padding: 1rem 1.25rem; }
.hub-chat .chat-input-area { padding: .6rem 1.25rem .8rem; }

.hub-empty-state {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .6rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}
.hub-empty-icon { font-size: 3.5rem; animation: heartbeat 2.4s ease-in-out infinite; }
.hub-empty-state h3 {
  font-family: var(--font-heading); font-size: 1.25rem; color: var(--text);
}
.hub-empty-state p { font-size: .88rem; max-width: 260px; }

/* ── Chat header user strip ───────────────────────────────────────── */
.hub-user-strip {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}
.hub-user-strip:hover { text-decoration: none; }
.hub-strip-photo {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(194,24,91,.15);
  transition: transform .18s var(--spring);
}
.hub-user-strip:hover .hub-strip-photo { transform: scale(1.06); }
.hub-strip-room-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.hub-strip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .05rem;
}
.hub-strip-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-strip-sub {
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile: single-column, toggle panels */
@media (max-width: 767px) {
  .hub-layout { grid-template-columns: 1fr; height: calc(100vh - var(--nav-h)); }
  .hub-sidebar { border-right: none; }
  .hub-chat { display: none; }
  .hub-layout.hub-has-sel .hub-sidebar { display: none; }
  .hub-layout.hub-has-sel .hub-chat { display: flex; }
  .hub-back-btn { display: flex !important; }
}

/* ── Inbox ────────────────────────────────────────────────────────── */
.inbox-list { display: flex; flex-direction: column; gap: .6rem; }
.inbox-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: .9rem 1.1rem; text-decoration: none; color: inherit;
  border: 1px solid rgba(248,187,208,.3); box-shadow: var(--shadow);
  transition: background .15s, transform .18s var(--spring);
}
.inbox-item:hover { background: var(--bg-input); transform: translateX(3px); text-decoration: none; }
.inbox-unread { border-left: 3px solid var(--primary); }
.inbox-photo {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(194,24,91,.12);
}
.inbox-info { flex: 1; min-width: 0; }
.inbox-name-row { display: flex; justify-content: space-between; align-items: baseline; }
.inbox-name { font-weight: 700; font-size: .95rem; }
.inbox-time { font-size: .73rem; color: var(--text-muted); }
.inbox-preview {
  font-size: .83rem; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .1rem;
}
.inbox-badge {
  background: var(--gradient-love); color: #fff;
  border-radius: 99px; font-size: .72rem; font-weight: 700;
  padding: 3px 9px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(194,24,91,.3);
}

/* ── Chat pages ──────────────────────────────────────────────────── */
.chat-page {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--nav-h));
  max-width: 880px; margin: 0 auto; padding: 0 1.1rem;
}
.chat-header {
  display: flex; align-items: center; gap: .9rem;
  padding: .8rem 0; flex-shrink: 0;
  background: var(--bg-card);
  box-shadow: 0 2px 12px rgba(194,24,91,.06);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: .8rem 1rem; margin-bottom: .25rem;
  border: 1px solid rgba(248,187,208,.3);
}
.chat-user-link {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; color: var(--text);
}
.chat-user-link:hover { text-decoration: underline; color: var(--primary); }
.chat-header-photo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(194,24,91,.15);
}
.chat-room-title h2 {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
}
.chat-room-title small { font-size: .78rem; color: var(--text-muted); }
.online-pill {
  margin-left: auto; background: #e8f5e9; color: #2e7d32;
  padding: .22rem .7rem; border-radius: 99px;
  font-size: .76rem; font-weight: 700;
  border: 1px solid #a5d6a7;
}

/* Messages window */
.messages-window {
  flex: 1; overflow-y: auto; padding: 1rem .25rem;
  display: flex; flex-direction: column; gap: .6rem;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.messages-window::-webkit-scrollbar { width: 4px; }
.messages-window::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.msg-row { display: flex; align-items: flex-end; gap: .5rem; }
.msg-out { flex-direction: row-reverse; }
.msg-out .msg-bubble { animation: msgOut .22s var(--ease); }
.msg-in  .msg-bubble { animation: msgIn  .22s var(--ease); }

.msg-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.msg-bubble { max-width: 68%; display: flex; flex-direction: column; gap: .2rem; }
.msg-in .msg-bubble {
  background: #fff; border-radius: 4px 18px 18px 18px;
  padding: .65rem .95rem;
  border: 1px solid rgba(248,187,208,.5);
  box-shadow: 0 1px 6px rgba(194,24,91,.07);
}
.msg-out .msg-bubble {
  background: var(--gradient-love); color: #fff;
  border-radius: 18px 4px 18px 18px;
  padding: .65rem .95rem;
  box-shadow: 0 2px 12px rgba(194,24,91,.28);
}
.msg-sender-name {
  font-size: .73rem; font-weight: 700; color: var(--primary);
  margin-bottom: .1rem; text-decoration: none;
}
.msg-sender-name:hover { text-decoration: underline; }
.msg-text { font-size: .9rem; line-height: 1.55; word-break: break-word; white-space: pre-wrap; }
.msg-out .msg-text { color: #fff; }
.msg-image {
  max-width: 240px; max-height: 240px; border-radius: 10px;
  cursor: zoom-in; transition: opacity .15s;
}
.msg-image:hover { opacity: .88; }
.img-expiry { font-size: .68rem; opacity: .55; }
.msg-time { font-size: .68rem; opacity: .5; align-self: flex-end; }

.system-msg {
  text-align: center; font-size: .76rem; color: var(--text-muted);
  padding: .2rem; opacity: .8;
}

/* Typing indicator */
.typing-indicator {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--text-muted);
  padding-left: .5rem;
}
.typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary-light);
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .18s; }
.typing-dots span:nth-child(3) { animation-delay: .36s; }

/* Chat input */
.chat-input-area {
  padding: .7rem 0 .85rem; border-top: 1px solid rgba(248,187,208,.3); flex-shrink: 0;
}
.chat-form {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border-radius: 99px;
  padding: .4rem .4rem .4rem .9rem;
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 14px rgba(194,24,91,.08);
  transition: border-color .18s, box-shadow .18s;
}
.chat-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 2px 18px rgba(194,24,91,.16);
}
.chat-form input[type=text] {
  flex: 1; border: none; background: transparent;
  padding: .3rem 0; font-size: .9rem;
}
.chat-form input[type=text]:focus { outline: none; box-shadow: none; background: transparent; }
.img-attach-btn {
  cursor: pointer; font-size: 1.25rem; opacity: .55; flex-shrink: 0;
  transition: opacity .15s, transform .15s;
}
.img-attach-btn:hover { opacity: 1; transform: scale(1.1); }

.attach-preview { display: flex; align-items: center; gap: .4rem; }
.attach-preview img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.attach-preview button {
  background: #ffebee; border: none; border-radius: 50%;
  width: 22px; height: 22px; cursor: pointer; font-size: .8rem;
  color: var(--error); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.attach-preview button:hover { background: #ffcdd2; }

/* Send icon SVG */
.send-arrow {
  width: 18px; height: 18px; fill: none;
  stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Chat rooms list ────────────────────────────────────────────── */
.rooms-grid { display: flex; flex-direction: column; gap: .75rem; }
.room-card {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem; text-decoration: none; color: inherit;
  border: 1px solid rgba(248,187,208,.35); box-shadow: var(--shadow);
  transition: all .2s var(--spring);
  animation: fadeUp .3s var(--ease) both;
}
.room-card:hover {
  transform: translateX(5px) scale(1.005);
  box-shadow: var(--shadow-md); background: #fff5f8;
  text-decoration: none; border-color: var(--primary-light);
}
.room-icon { font-size: 2.1rem; flex-shrink: 0; }
.room-info { flex: 1; }
.room-name {
  font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700;
  margin-bottom: .2rem; color: var(--text);
}
.room-desc { font-size: .83rem; color: var(--text-muted); line-height: 1.5; }
.room-meta { flex-shrink: 0; }
.online-count {
  background: #e8f5e9; color: #2e7d32;
  padding: .25rem .7rem; border-radius: 99px;
  font-size: .76rem; font-weight: 700;
  border: 1px solid #a5d6a7;
}

/* ── Lightbox ────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(20,10,25,.9);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out; backdrop-filter: blur(8px);
}
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; }

/* ── Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(45,27,46,.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal {
  background: var(--bg-card); border-radius: 20px;
  padding: 2rem; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(248,187,208,.4);
  animation: fadeUp .25s var(--ease);
}
.modal h3 {
  font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 1.1rem;
  color: var(--primary);
}
.modal-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.1rem; }

/* ── Utilities ───────────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.empty-state p { font-size: 1rem; margin-bottom: 1.75rem; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
}
.footer-inner {
  max-width: 1140px; margin: auto;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--text-muted);
  text-align: center;
}
.footer-tagline {
  font-family: var(--font-heading); font-style: italic;
  font-size: .88rem; color: var(--primary); opacity: .7;
}
.pride-bar {
  display: inline-block; width: 44px; height: 4px;
  border-radius: 99px; background: var(--pride); background-size: 200%;
  animation: shimmer 4s linear infinite;
}

/* ── Sinhala / Tamil font handling ──────────────────────────────── */
.lang-si { font-family: 'Noto Sans Sinhala', var(--font-body); }
.lang-ta { font-family: 'Noto Sans Tamil', var(--font-body); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-left { text-align: center; }
  .pride-ribbon { margin: 0 auto 1.4rem; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-right { display: none; }
  .hero-title { font-size: 2.8rem; }
  .hero-features { margin-top: 2rem; }
}
@media (max-width: 680px) {
  /* Toggle visible; reorder so bell sits between brand and toggle */
  .nav-toggle { display: block; order: 3; }
  .notif-wrap { order: 2; margin-left: auto; }
  /* Logged-out: no bell present, so push toggle to the right instead */
  .nav-container:not(:has(.notif-wrap)) .nav-toggle { margin-left: auto; }
  /* Nav-links: slide-down menu (source order puts it before bell,
     so it becomes an absolute overlay — bell stays in the bar) */
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start;
    padding: .75rem 1rem; gap: .2rem;
    box-shadow: 0 8px 24px rgba(194,24,91,.1);
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .lang-switcher { border-left: none; padding-left: 0; margin-top: .25rem; }
  /* Dropdown: anchored below bell, constrained to viewport width */
  .notif-dropdown {
    width: min(320px, calc(100vw - 1.5rem));
    right: 0;
    left: auto;
    max-height: 70vh;
  }
  .notif-dd-list { max-height: calc(70vh - 7rem); }
  .form-row { grid-template-columns: 1fr; }
  .chat-page { padding: 0 .5rem; }
  .msg-bubble { max-width: 83%; }
  .auth-card { padding: 1.75rem; }
  .profile-info { padding: 3rem 1.25rem 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Notification Bell + Dropdown
   ═══════════════════════════════════════════════════════════════ */

.notif-wrap { position: relative; }

.notif-bell-btn {
  position: relative; background: none; border: none;
  cursor: pointer; color: var(--text); padding: .42rem .55rem;
  border-radius: 10px; display: flex; align-items: center;
  transition: background .15s;
}
.notif-bell-btn:hover { background: var(--bg-input); }
.notif-bell-btn svg { display: block; }

.notif-bell-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; border-radius: 99px;
  background: var(--gradient-love); color: #fff;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  box-shadow: 0 1px 6px rgba(194,24,91,.5);
  border: 2px solid #fff;
  animation: heartbeat 2s ease-in-out infinite;
}

/* Dropdown */
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; background: var(--bg-card);
  border-radius: var(--radius-lg); border: 1px solid rgba(248,187,208,.5);
  box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
  overflow: hidden; z-index: 300;
  animation: fadeUp .18s var(--ease);
}
.notif-dropdown.open { display: flex; }

.notif-dd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem .7rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: .88rem;
}
.notif-mark-all {
  background: none; border: none; cursor: pointer;
  font-size: .78rem; color: var(--primary); font-weight: 600;
  transition: opacity .15s;
}
.notif-mark-all:hover { opacity: .7; }

.notif-dd-list { max-height: 320px; overflow-y: auto; }
.notif-dd-list::-webkit-scrollbar { width: 3px; }
.notif-dd-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.notif-dd-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .8rem 1rem; text-decoration: none; color: var(--text);
  border-bottom: 1px solid rgba(248,187,208,.2);
  transition: background .15s; position: relative;
}
.notif-dd-item:hover { background: var(--bg-input); text-decoration: none; }
.notif-dd-unread { background: #fff5f8; }
.notif-dd-unread:hover { background: #fce4ec; }

.notif-dd-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.notif-dd-body { flex: 1; min-width: 0; }
.notif-dd-msg { font-size: .84rem; line-height: 1.4; margin-bottom: .2rem; }
.notif-dd-time { font-size: .73rem; color: var(--text-muted); }
.notif-dd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: .4rem;
}

.notif-dd-empty {
  padding: 2rem 1rem; text-align: center;
  color: var(--text-muted); font-size: .88rem;
}

.notif-dd-footer {
  display: block; text-align: center; padding: .7rem;
  border-top: 1px solid var(--border);
  font-size: .82rem; font-weight: 600; color: var(--primary);
  text-decoration: none; transition: background .15s;
}
.notif-dd-footer:hover { background: var(--bg-input); text-decoration: none; }

/* ── Notifications full page ──────────────────────────────────────────────────── */
.notif-full-list { display: flex; flex-direction: column; gap: .5rem; }

.notif-full-item {
  display: flex; align-items: center; gap: .9rem;
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: .9rem 1.1rem; text-decoration: none; color: var(--text);
  border: 1px solid rgba(248,187,208,.3); box-shadow: var(--shadow);
  transition: all .18s var(--spring); position: relative;
}
.notif-full-item:hover { background: var(--bg-input); transform: translateX(3px); text-decoration: none; }
.notif-full-unread { border-left: 3px solid var(--primary); background: #fff5f8; }

.notif-full-icon { font-size: 1.6rem; flex-shrink: 0; }
.notif-full-photo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.notif-full-body { flex: 1; min-width: 0; }
.notif-full-msg { font-size: .9rem; line-height: 1.4; margin-bottom: .2rem; }
.notif-full-time { font-size: .75rem; color: var(--text-muted); }
.notif-unread-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gradient-love); flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(194,24,91,.4);
}

/* ── Toast notification ───────────────────────────────────────────────────────── */
.notif-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120px);
  z-index: 500; background: var(--bg-card);
  border-radius: var(--radius-lg); border: 1px solid rgba(248,187,208,.5);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.1rem; max-width: 360px; width: calc(100% - 2rem);
  transition: transform .35s var(--spring), opacity .35s;
  opacity: 0;
}
.notif-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.notif-toast-icon { font-size: 1.5rem; flex-shrink: 0; }
.notif-toast-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: .1rem;
}
.notif-toast-body strong { font-size: .88rem; }
.notif-toast-body span   { font-size: .82rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-toast-close {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 1.1rem; flex-shrink: 0; padding: 0 .2rem; transition: color .15s;
}
.notif-toast-close:hover { color: var(--text); }

/* ── PWA install banner ───────────────────────────────────────────────────────── */
.install-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  background: var(--bg-card); border-top: 2px solid var(--border);
  padding: .9rem 1.25rem;
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(194,24,91,.12);
  transform: translateY(100%); transition: transform .3s var(--spring);
}
.install-banner.show { transform: translateY(0); }
.install-banner span { flex: 1; font-size: .88rem; min-width: 200px; }
.install-btn {
  background: var(--gradient-love); color: #fff;
  border: none; border-radius: 99px; padding: .5rem 1.25rem;
  font-size: .88rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 10px rgba(194,24,91,.35);
  transition: all .2s var(--spring);
}
.install-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(194,24,91,.45); }
.install-dismiss {
  background: none; border: none; cursor: pointer; font-size: 1.2rem;
  color: var(--text-muted); transition: color .15s;
}
.install-dismiss:hover { color: var(--text); }

/* ── Footer links ─────────────────────────────────────────────────────────── */
.footer-links { margin-top: .25rem; }
.footer-links a { color: var(--primary); text-decoration: none; font-size: .8rem; }
.footer-links a:hover { text-decoration: underline; }

/* ── Error pages ──────────────────────────────────────────────────────────── */
.error-page {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.error-card {
  text-align: center; max-width: 480px; padding: 3rem 2rem;
  background: #fff; border-radius: 1.5rem;
  box-shadow: 0 8px 40px rgba(194,24,91,.12);
}
.error-code {
  font-family: var(--font-display); font-size: 6rem; font-weight: 700;
  color: var(--primary); line-height: 1;
}
.error-title { font-size: 1.5rem; margin: .5rem 0 1rem; }
.error-msg { color: var(--text-muted); margin-bottom: 1.75rem; }

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.legal-page { max-width: 760px; margin: 2.5rem auto; padding: 0 1rem; }
.legal-card { padding: 2.5rem; }
.legal-card h1 { font-family: var(--font-display); color: var(--primary); margin-bottom: .25rem; }
.legal-date { color: var(--text-muted); font-size: .85rem; margin-bottom: 2rem; }
.legal-card h2 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; color: var(--text); }
.legal-card p, .legal-card li { color: var(--text-muted); line-height: 1.7; }
.legal-card ul { padding-left: 1.5rem; }
.legal-card section { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.legal-card section:last-child { border-bottom: none; }

/* ── Terms checkbox block ─────────────────────────────────────────────────── */
.terms-check { background: #fff5f8; border-radius: .75rem; padding: 1rem; }
