/* ============================================================
   Matrione — Premium Matrimonial — Vanilla CSS design system
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --plum-deep: #3a1244;
  --plum: #4d1f58;
  --plum-soft: #7a3d78;
  --rose: #c97b8e;
  --rose-soft: #efd3da;
  --rose-pale: #fbeef1;
  --gold: #d9a05b;
  --gold-soft: #f4e0c4;
  --ink: #2b2436;
  --muted: #8a7f8e;
  --surface: #ffffff;
  --cream: #faf4ef;
  --line: #eee2e6;
  --ok: #3d9970;
  --ok-soft: #e3f3ea;
  --danger: #d9485a;
  --danger-soft: #fdebec;
  --info: #4a6fa5;
  --info-soft: #e8eff8;
  --warn: #c8891f;
  --warn-soft: #fbf1df;
  --grad: linear-gradient(135deg, #4d1f58 0%, #7a3d78 55%, #c97b8e 100%);
  --grad-soft: linear-gradient(135deg, #fbeef1 0%, #f4e0c4 100%);
  --shadow-sm: 0 1px 3px rgba(43,36,54,.06), 0 1px 2px rgba(43,36,54,.04);
  --shadow: 0 6px 24px rgba(43,36,54,.09), 0 2px 6px rgba(43,36,54,.05);
  --shadow-lg: 0 18px 50px rgba(61,18,68,.18), 0 6px 18px rgba(61,18,68,.08);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --r-full: 999px;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --container: 1200px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--plum-soft); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--plum); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--plum-deep); line-height: 1.15; letter-spacing: .2px; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }

::selection { background: var(--rose); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #d9c3cb; border-radius: 8px; border: 3px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--rose); }

/* ---------- Layout utilities ---------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: 2rem; }
.grid { display: grid; gap: 1.4rem; }
.row { display: flex; gap: .8rem; align-items: center; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.grow { flex: 1; min-width: 0; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.6rem}.mb-4{margin-bottom:2.4rem}
.text-muted { color: var(--muted); }
.text-sm { font-size: .86rem; }
.text-lg { font-size: 1.08rem; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rose); background: var(--rose-pale);
  padding: .42rem 1rem; border-radius: var(--r-full); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }

.eyebrow { color: var(--rose); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.4rem; border-radius: var(--r-full);
  font-weight: 600; font-size: .94rem; line-height: 1; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease, border-color .2s;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(91,35,84,.35); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(91,35,84,.42); }
.btn-ghost { background: transparent; color: var(--plum); border-color: #e0c9d2; }
.btn-ghost:hover { background: var(--rose-pale); border-color: var(--rose-soft); }
.btn-soft { background: var(--rose-pale); color: var(--plum); }
.btn-soft:hover { background: var(--rose-soft); color: var(--plum-deep); }
.btn-light { background: #fff; color: var(--plum); box-shadow: var(--shadow); }
.btn-light:hover { color: var(--plum); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--plum-deep); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.btn-white:hover { color: var(--plum); transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c23647; color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #2e7d59; color: #fff; }
.btn-sm { padding: .5rem .95rem; font-size: .84rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1rem; font-weight: 700; }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .76rem; font-weight: 600; padding: .28rem .7rem;
  border-radius: var(--r-full); background: var(--rose-pale); color: var(--plum-soft);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.gold { background: var(--gold-soft); color: #8a5a19; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot.online { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.6rem; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--rose-soft); }

/* ---------- Avatar ---------- */
.avatar {
  position: relative; border-radius: 50%; object-fit: cover;
  width: 44px; height: 44px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 700;
  flex: none; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .status {
  position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px;
  border-radius: 50%; background: #c9c2cc; border: 2px solid #fff;
}
.avatar .status.on { background: var(--ok); }
.avatar-lg { width: 120px; height: 120px; font-size: 2rem; box-shadow: 0 10px 26px rgba(91,35,84,.25); }
.avatar-xl { width: 150px; height: 150px; font-size: 2.6rem; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .42rem; margin-bottom: 1.05rem; }
.field > label { font-size: .84rem; font-weight: 600; color: #4a3f50; }
.input, select.input, textarea.input {
  width: 100%; padding: .78rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .18s, box-shadow .18s; font-size: .95rem;
  appearance: none; -webkit-appearance: none;
}
textarea.input { resize: vertical; min-height: 110px; line-height: 1.6; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a3d78' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem;
}
.input:focus {
  outline: none; border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(201,123,142,.15);
}
.input::placeholder { color: #b3a9b5; }
.field .hint { font-size: .78rem; color: var(--muted); }
.field-inline { flex-direction: row; align-items: center; gap: .6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }

.form-error { color: var(--danger); font-size: .8rem; margin-top: .25rem; }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1.2rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert ul { list-style: disc; padding-left: 1.1rem; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #f3c6cc; }
.alert-success { background: var(--ok-soft); color: var(--ok); border: 1px solid #c4e6d3; }
.alert-info { background: var(--info-soft); color: var(--info); border: 1px solid #c9d8ee; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(250,244,239,.86); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 1.4rem; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--plum-deep); letter-spacing: .2px; }
.brand img { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 4px 12px rgba(91,35,84,.3); }
.brand span em { font-style: italic; color: var(--rose); }

.nav-links { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav-link {
  padding: .5rem .85rem; border-radius: var(--r-full); font-weight: 500; font-size: .92rem;
  color: #54485c; position: relative;
}
.nav-link:hover { color: var(--plum); background: var(--rose-pale); }
.nav-link.active { color: var(--plum); font-weight: 700; }
.nav-link.btn-primary { color: #fff; }
.nav-link.btn-primary:hover { color: #fff; background: var(--grad); box-shadow: 0 8px 22px rgba(91,35,84,.35); }
.nav-link.btn-primary:focus-visible { color: #fff; }
.nav-link .count {
  position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--rose); color: #fff; font-size: .68rem; font-weight: 700;
  border-radius: var(--r-full); display: grid; place-items: center; line-height: 1;
}
.nav-right { display: flex; align-items: center; gap: .8rem; margin-left: auto; }

.nav-toggle { display: none; }
.menu-btn { display: none; padding: .5rem; border-radius: 8px; }
.menu-btn svg { width: 24px; height: 24px; stroke: var(--plum); }

/* user dropdown */
.u-drop { position: relative; }
.u-drop-btn { display: flex; align-items: center; gap: .55rem; padding: .35rem .6rem .35rem .35rem; border-radius: var(--r-full); transition: background .2s; }
.u-drop-btn:hover { background: var(--rose-pale); }
.u-name { font-weight: 600; font-size: .9rem; color: var(--ink); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-drop-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .4rem; opacity: 0; pointer-events: none;
  transform: translateY(-8px); transition: all .18s ease; z-index: 70;
}
.u-drop.open .u-drop-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.u-drop-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 10px; font-size: .9rem; color: var(--ink); font-weight: 500; }
.u-drop-item:hover { background: var(--rose-pale); color: var(--plum); }
.u-drop-item svg { width: 17px; height: 17px; color: var(--rose); }
.u-drop-sep { height: 1px; background: var(--line); margin: .3rem .5rem; }
.u-drop-head { padding: .55rem .8rem .4rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }

/* notifications bell dropdown */
.bell { position: relative; padding: .5rem; border-radius: var(--r-full); color: var(--ink); display: grid; place-items: center; }
.bell:hover { background: var(--rose-pale); }
.bell svg { width: 21px; height: 21px; stroke-width: 2; }
.bell .count { position: absolute; top: 1px; right: 0; }
.notif-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, 90vw);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; pointer-events: none;
  transform: translateY(-8px); transition: all .18s ease; z-index: 70;
}
.bell-wrap.open .notif-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.notif-head { padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); font-weight: 700; font-family: var(--font-display); color: var(--plum-deep); display: flex; justify-content: space-between; align-items: center; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); align-items: flex-start; transition: background .15s; }
.notif-item:hover { background: var(--rose-pale); }
.notif-item.unread { background: #fdf3f6; }
.notif-item p { font-size: .86rem; }
.notif-item small { color: var(--muted); font-size: .74rem; }
.notif-empty { padding: 2rem; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- Hero / landing ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 320px at 12% 8%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(520px 300px at 88% 12%, rgba(217,160,91,.35), transparent 60%),
    radial-gradient(700px 420px at 70% 100%, rgba(255,255,255,.08), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-block: clamp(3.4rem, 8vw, 6.5rem); }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .accent { display: block; font-style: italic; background: linear-gradient(120deg, #ffd9a0, #ff9db4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: #ffd9a0; }
.hero-stat span { font-size: .84rem; color: rgba(255,255,255,.72); }

.hero-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: .8rem;
  box-shadow: 0 30px 70px rgba(24,4,32,.4);
  transform: rotate(1.5deg);
}
.hero-card-row { display: flex; gap: .8rem; align-items: center; padding: .7rem; border-radius: 16px; background: rgba(255,255,255,.94); margin-bottom: .7rem; }
.hero-card-row .avatar { width: 52px; height: 52px; }
.hero-card-row h4 { font-size: 1rem; }
.hero-card-row p { font-size: .8rem; color: var(--muted); }
.hero-chip { display: inline-block; font-size: .72rem; font-weight: 600; background: var(--rose-pale); color: var(--plum-soft); border-radius: var(--r-full); padding: .25rem .7rem; margin-top: .45rem; }
.hero-card-badge {
  position: absolute; top: -14px; right: 26px;
  background: var(--gold); color: var(--plum-deep); font-size: .8rem; font-weight: 800;
  padding: .5rem 1.1rem; border-radius: var(--r-full); box-shadow: 0 10px 22px rgba(0,0,0,.25);
  transform: rotate(-4deg);
}

.marquee-band { background: var(--plum-deep); color: rgba(255,255,255,.9); padding: 1rem 0; overflow: hidden; }
.marquee-band .inner { display: flex; gap: 2.6rem; white-space: nowrap; justify-content: space-around; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }

.feature-tile { text-align: left; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 10px 22px rgba(91,35,84,.3); margin-bottom: 1rem;
}
.feature-icon svg { width: 26px; height: 26px; stroke: #fff; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 1.15rem; right: 1.25rem;
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
  color: var(--rose); opacity: .35; line-height: 1;
}
@media (max-width: 860px){ .steps { grid-template-columns: 1fr; } }

.quote-card { background: #fff; }
.quote-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .6rem; }
.quote-card p { font-style: italic; color: #4a3f50; }

.cta-band { background: var(--grad); border-radius: var(--radius-lg); color: #fff; padding: clamp(2.4rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 20% 0%, rgba(255,255,255,.15), transparent 60%); }
.cta-band h2 { color: #fff; margin-bottom: .7rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 40rem; margin: 0 auto 1.8rem; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual {
  position: relative; background: var(--grad); color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 3rem;
}
.auth-visual::before { content:""; position:absolute; inset:0; background: radial-gradient(500px 320px at 85% 15%, rgba(255,255,255,.16), transparent 60%), radial-gradient(420px 300px at 10% 90%, rgba(217,160,91,.32), transparent 60%); }
.auth-visual .content { position: relative; z-index: 1; }
.auth-visual h1 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 1rem; }
.auth-visual p { color: rgba(255,255,255,.82); max-width: 26rem; }
.auth-form { display: grid; place-items: center; padding: 2.5rem 1.5rem; background: var(--cream); }
.auth-card { width: min(440px, 100%); }
.auth-title { font-size: 1.8rem; margin-bottom: .3rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.7rem; font-size: .95rem; }
.auth-alt { text-align: center; margin-top: 1.3rem; font-size: .92rem; color: var(--muted); }
@media (max-width: 900px){ .auth-wrap { grid-template-columns: 1fr; } .auth-visual { display: none; } }

/* member search mini bar on landing */
.quick-search {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: .7rem;
  background: rgba(255,255,255,.94); padding: .7rem .8rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); margin-bottom: 1.6rem;
}
.quick-search select { width: 100%; }
@media (max-width: 640px){ .quick-search { grid-template-columns: 1fr; } }

/* ---------- Member cards ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.5rem; }
.member-card {
  position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.member-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member-card .photo { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.member-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.member-card:hover .photo img { transform: scale(1.06); }
.member-card .photo .grad-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.member-card .info { padding: 1rem 1.1rem 1.1rem; }
.member-card .info h3 { font-size: 1.08rem; }
.member-card .meta { color: var(--muted); font-size: .84rem; margin: .25rem 0 .5rem; display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }
.member-card .fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--muted); box-shadow: var(--shadow); transition: all .18s; z-index: 2; }
.member-card .fav:hover { transform: scale(1.1); }
.member-card .fav.active { color: var(--danger); }
.member-card .fav.active svg { fill: var(--danger); }
.member-card .fav svg { width: 19px; height: 19px; }
.member-card .card-actions { display: flex; gap: .6rem; }
.member-card .card-actions .btn { flex: 1; padding: .55rem .6rem; font-size: .83rem; }

/* verification chip */
.verified { display: inline-flex; align-items: center; gap: .25rem; color: var(--ok); font-size: .82rem; font-weight: 600; }
.verified svg { width: 15px; height: 15px; }

/* ---------- Filter sidebar ---------- */
.filter-card { position: sticky; top: calc(var(--nav-h) + 18px); }
.filter-card .toggler { display: none; }
@media (max-width: 900px) {
  .filter-card { position: static; }
  .filter-card .filters-body { display: none; }
  .filter-card.open .filters-body { display: block; }
  .filter-card .toggler { display: flex; width: 100%; justify-content: space-between; }
}

/* ---------- Profile page ---------- */
.profile-hero { background: var(--grad); color: #fff; padding: 2.6rem 0 0; position: relative; overflow: hidden; }
.profile-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(500px 240px at 85% 20%, rgba(255,255,255,.14), transparent 60%); }
.profile-hero-inner { position: relative; z-index: 1; display: flex; gap: 1.8rem; align-items: flex-end; padding-bottom: 2rem; flex-wrap: wrap; }
.profile-hero h1 { color: #fff; }
.profile-hero .badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.profile-hero .badge { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.profile-hero .meta-line { color: rgba(255,255,255,.82); font-size: .98rem; display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; margin-top: .55rem; }

.profile-tabs { display: flex; gap: .3rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--nav-h); z-index: 30; }
.profile-tab { padding: .95rem 1.2rem .85rem; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.profile-tab:hover { color: var(--plum); }
.profile-tab.active { color: var(--plum); border-bottom-color: var(--rose); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.detail-cell { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.detail-cell dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.detail-cell dd { font-weight: 600; color: var(--ink); font-size: .95rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.gallery .g-item { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-item .g-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--danger); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.gallery .g-item .g-del svg { width: 15px; height: 15px; }

/* ---------- Chat ---------- */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1.4rem; height: calc(100vh - var(--nav-h) - 90px); min-height: 460px; }
.chat-list { overflow-y: auto; }
.chat-list .conv {
  display: flex; gap: .8rem; align-items: center; padding: .85rem .95rem;
  border-radius: 14px; border: 1px solid var(--line); background: #fff; margin-bottom: .7rem;
  transition: all .16s; position: relative; width: 100%; text-align: left;
}
.chat-list .conv:hover { border-color: var(--rose-soft); background: var(--rose-pale); }
.chat-list .conv.active { border-color: var(--rose); background: var(--rose-pale); box-shadow: var(--shadow-sm); }
.chat-list .conv .who { font-weight: 700; font-size: .95rem; color: var(--ink); display: flex; justify-content: space-between; gap: .5rem; }
.chat-list .conv .who time { font-size: .72rem; color: var(--muted); font-weight: 500; flex: none; }
.chat-list .conv .prev { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.chat-list .conv .unread { margin-left: auto; background: var(--rose); color: #fff; min-width: 19px; height: 19px; font-size: .7rem; border-radius: var(--r-full); display: grid; place-items: center; padding: 0 5px; font-weight: 700; }

.chat-panel { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.chat-head .who { font-weight: 700; color: var(--ink); }
.chat-head .sub { font-size: .78rem; color: var(--muted); }
.chat-body { flex: 1; overflow-y: auto; padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; background: #fdf9f6; }
.msg { max-width: 72%; padding: .62rem .95rem; border-radius: 18px; font-size: .93rem; line-height: 1.5; position: relative; word-wrap: break-word; animation: msg-in .22s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg .time { display: block; font-size: .68rem; margin-top: .25rem; opacity: .7; text-align: right; }
.msg.in { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg.out .time { color: rgba(255,255,255,.75); }
.msg.out .tick { vertical-align: -1px; margin-left: 3px; }
.typing { font-size: .78rem; color: var(--muted); padding-left: .3rem; display: flex; gap: .35rem; align-items: center; }
.typing .t-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); display: inline-block; animation: blink 1.3s infinite; }
.typing .t-dots span:nth-child(2){ animation-delay: .2s; }
.typing .t-dots span:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{opacity:.25} 40%{opacity:1} }
.chat-form { display: flex; gap: .7rem; padding: .9rem 1.1rem; border-top: 1px solid var(--line); background: #fff; align-items: end; }
.chat-form .input { border-radius: var(--r-full); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(91,35,84,.3); transition: transform .15s; }
.chat-form button:hover { transform: translateY(-1px) scale(1.04); }
.chat-form button svg { width: 20px; height: 20px; }
.chat-empty { display: grid; place-items: center; text-align: center; padding: 3rem; color: var(--muted); }
.chat-day { align-self: center; font-size: .72rem; color: var(--muted); background: var(--rose-pale); padding: .25rem .8rem; border-radius: var(--r-full); }
@media (max-width: 900px){ .chat-layout { grid-template-columns: 1fr; } .chat-panel { display: none; } .chat-layout.mobile-thread .chat-panel { display: flex; } .chat-layout.mobile-thread .chat-list { display: none; } }

/* progress bar for profile completion */
.pg { height: 8px; background: var(--rose-pale); border-radius: var(--r-full); overflow: hidden; }
.pg > i { display: block; height: 100%; background: var(--grad); border-radius: var(--r-full); transition: width .6s ease; }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.6rem; }
.admin-side { position: sticky; top: calc(var(--nav-h) + 18px); align-self: start; }
.admin-link { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .92rem; margin-bottom: .25rem; }
.admin-link svg { width: 18px; height: 18px; color: var(--rose); }
.admin-link:hover { background: var(--rose-pale); color: var(--plum); }
.admin-link.active { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.admin-link.active svg { color: #fff; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.1rem; }
.stat-card { padding: 1.3rem 1.4rem; position: relative; overflow: hidden; }
.stat-card .ico { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-pale); }
.stat-card .ico svg { width: 21px; height: 21px; stroke: var(--rose); }
.stat-card b { font-family: var(--font-display); font-size: 1.9rem; color: var(--plum-deep); display: block; line-height: 1.1; }
.stat-card span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .8rem 1rem; border-bottom: 2px solid var(--line); font-weight: 700; }
.admin-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.admin-table tr:hover td { background: #fffafc; }
.avatar-sm { width: 34px; height: 34px; font-size: .8rem; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: .7rem; max-width: min(360px, 90vw); }
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--rose);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .85rem 1.05rem;
  display: flex; gap: .7rem; align-items: flex-start; animation: toast-in .25s ease; font-size: .9rem;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
.toast .close { margin-left: auto; color: var(--muted); padding: 0 .2rem; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(43,20,48,.5); backdrop-filter: blur(3px); z-index: 90; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.2rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-back.open { opacity: 1; pointer-events: auto; }
.modal-back::before, .modal-back .modal { margin: auto; }
.modal {
  background: #fff; border-radius: var(--radius); width: min(460px, 100%);
  box-shadow: var(--shadow-lg); padding: 1.8rem; transform: translateY(10px) scale(.98); transition: transform .2s;
}
.modal-back.open .modal { transform: none; }
.modal h3 { margin-bottom: .5rem; }
.modal-actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1.6rem; }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, #f0e7ea 25%, #faf4f0 50%, #f0e7ea 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--plum-deep); color: rgba(255,255,255,.75); margin-top: auto; }
.footer-grad { height: 4px; background: var(--grad); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer a { color: rgba(255,255,255,.68); }
.footer a:hover { color: #ffd9a0; }
.footer .links li { margin-bottom: .5rem; font-size: .9rem; }
.footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px){ .footer-inner { grid-template-columns: 1fr 1fr; } }

/* global page head */
.page-head { padding-block: 2.4rem 1.2rem; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.page-head p { color: var(--muted); margin-top: .4rem; max-width: 46rem; }

.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state .ico { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px; background: var(--rose-pale); display: grid; place-items: center; }
.empty-state .ico svg { width: 30px; height: 30px; stroke: var(--rose); }
.empty-state h3 { margin-bottom: .3rem; }
.empty-state p { color: var(--muted); max-width: 30rem; margin: 0 auto; }

/* pagination */
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 .5rem; display: grid; place-items: center; border-radius: 12px; font-weight: 600; font-size: .9rem; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pager a:hover { border-color: var(--rose); color: var(--plum); }
.pager .active { background: var(--grad); color: #fff; border-color: transparent; }

/* misc */
.relative { position: relative; }
.divider { height: 1px; background: var(--line); border: none; margin: 1.4rem 0; }
.tag-pill { display:inline-flex; align-items:center; gap:.3rem; font-size:.78rem; font-weight:600; padding:.3rem .75rem; border-radius:var(--r-full); background:var(--rose-pale); color:var(--plum-soft); }
.tag-pill svg { width:13px; height:13px; }

.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* ---------- Responsive nav ---------- */
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: .8rem; gap: .3rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .28s ease; z-index: 55;
  }
  .nav-links.open { transform: none; }
  .nav-link { padding: .85rem 1rem; border-radius: 12px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 460px; }
}