/* Agarwal Parichay Sammelan — Lonavala 2026
   Agarwal Rishtey Dhaage brand theme: vibrant pink (#E91E63) on clean white,
   Lato typeface (self-hosted), soft neutral shadows, amber only for stars/notes. */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/lato-900.woff2") format("woff2");
}

:root {
  --primary: #E91E63;        /* Agarwal Rishtey Dhaage pink */
  --primary-dark: #C2185B;   /* darker pink */
  --primary-deep: #AD1457;   /* deep pink for gradient ends */
  --accent: #FF4081;         /* light pink accent */
  --amber: #FFB300;          /* stars / notes only */
  --amber-soft: #FFF8E1;
  --amber-deep: #8D6E00;
  --tint: #FCE4EC;           /* light pink surface */
  --tint-soft: #FDF2F6;
  --ink: #221A1E;            /* neutrals biased toward the brand hue */
  --ink-2: #52454B;
  --muted: #796C72;
  --line: #F1E4E9;
  --line-2: #E6D3DB;
  --bg: #FCF8F9;             /* pink-biased near-white ground */
  --surface-2: #FBF6F8;
  --white: #ffffff;
  --green: #1B9E4B;
  --danger: #C62828;
  --shadow-sm: 0 1px 4px rgba(194, 24, 91, 0.05);
  --shadow: 0 6px 22px rgba(194, 24, 91, 0.08);
  --shadow-lg: 0 16px 40px rgba(194, 24, 91, 0.13);
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", Arial, sans-serif;
  --grad-hero: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 45%, var(--primary) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 78px;
  line-height: 1.5;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app { max-width: 1120px; margin: 0 auto; }
@media (min-width: 1140px) {
  body { background: #F4E9EE; }
  #app { box-shadow: 0 0 50px rgba(194, 24, 91, 0.10); background: var(--bg); min-height: 100vh; }
}
a { color: var(--primary); text-decoration: none; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); }

/* ---------- shared ---------- */
.ic { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.18em; }
.iconbtn .ic { width: 20px; height: 20px; vertical-align: middle; }
.applogo { width: 66px; height: 66px; border-radius: 16px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); }
.applogo.organiser {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: top;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 10px 26px rgba(0, 0, 0, 0.30);
}
.idtag {
  display: inline-block; background: var(--tint); color: var(--primary-dark);
  padding: 2px 8px; border-radius: 7px; font-weight: 800; letter-spacing: 0.04em;
  margin-right: 6px;
}
.idtag:last-child { margin-right: 0; }
.newtag {
  display: inline-block; background: var(--green); color: #fff;
  padding: 2px 7px; border-radius: 7px; font-weight: 800;
  font-size: 0.62rem; letter-spacing: 0.06em; margin-left: 5px; vertical-align: 1px;
}

/* settings (Me tab) + PWA install */
.setting-label { font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 9px; }
.segment.insec { margin: 0; }
.install-btn { display: flex; margin: 18px auto 0; }
.dsec .install-btn { margin: 16px 0 0; width: 100%; }
.install-tip {
  display: flex; align-items: center; gap: 10px;
  margin: 18px auto 0; padding: 12px 16px; max-width: 400px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  font-size: 0.85rem; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.dsec .install-tip { margin: 14px 0 0; max-width: none; box-shadow: none; background: var(--surface-2); }
.install-tip .ic { width: 20px; height: 20px; flex: none; color: var(--primary); }
body.privacy-blur #app, body.privacy-blur .bottomnav { filter: blur(16px); }

.cphoto img, .dphoto-wrap img, .photo-overlay img, .noimg.big {
  -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none;
}
.crow, .crow b { -webkit-user-select: none; user-select: none; }

.watermark {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  display: none; background-repeat: repeat;
}
.watermark.on { display: block; }
.muted { color: var(--muted); font-size: 0.85rem; }
.err { color: var(--danger); font-size: 0.85rem; min-height: 1.2em; margin: 6px 0; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--white); color: var(--primary);
  border: 1.5px solid var(--line-2);
  border-radius: 40px; padding: 11px 22px;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { border-color: var(--primary); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border: none;
  box-shadow: 0 6px 18px rgba(233, 30, 99, 0.30);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(233, 30, 99, 0.38); transform: translateY(-1px); }
.btn-small { padding: 8px 15px; font-size: 0.8rem; }
.btn.danger { color: var(--danger); border-color: #E7C9C9; }
.btn.danger:hover { border-color: var(--danger); }
.btn.wa { color: #128c4b; border-color: #B9E2C8; }
.btn.wa:hover { border-color: #128c4b; }

.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 40px;
  font-size: 0.88rem; opacity: 0; transition: all 0.25s ease; z-index: 90;
  max-width: 92vw; text-align: center; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- pull-to-refresh ---------- */
.ptr {
  position: fixed; top: -44px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); z-index: 70; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.ptr-spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--tint); border-top-color: var(--primary);
}
.ptr.ready .ptr-spin { border-top-color: var(--accent); transform: rotate(180deg); transition: transform 0.15s; }
.ptr.loading .ptr-spin { animation: spin 0.7s linear infinite; }
.iconbtn.spinning .ic { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- boot / empty ---------- */
.boot, .empty { text-align: center; padding: 96px 24px; }
.empty-ico { margin-bottom: 12px; }
.empty-ico .ic { width: 46px; height: 46px; color: var(--line-2); }
.boot .applogo { margin-bottom: 14px; }
.boot p { margin: 4px 0; font-weight: 700; color: var(--primary-dark); }
.boot .muted, .empty .muted { font-weight: 400; }
.boot .btn { margin-top: 18px; }

/* ---------- login ---------- */
.login-wrap { max-width: 440px; margin: 0 auto; padding: 26px 18px; }
.login-hero {
  text-align: center; color: #fff;
  background: var(--grad-hero);
  border-radius: 24px; padding: 38px 24px 62px;
  margin-bottom: -40px;
  box-shadow: 0 14px 34px rgba(194, 24, 91, 0.30);
  position: relative; overflow: hidden;
}
.login-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, 0.16), transparent 60%);
  pointer-events: none;
}
.login-hero h1 {
  font-weight: 900;
  font-size: 1.5rem; margin: 12px 0 6px; letter-spacing: 0.01em; line-height: 1.25;
}
.login-event { font-size: 0.86rem; opacity: 0.92; font-weight: 700; }
.login-count {
  display: inline-block; margin-top: 14px; padding: 6px 16px;
  font-size: 0.76rem; color: #fff; font-weight: 700; letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 40px; backdrop-filter: blur(4px);
}
.login-card {
  padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 14px;
  position: relative; border-radius: 20px;
}
.login-card label { font-size: 0.74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; display: block; }
.login-card input {
  width: 100%; margin-top: 7px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-2);
  font-size: 1rem; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.login-card input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.10); }
.login-card .btn-primary { padding: 14px; font-size: 1rem; border-radius: 14px; }
.login-help { font-size: 0.82rem; color: var(--muted); text-align: center; }
.login-foot { text-align: center; color: var(--muted); font-size: 0.75rem; margin: 24px 0 8px; letter-spacing: 0.02em; }
.committee-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 18px auto 0; padding: 12px 20px; width: fit-content;
  background: var(--white); border: 1.5px solid var(--line-2); border-radius: 40px;
  color: var(--primary); font-size: 0.85rem; font-weight: 700;
  box-shadow: var(--shadow-sm); transition: border-color 0.2s, transform 0.15s;
}
.committee-link:hover { border-color: var(--primary); transform: translateY(-1px); }
.committee-link .ic { width: 16px; height: 16px; }
.committee-hero { background: linear-gradient(135deg, #880E4F, var(--primary-deep)); }
.committee-badge {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255,255,255,0.25);
}
.committee-badge .ic { width: 34px; height: 34px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  background: var(--grad-hero);
  color: #fff; padding: 14px 16px;
  box-shadow: 0 4px 18px rgba(194, 24, 91, 0.25);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title b { display: block; font-weight: 900; font-size: 1.05rem; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title span { font-size: 0.72rem; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.04em; font-weight: 700; }
.iconbtn {
  background: rgba(255, 255, 255, 0.18); color: #fff; border: none;
  border-radius: 12px; width: 40px; height: 40px; font-size: 1.05rem;
  position: relative; flex: none; transition: background 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.iconbtn:hover { background: rgba(255, 255, 255, 0.28); }
.iconbtn.star.on { color: #FFD54F; }
.fdot {
  position: absolute; top: -5px; right: -5px;
  background: #fff; color: var(--primary); font-style: normal;
  font-size: 0.65rem; font-weight: 800; border-radius: 10px; padding: 1px 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ---------- search ---------- */
.searchrow { display: flex; gap: 9px; padding: 14px 15px 4px; align-items: center; }
.search-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.search-wrap .ic {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.searchrow input[type="search"] {
  width: 100%; padding: 13px 16px 13px 44px; border: 1px solid var(--line);
  border-radius: 40px; background: #fff; box-shadow: var(--shadow-sm);
  -webkit-appearance: none; appearance: none; transition: box-shadow 0.2s, border-color 0.2s;
}
.searchrow input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.10); }
.searchrow input:focus + .ic, .search-wrap:focus-within .ic { color: var(--primary); }

/* round tool buttons beside the search box: sort + advanced search */
.sortwrap, .tool-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); position: relative; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sortwrap .ic, .tool-btn .ic { width: 19px; height: 19px; vertical-align: middle; }
.sortwrap:hover, .tool-btn:hover { border-color: var(--primary); color: var(--primary); }
.sortwrap.active, .tool-btn.active { border-color: var(--primary); background: var(--tint-soft); color: var(--primary); }
.sortwrap select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.tool-btn .fdot { background: var(--primary); color: #fff; }
.pillrow { display: flex; gap: 8px; padding: 10px 15px 0; }
.pill {
  border: 1px solid var(--line); background: #fff; border-radius: 40px;
  padding: 8px 17px; font-size: 0.85rem; font-weight: 700; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.pill.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.freshbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 17px 2px;
}
.resultcount { font-size: 0.8rem; color: var(--ink-2); font-weight: 700; letter-spacing: 0.02em; }
.freshbtn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: var(--tint-soft); color: var(--primary); border: none;
  border-radius: 40px; padding: 6px 14px; font-size: 0.74rem; font-weight: 700;
  transition: background 0.2s;
}
.freshbtn .ic { width: 13px; height: 13px; }
.freshbtn.spinning .ic { animation: spin 0.7s linear infinite; }
.freshbtn:active { background: var(--tint); }

/* Advanced (developer) fold */
.adv { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.adv summary { cursor: pointer; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.adv input {
  width: 100%; margin: 8px 0; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff;
}

/* committee All/Grooms/Brides toggle */
.segment {
  display: flex; gap: 3px; margin: 10px 15px 0;
  background: var(--tint); border-radius: 40px; padding: 4px; box-shadow: inset 0 1px 3px rgba(194,24,91,0.06);
}
.segment button {
  flex: 1; border: none; background: transparent; border-radius: 30px;
  padding: 9px 10px; font-size: 0.84rem; font-weight: 700; color: var(--ink-2);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.segment button.on { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* ---------- candidate cards ---------- */
.cards { padding: 12px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; margin: 0 auto; } }

.ccard {
  display: flex; align-items: center; gap: 14px; background: #fff; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}
.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ccard:active { transform: scale(0.99); }
.cphoto { position: relative; flex: none; }
.cphoto img, .cphoto .noimg {
  width: 80px; height: 80px; object-fit: cover; border-radius: 50%;
  background: var(--tint);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--tint), var(--shadow-sm);
}
.noimg {
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 900; font-size: 1.5rem;
}
.noimg.big { width: 122px; height: 150px; font-size: 2rem; border-radius: 16px; box-shadow: 0 0 0 2px #fff, var(--shadow); }
.cstar {
  position: absolute; top: -4px; right: -4px; background: linear-gradient(135deg, #FFC107, #FFA000);
  color: #5b3c00; border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(255,160,0,0.45);
}
.cstar .ic { width: 12px; height: 12px; vertical-align: 0; }
.cbody { flex: 1; min-width: 0; overflow: hidden; }
.cbody h3 { font-size: 1.02rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbody p { font-size: 0.83rem; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbody p.muted { color: var(--muted); }
.cid { color: var(--primary); font-weight: 800; font-size: 0.72rem !important; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px !important; }
.sentinel { height: 4px; }

/* ---------- filter sheet ---------- */
.sheet-back {
  position: fixed; inset: 0; background: rgba(34, 26, 30, 0.5);
  z-index: 80; opacity: 0; transition: opacity 0.2s ease;
  display: flex; align-items: flex-end; justify-content: center;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.sheet-back.show { opacity: 1; }
.sheet {
  background: var(--bg); width: 100%; max-width: 560px;
  border-radius: 24px 24px 0 0; padding: 20px 20px 26px;
  max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: translateY(40px); transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet-back.show .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head b { color: var(--ink); font-size: 1.1rem; font-weight: 900; }
.sheet .iconbtn { background: var(--tint); color: var(--primary); }
.fgroup { margin: 14px 0; }
.fgroup > p { font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line-2); background: #fff; border-radius: 40px;
  padding: 8px 15px; font-size: 0.82rem; font-weight: 700; color: var(--ink); transition: all 0.15s;
}
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.range { display: flex; align-items: center; gap: 10px; }
.range select, .fgroup input {
  flex: 1; width: 100%; padding: 12px 13px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff;
}
.sheet-actions { display: flex; gap: 12px; margin-top: 20px; }
.sheet-actions .btn { flex: 1; }

/* ---------- profile detail ---------- */
.dhero {
  display: flex; gap: 16px; padding: 20px 16px 22px;
  background: linear-gradient(165deg, var(--tint-soft), var(--bg) 78%);
  align-items: flex-start;
}
.dphoto-wrap img {
  width: 124px; height: 152px; object-fit: cover; border-radius: 16px;
  border: 3px solid #fff; box-shadow: var(--shadow-lg); cursor: zoom-in;
}
.dhero-info { min-width: 0; padding-top: 2px; }
.dhero-info h2 { font-weight: 900; font-size: 1.34rem; color: var(--ink); line-height: 1.22; letter-spacing: 0.005em; }
.dhero-info .cid { color: var(--primary); font-weight: 800; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.dchips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.dchip {
  background: #fff; border: 1px solid var(--line); border-radius: 40px;
  padding: 6px 13px; font-size: 0.78rem; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.dchip.gold { background: var(--tint); border-color: #F8BBD0; color: var(--primary-dark); }

.dsec { margin: 14px 12px; padding: 18px 18px; border-radius: var(--radius); }
.dsec code { overflow-wrap: anywhere; word-break: break-word; font-size: 0.82em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
@media (min-width: 760px) {
  .dhero { max-width: 748px; margin-left: auto; margin-right: auto; }
  .dsec, .pager, .me-actions { max-width: 720px; margin-left: auto; margin-right: auto; }
}
.dsec h4 {
  color: var(--ink); font-size: 1rem; font-weight: 900; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.dsec h4 .ic { color: var(--primary); }
.drow {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem;
}
.drow:last-child { border-bottom: none; }
.drow span { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; overflow-wrap: anywhere; }
.drow b { font-weight: 700; text-align: left; overflow-wrap: anywhere; color: var(--ink); }
@media (min-width: 640px) {
  .drow { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 14px; }
  .drow span { font-size: 0.85rem; text-transform: none; letter-spacing: 0; font-weight: 400; flex: none; }
  .drow b { text-align: right; }
}
.freetext { font-size: 0.94rem; color: var(--ink-2); overflow-wrap: anywhere; }

.notes-card { border-left: 4px solid var(--amber); }
.notes-card textarea {
  width: 100%; min-height: 76px; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 14px; background: var(--surface-2); resize: vertical; line-height: 1.5;
}
.notes-card textarea:focus { outline: none; border-color: var(--amber); background: #fff; box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.12); }
.note-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

.contact-card { border-left: 4px solid var(--primary); }
.contact-locked { text-align: center; padding: 12px 6px 6px; }
.lock-ico {
  width: 52px; height: 52px; margin: 6px auto 14px;
  border-radius: 50%; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
}
.lock-ico .ic { width: 23px; height: 23px; color: var(--primary); }
.contact-locked p { font-size: 0.96rem; line-height: 1.55; margin-bottom: 18px; }
.contact-locked .muted { font-size: 0.85rem; }
.contact-locked .btn-primary { width: 100%; max-width: 320px; }

.crow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem;
}
.crow:last-child { border-bottom: none; }
.crow > span:first-child { color: var(--muted); min-width: 70px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.crow b { overflow-wrap: anywhere; font-weight: 700; }
.cbtns { margin-left: auto; display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.save-contact-row { display: flex; justify-content: center; margin-top: 16px; }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 26px; gap: 10px;
}
.pager .btn { flex: 1; max-width: 160px; }
.pager-count { color: var(--muted); font-size: 0.8rem; font-weight: 700; white-space: nowrap; letter-spacing: 0.03em; }

.photo-overlay {
  position: fixed; inset: 0; background: rgba(17, 17, 20, 0.95); z-index: 100;
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.photo-overlay img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }

.me-actions { display: flex; gap: 12px; padding: 12px 14px; }
.me-actions .btn { flex: 1; }

/* ---------- bottom nav ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 1120px; z-index: 60;
  display: flex; background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(194, 24, 91, 0.06);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 700px) {
  .bottomnav a { max-width: 200px; }
  .bottomnav { justify-content: center; }
}
.bottomnav a {
  flex: 1; text-align: center; padding: 10px 4px 10px;
  font-size: 0.68rem; font-weight: 700; color: var(--muted);
  letter-spacing: 0.02em; transition: color 0.2s;
}
.bottomnav a .ic { display: block; width: 23px; height: 23px; margin: 0 auto 4px; transition: transform 0.2s; }
.bottomnav a.active { color: var(--primary); }
.bottomnav a.active .ic { transform: translateY(-1px) scale(1.06); }
