/* ═══════════════════════════════════════════════════════════════
   LiveProfile.me — Design System
   Brand: Gradient green icon · Charcoal "LiveProfile" · green ".me"
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Accent: Apple system green, used sparingly ─────────── */
  --brand:          #00a86b;   /* LiveProfile ".me" green */
  --brand-dark:     #068a59;   /* hover / active */
  --brand-deeper:   #0a6e48;   /* darkest, for text on light bg */
  --brand-light:    #e9f8f0;   /* subtle tinted surface */
  --brand-border:   #bce7d3;   /* hairline green */
  --grad-from:      #49b96f;   /* icon gradient — light end */
  --grad-to:        #1e7a45;   /* icon gradient — dark end */

  /* backward-compat aliases used in templates */
  --green-light:    #4cd08a;
  --green-dark:     #068a59;

  /* ── Status ─────────────────────────────────────────────── */
  --success-text:   #0a6e48;
  --success-bg:     #e9f8f0;
  --success-border: #bce7d3;
  --danger:         #ff3b30;   /* Apple system red */
  --danger-light:   #ffeceb;
  --danger-border:  #ffd6d3;

  /* ── Surfaces ───────────────────────────────────────────── */
  --bg:             #f5f5f7;   /* Apple light gray */
  --card:           #ffffff;
  --surface:        #fbfbfd;
  --surface-alt:    #f0f0f3;   /* referenced in templates — now defined */

  /* ── Text ───────────────────────────────────────────────── */
  --text:           #1d1d1f;   /* Apple near-black */
  --text-sec:       #3a3a3c;
  --muted:          #86868b;   /* Apple secondary gray */

  /* ── Borders (hairline) ─────────────────────────────────── */
  --border:         #e4e4e7;
  --border-strong:  #d2d2d7;

  /* ── Radius ─────────────────────────────────────────────── */
  --radius-sm:      10px;
  --radius:         14px;
  --radius-lg:      20px;

  /* ── Shadows (soft, diffuse) ────────────────────────────── */
  --shadow-xs:      0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:      0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --shadow:         0 2px 8px rgba(0,0,0,.05), 0 8px 28px rgba(0,0,0,.06);
  --shadow-md:      0 6px 16px rgba(0,0,0,.06), 0 20px 48px rgba(0,0,0,.10);
}

/* ── Reset & Base ───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

h1 { font-size: 1.6rem;  margin: 0 0 8px;  font-weight: 700; line-height: 1.25; }
h2 { font-size: 1.15rem; margin: 0 0 6px;  font-weight: 600; }
h3 { font-size: 1rem;    margin: 0 0 6px;  font-weight: 600; }
p  { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

/* ── Navbar ─────────────────────────────────────────────── */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--text); }

.brand-icon { width: 36px; height: 36px; flex-shrink: 0; }

.brand-wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-me { color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--text-sec);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background .14s, color .14s;
  text-decoration: none;
}
.nav-links a:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  text-decoration: none;
}
.nav-links .nav-dim {
  font-size: 0.78rem;
  color: var(--muted);
}
.nav-links .nav-dim:hover { color: var(--brand); }

/* Primary section links + active state */
.nav-links .nav-primary.active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
}
/* "Managing" is the organizer door — a separate mode, styled distinctly */
.nav-links .nav-managing {
  color: #b45309;
}
.nav-links .nav-managing:hover {
  background: #fff7ed;
  color: #92400e;
}
.nav-links .nav-managing.active {
  background: #fff7ed;
  color: #92400e;
  font-weight: 700;
}

/* Sub-navigation (tabs within a section, e.g. Contacts) */
.sub-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.sub-nav a {
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}
.sub-nav a:hover { color: var(--brand); text-decoration: none; }
.sub-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }

/* Managing-mode banner shown atop a community console */
.managing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #92400e;
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.managing-bar a { color: #92400e; font-weight: 600; }

/* ── Container ──────────────────────────────────────────── */

.container {
  max-width: 780px;
  margin: 36px auto;
  padding: 0 20px;
}

/* ── Page nav (sub-nav tabs between the 3 main pages) ───── */

.page-nav {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.page-nav-link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sec);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: color .14s, border-color .14s, background .14s;
}
.page-nav-link:hover {
  color: var(--brand);
  background: var(--brand-light);
  text-decoration: none;
}
.page-nav-link.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: transparent;
}

/* ── Toggle group (filter pills) ────────────────────────── */

.toggle-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.toggle-btn {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  background: var(--surface);
  color: var(--text-sec);
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
  line-height: 1.4;
}
.toggle-btn + .toggle-btn { border-left: 1px solid var(--border); }
.toggle-btn.active        { background: var(--brand); color: #fff; }
.toggle-btn:hover:not(.active) { background: var(--brand-light); color: var(--brand); }

/* ── Cards ──────────────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* ── Hero (home page) ───────────────────────────────────── */

.hero {
  text-align: center;
  padding: 60px 20px 44px;
}
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
}
.hero-logo-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 6px 20px rgba(34,169,79,.28));
}
.hero-logo-text {
  text-align: left;
  line-height: 1;
}
.hero-logo-name {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  display: block;
}
.hero-logo-me {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  display: block;
}

.hero-headline {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.hero-headline .highlight { color: var(--brand); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-logo { flex-direction: column; gap: 12px; }
  .hero-logo-text { text-align: center; }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
}
.feature-card h3 { color: var(--text); margin-bottom: 6px; }
.feature-card p  { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin: 0; }

/* ── Auth pages (login / signup) ────────────────────────── */

.auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin-bottom: 4px; }
.auth-divider {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 14px;
  transition: background .14s, box-shadow .14s, transform .1s;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.btn:hover {
  background: var(--brand-dark);
  text-decoration: none;
  color: white;
  box-shadow: 0 2px 10px rgba(34,169,79,.3);
}
.btn:active { transform: translateY(1px); }

.btn-secondary {
  background: var(--surface);
  color: var(--text-sec);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: #f3f4f6;
  color: var(--text);
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-ghost:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: none;
}
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover {
  background: #b91c1c;
  box-shadow: 0 2px 8px rgba(220,38,38,.3);
  color: white;
}
.btn-small  { padding: 5px 11px; font-size: 0.78rem; border-radius: 6px; margin-top: 0; }
.btn-lg     { padding: 12px 28px; font-size: 1rem; border-radius: 10px; }

/* ── Forms ──────────────────────────────────────────────── */

label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 5px;
  margin-top: 16px;
}

input[type=text],
input[type=email],
input[type=password],
input[type=date],
input[type=url],
input[type=tel],
input[type=number],
input[type=time],
textarea,
select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color .14s, box-shadow .14s;
  -webkit-appearance: none;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=date]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34,169,79,.14);
}
textarea { resize: vertical; min-height: 72px; }

/* ── Alerts & messages ──────────────────────────────────── */

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}
.alert-error { background: var(--danger-light); color: var(--danger); border-color: var(--danger-border); }

.error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  border-radius: 7px;
}

/* ── Badges ─────────────────────────────────────────────── */

.badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--brand-light);
  color: var(--brand-deeper);
  border: 1px solid var(--brand-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.badge.private     { background: var(--danger-light); color: var(--danger); border-color: var(--danger-border); }
.badge.connections { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.badge.neutral     { background: #f3f4f6; color: var(--muted); border-color: var(--border); }

/* ── List items ─────────────────────────────────────────── */

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }

/* ── Helpers ─────────────────────────────────────────────── */

.muted { color: var(--muted); font-size: 0.875rem; }

.empty-state {
  color: var(--muted);
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
}

.public-link {
  font-family: "SF Mono","Fira Code","Consolas",monospace;
  background: #f3f4f6;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-sec);
  border: 1px solid var(--border);
}

/* ── Checkboxes ─────────────────────────────────────────── */

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.checkbox-row:last-child { border-bottom: none; }
.checkbox-row input[type=checkbox] {
  width: 16px; height: 16px;
  flex-shrink: 0; cursor: pointer;
  accent-color: var(--brand);
}
.checkbox-row select { flex-shrink: 0; width: auto; }

/* ── QR code ─────────────────────────────────────────────── */

.qr-box { text-align: center; margin: 12px 0; }
.qr-box img {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: white;
  box-shadow: var(--shadow-sm);
}

/* ── Member rows ─────────────────────────────────────────── */

.member-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }
.member-info { flex: 1; }

/* ── Subscribe strip ─────────────────────────────────────── */

.subscribe-strip {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Profile blocks (dashboard) ──────────────────────────── */

.profile-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.profile-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}
.profile-block-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Contact list ────────────────────────────────────────── */

.contact-entry { border-bottom: 1px solid var(--border); }
.contact-entry:last-child { border-bottom: none; }

.contact-entry summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .12s;
}
.contact-entry summary::-webkit-details-marker { display: none; }
.contact-entry summary::before {
  content: '›';
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
  flex-shrink: 0;
  width: 12px;
  transition: transform .15s;
  display: inline-block;
}
.contact-entry[open] > summary::before { transform: rotate(90deg); }
.contact-entry summary:hover { background: var(--brand-light); }

.contact-name  { font-weight: 600; min-width: 160px; font-size: 0.92rem; }
.contact-email { color: var(--muted); font-size: 0.84rem; }
.contact-meta  { color: var(--muted); font-size: 0.8rem; margin-left: auto; }

.contact-detail {
  padding: 12px 16px 16px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}
.contact-detail-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 5px 12px;
  align-items: baseline;
}
.cd-label { color: var(--muted); font-size: 0.81rem; }

/* ── Subscribed-To rows ──────────────────────────────────── */

.contact-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;            /* let action buttons drop to their own line instead of overflowing */
  row-gap: 4px;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  transition: background .12s;
}
.contact-link-row:last-child { border-bottom: none; }
.contact-link-row:hover { background: var(--brand-light); }

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  flex: 1;
  text-decoration: none;
  color: var(--text);
}
.contact-link:hover { text-decoration: none; color: var(--text); }
.contact-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 300;
}

/* ── Viral banner (share landing) ────────────────────────── */

.viral-banner {
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: white;
  padding: 22px 28px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(34,169,79,.22);
}
.viral-banner p  { color: rgba(255,255,255,.9); margin-bottom: 0; }
.viral-banner .viral-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-top: 14px;
}
.btn-on-dark {
  background: white;
  color: var(--brand-deeper);
  font-weight: 700;
  margin-top: 0;
}
.btn-on-dark:hover {
  background: #f0fdf4;
  color: var(--brand-deeper);
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.link-on-dark {
  color: rgba(255,255,255,.85);
  align-self: center;
  font-size: 0.88rem;
}
.link-on-dark:hover { color: white; text-decoration: underline; }

/* ── Field row ───────────────────────────────────────────── */

.field-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  background: var(--surface);
}
.field-row > div { flex: 1; }
.field-row label { margin-top: 0; }

/* ── Profile nav card (My Info page) ────────────────────── */

.profile-nav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition: background .12s, border-color .12s;
}
.profile-nav-card:hover {
  background: var(--brand-light);
  border-color: var(--brand-border);
  text-decoration: none;
  color: var(--text);
}
.profile-nav-card:last-of-type { margin-bottom: 0; }

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  margin-top: 48px;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Profile type picker ──────────────────────────────────── */

.type-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 6px;
}

.type-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: border-color .14s, box-shadow .14s, background .12s;
  cursor: pointer;
}
.type-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34,169,79,.12);
  background: var(--brand-light);
  text-decoration: none;
  color: var(--text);
}
.type-card.premium { border-style: dashed; }
.type-card.premium:hover { border-style: solid; }

.type-card-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }

.type-card-body { flex: 1; min-width: 0; }
.type-card-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.type-card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

.type-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  flex-shrink: 0;
  align-self: flex-start;
  white-space: nowrap;
}
.type-card-badge.free { background: var(--brand-light); color: var(--brand-deeper); }
.type-card-badge.paid { background: #fef3c7; color: #92400e; }

/* ── Premium banner (profile creation form) ──────────────── */

.premium-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fef9e7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #78350f;
  margin-top: 16px;
  line-height: 1.5;
}
.premium-banner-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

.subtype-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
}
.subtype-badge.premium { background: #fef3c7; color: #92400e; }
.subtype-badge.free-badge { background: var(--brand-light); color: var(--brand-deeper); }

/* ── Profile premium info card (profile edit page) ───────── */

.profile-subtype-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.profile-subtype-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fef9e7;
  border-bottom: 1px solid #fde68a;
}
.profile-subtype-card-body { padding: 14px 16px; }
.profile-subtype-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 12px;
  font-size: 0.87rem;
  align-items: baseline;
}
.profile-subtype-row + .profile-subtype-row { margin-top: 6px; }
.profile-subtype-label { color: var(--muted); font-size: 0.82rem; }
.profile-subtype-val { font-family: monospace; font-size: 0.87rem; color: var(--text); }

/* ── Feature preview box (profile_new paid form) ─────────── */

.feature-preview-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px 16px;
  margin-top: 16px;
}
.feature-preview-label {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text-sec);
}
.feature-preview-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 4px 12px;
  font-size: 0.85rem;
  margin-top: 4px;
}
.feature-preview-key { color: var(--muted); }
.feature-preview-val { font-family: monospace; color: var(--text); }

/* ── Custom fields locked card (free tier) ───────────────────────────────── */

.custom-fields-locked {
  cursor: pointer;
  user-select: none;
  transition: background .12s;
  border-radius: 4px;
  padding: 2px;
  margin: -2px;
}
.custom-fields-locked:hover {
  background: #fef9e7;
}

/* ── Public list — spreadsheet table ─────────────────────────────────────── */

.list-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  white-space: nowrap;
}

.list-table thead th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 9px 14px;
  border-bottom: 2px solid var(--border);
  text-align: left;
  position: sticky;
  top: 0;
}

.list-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.list-table tbody tr:last-child { border-bottom: none; }
.list-table tbody tr:hover { background: var(--brand-light); }

.list-table tbody td {
  padding: 9px 14px;
  color: var(--text);
  vertical-align: top;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-table-name-col {
  min-width: 160px;
  max-width: 220px !important;
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 1;
  border-right: 1px solid var(--border);
}
.list-table thead .list-table-name-col {
  background: var(--surface-alt);
  z-index: 2;
}
tbody tr:hover .list-table-name-col { background: var(--brand-light); }

.list-table-bio {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-top: 2px;
}

.list-table-link-col {
  width: 36px;
  text-align: center;
  border-left: 1px solid var(--border);
}
.list-table-link-col a {
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
}
.list-table-link-col a:hover { color: var(--brand); }

/* ── Dev / Prototype banner ──────────────────────────────────────────────── */

.dev-banner {
  background: #1e1b4b;
  color: #a5b4fc;
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .35rem 1.5rem;
  font-family: 'Courier New', monospace;
}
.dev-banner span:first-child {
  background: #6366f1;
  color: #fff;
  font-weight: 700;
  font-size: .7rem;
  padding: .1rem .45rem;
  border-radius: 4px;
  letter-spacing: .04em;
}
.dev-banner a {
  color: #a5b4fc;
  text-decoration: underline;
  margin-left: auto;
}
.dev-banner a:hover { color: #fff; }

/* ── Switch User page ────────────────────────────────────────────────────── */

.su-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.su-row:last-child { border-bottom: none; }
.su-row:hover { background: var(--brand-light); }
.su-row-current { background: var(--surface-alt); }
.su-row-info { display: flex; align-items: center; gap: .75rem; }

.su-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.su-row-current .su-avatar { background: var(--muted); }

.su-name { font-size: .9rem; font-weight: 600; color: var(--text); }
.su-email { font-size: .8rem; color: var(--muted); }

.su-current-badge {
  font-size: .72rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: .15rem .55rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ── Communities ─────────────────────────────────────────────── */

/* Community summary card (dashboard) */
.community-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.community-summary-card:last-child { border-bottom: none; }
.community-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.community-summary-body { flex: 1; min-width: 0; }
.community-summary-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.community-summary-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* Role badge */
.role-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .1rem .5rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.role-badge.role-owner   { background: #fef9c3; border-color: #fde047; color: #713f12; }
.role-badge.role-admin   { background: var(--brand-light); border-color: var(--brand-border); color: var(--brand-deeper); }
.role-badge.role-moderator { background: #ede9fe; border-color: #c4b5fd; color: #4c1d95; }

/* Member card grid (card layout) */
.member-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.member-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: box-shadow .15s;
}
.member-card:hover { box-shadow: var(--shadow-md); }
.member-card-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.member-card-name  { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.member-card-title { font-size: 0.78rem; color: var(--muted); }
.member-card-detail { font-size: 0.78rem; color: var(--text-sec); }
.member-card-link  {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.member-card-link:hover { color: var(--brand-dark); text-decoration: underline; }

/* Community detail tabs */
.community-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.community-tab {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: color .15s, border-color .15s;
}
.community-tab:hover { color: var(--text); }
.community-tab.active { color: var(--brand); border-color: var(--brand); font-weight: 600; }

/* Pending notice badge */
.pending-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Invite token box */
.invite-token-box {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.82rem;
  word-break: break-all;
  color: var(--text-sec);
  margin-top: 6px;
}

/* Danger zone */
.danger-zone {
  border: 1px solid var(--danger-border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 24px;
  background: #fff8f8;
}
.danger-zone h3 { color: var(--danger); margin: 0 0 8px; font-size: 0.9rem; }

/* Alert styles */
.alert-error {
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
}
.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════════════════════
   Apple-style refresh (2026)
   Calmer, more typographic, more whitespace, soft materials.
   Appended last so it refines the core components via the cascade.
   ═══════════════════════════════════════════════════════════════ */

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Helvetica Neue", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem;    font-weight: 700; letter-spacing: -0.022em; line-height: 1.14; margin: 0 0 12px; }
h2 { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.018em; line-height: 1.24; margin: 0 0 8px; }
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em;  margin: 0 0 6px; }

a { transition: opacity .15s, color .15s; }
a:hover { text-decoration: none; opacity: .82; }

.container { max-width: 840px; margin: 44px auto; padding: 0 22px; }

/* Cards — roomy, hairline border, soft diffuse shadow, large radius */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* Navbar — translucent material with hairline underline */
.navbar {
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.nav-links a { border-radius: 980px; font-weight: 500; }

/* Buttons — pill shaped, single accent, gentle press */
.btn {
  border-radius: 980px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: transform .12s ease, opacity .15s, background .15s;
}
.btn:hover  { opacity: .92; text-decoration: none; }
.btn:active { transform: scale(0.975); }
.btn-secondary {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid transparent;
}
.btn-secondary:hover { background: #e6e6ea; opacity: 1; }

/* Inputs — rounded, hairline, gentle focus ring */
input, select, textarea, .input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus, .input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,168,107,0.20);
}

/* Brand logo artwork */
.brand-logo { height: 30px; width: auto; display: block; }
.hero-logo-img { height: 84px; width: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 20px rgba(0,168,107,.22)); }
.viral-logo { height: 34px; width: auto; display: block; margin: 0 auto 12px; }

/* Badges & pills */
.badge { border-radius: 980px; font-weight: 600; letter-spacing: 0; }

/* Section tabs */
.sub-nav a, .community-tab, .page-nav-link { letter-spacing: -0.01em; }

/* List rows — hairline separators, comfortable rhythm */
.list-item { border-color: var(--border); }

/* Footer */
.site-footer { color: var(--muted); }

/* ── Privacy nutrition label ─────────────────────────────── */
.nutrition-label { background: var(--surface); }
.nl-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.nl-lock { font-size: 1.25rem; line-height: 1; margin-top: 2px; }
.nl-title { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.nl-sub { margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); }
.nl-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  align-items: baseline;
}
.nl-key { color: var(--muted); font-weight: 600; }
.nl-val { color: var(--text); }
.nl-fieldlist { color: var(--text-sec); }
@media (max-width: 520px) {
  .nl-row { grid-template-columns: 1fr; gap: 2px; }
}
.community-stat-alert { color: #b45309; font-weight: 600; }

/* ── List selection toolbar (copy emails / phones) ───────── */
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
}
.list-toolbar .select-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--brand-deeper);
}
.list-toolbar .select-all input { width: 16px; height: 16px; accent-color: var(--brand); }
.list-toolbar .select-count { font-size: 0.85rem; }
.list-toolbar .toolbar-spacer { flex: 1 1 auto; }

/* Per-row checkboxes */
.member-select { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.list-table-check-col { width: 34px; text-align: center; }
.member-card { position: relative; }
.member-card-check {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
  z-index: 1;
}

/* ── Billing / subscription tiers ────────────────────────── */
.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
}
.usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.usage-row:first-of-type { border-top: 0; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.plan-card {
  position: relative;
  background: var(--surface-2, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
}
.plan-card.plan-popular { border: 2px solid var(--brand); }
.plan-card.plan-current { border: 2px solid var(--brand-deeper); background: var(--brand-light); }
.plan-tag {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.plan-name { font-size: 1.05rem; font-weight: 600; }
.plan-price { font-size: 1.7rem; font-weight: 600; margin: 2px 0; }
.plan-price .muted { font-size: 0.9rem; font-weight: 400; }
.plan-tagline { font-size: 0.82rem; margin-bottom: 12px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 16px; }
.plan-features li { font-size: 0.85rem; padding: 4px 0; color: var(--text-sec); }
.plan-features li.off { color: var(--muted); }
.plan-features li.on { color: var(--text); }
.plan-btn { width: 100%; margin-top: auto; text-align: center; }

/* Downgrade chooser */
.chooser-count { font-size: 0.85rem; margin-bottom: 8px; }
.chooser-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.chooser-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  margin: 0;
  font-weight: normal;
}
.chooser-row:first-child { border-top: 0; }
.chooser-row input { width: 16px; height: 16px; accent-color: var(--brand); }
.chooser-name { flex: 1; }
.chooser-lock { font-size: 0.78rem; }
.chooser-row input:checked ~ .chooser-lock { visibility: hidden; }

/* ── Settings gear + hub ─────────────────────────────────── */
.nav-gear {
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
  text-decoration: none;
  opacity: 0.75;
}
.nav-gear:hover { opacity: 1; background: var(--brand-light); }
.nav-gear.active { opacity: 1; background: var(--brand-light); }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.settings-tile {
  display: block;
  background: var(--surface-2, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.12s ease;
}
.settings-tile:hover { border-color: var(--brand); }
.settings-tile-icon { font-size: 1.5rem; margin-bottom: 8px; }
.settings-tile-name { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.settings-tile-desc { font-size: 0.85rem; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE PHONE EXPERIENCE
   A bottom tab bar replaces the crowded top nav on small screens. All rules
   below are additive and scoped to the mobile breakpoint (or to new classes),
   so the desktop experience is unchanged.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hidden on desktop; shown under the mobile breakpoint. */
.mobile-tabbar { display: none; }

@media (max-width: 768px) {
  /* Swap the eight-link top nav for the bottom tab bar. */
  .navbar .nav-links { display: none; }

  .mobile-tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: var(--card, #ffffff);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mtab {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 8px 2px 6px; min-height: 56px;
    text-decoration: none; color: var(--muted);
    position: relative;
  }
  .mtab.active { color: var(--brand); }
  .mtab-ico { font-size: 1.3rem; line-height: 1; position: relative; display: inline-block; }
  .mtab-lbl { font-size: 0.64rem; letter-spacing: 0.01em; white-space: nowrap; }
  .mtab-badge {
    position: absolute; top: -7px; left: 13px;
    background: var(--danger, #c0392b); color: #fff;
    font-size: 0.58rem; font-weight: 700;
    min-width: 15px; height: 15px; line-height: 15px; text-align: center;
    border-radius: 8px; padding: 0 3px;
  }

  /* Keep page content (and the little site footer) clear of the fixed bar. */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

  /* Thumb-friendlier controls on touch screens. */
  .btn { padding: 11px 18px; }
  .btn-small { padding: 8px 13px; }

  /* Two-up tile grids collapse to a single column on phones. */
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr !important; }
}

/* ── Admin dashboard (operator-only pages) ─────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat-num { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.stat-lbl { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.stat-sub { font-size: 0.72rem; color: var(--muted); margin-top: 6px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.bar-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.bar { width: 62%; max-width: 34px; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 3px; }
.bar-val { font-size: 0.72rem; color: var(--muted); }
.bar-lbl { font-size: 0.66rem; color: var(--muted); white-space: nowrap; }

/* ── Contacts, iPhone-style (list + A–Z rail + detail) ─────────────────────── */
.icon-btn { display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--brand-light);color:var(--brand);border:1px solid var(--brand-border);font-size:1.05rem;text-decoration:none }
.icon-btn:hover { background:var(--brand);color:#fff }

.contact-search { width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-alt,#f2f2f7);margin-bottom:6px;font-size:0.95rem;box-sizing:border-box }

.contacts-scroller { position:relative; display:flex; align-items:flex-start; gap:6px }
.contacts-index { flex:1; min-width:0; }
.contacts-sect-head {
  position:sticky; top:0; z-index:1;
  background:var(--surface-alt,#f2f2f7); color:var(--muted);
  font-weight:700; font-size:0.75rem; letter-spacing:0.03em;
  padding:3px 8px; border-radius:5px; margin:8px 0 0;
}
.contact-row {
  display:flex; align-items:center; gap:12px;
  padding:8px 4px; min-height:52px;
  border-bottom:1px solid var(--border);
  text-decoration:none; color:var(--text);
}
.contact-row:hover { background:var(--surface-alt,#f7f7fa) }
.contact-row-name { flex:1; min-width:0; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }

/* Static (typed-in) contacts and their On/Not-on-LiveProfile status. */
.contact-static .contact-row-name { color: var(--muted); font-weight: 500; white-space: normal; }
.status-badge {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  vertical-align: middle;
}
.status-badge.status-on  { background: var(--brand-light); color: var(--brand-deeper); border: 1px solid var(--brand-border); }
.status-badge.status-off { background: #f2f2f4; color: var(--muted); border: 1px solid var(--border); }
.status-badge.status-pending { background: #fff4e5; color: #9a5b00; border: 1px solid #ffd9a8; }
.contact-row-arrow { color:var(--muted); font-size:1.3rem; flex-shrink:0 }

/* A–Z rail down the right edge (like iOS) */
.az-rail {
  position:sticky; top:12px; align-self:flex-start; flex-shrink:0;
  display:flex; flex-direction:column; align-items:center;
  z-index:5; padding:6px 4px; user-select:none;
  background:var(--card,#fff); border:1px solid var(--border);
  border-radius:12px; box-shadow:var(--shadow-sm,0 1px 4px rgba(0,0,0,0.08));
}
.az-letter { font-size:0.68rem; line-height:1.15; color:var(--brand); text-decoration:none; padding:1px 4px; font-weight:700 }
.az-letter.az-off { color:var(--muted); opacity:0.35; pointer-events:none; font-weight:600 }
.az-letter:hover { color:#fff; background:var(--brand); border-radius:4px }

/* Contact detail screen */
.contact-back { color:var(--brand); text-decoration:none; font-size:0.95rem; font-weight:500 }
.cd-row { display:flex; justify-content:space-between; gap:16px; padding:11px 4px; border-bottom:1px solid var(--border) }
.cd-row:last-child { border-bottom:none }
.cd-row-label { color:var(--muted); font-size:0.85rem; flex-shrink:0 }
.cd-row-value { text-align:right; word-break:break-word }

@media (max-width: 768px) {
  .az-rail { top:8px }
}

/* Linked/connected cards nested under a person in Contacts */
.contact-count { color:var(--muted); font-weight:400; font-size:0.82rem }
.contact-subrow {
  display:flex; align-items:center; gap:8px;
  padding:6px 4px 6px 46px; border-bottom:1px solid var(--border);
  text-decoration:none; color:var(--muted); font-size:0.9rem;
}
.contact-subrow:hover { background:var(--surface-alt,#f7f7fa) }
.contact-subrow-tick { color:var(--muted); font-size:0.95rem }
.contact-subrow-name { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text) }

.contact-related-label { font-size:0.66rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--muted); padding:6px 4px 2px 46px }
.contact-related { gap:8px }

/* ── Community Console: clean row list (replaces the dense card grid) ───────── */
.console-pending-bar {
  background:#fffbeb; border:1px solid #fde68a; color:#92400e;
  border-radius:10px; padding:10px 14px; margin-bottom:12px; font-size:0.9rem;
}
.console-list { display:flex; flex-direction:column; gap:10px; }
.console-row {
  display:flex; align-items:center; gap:14px; padding:13px 15px;
  border:1px solid var(--border); border-radius:12px; background:var(--card,#fff);
  text-decoration:none; color:var(--text);
}
.console-row:hover { border-color:var(--brand-border); background:var(--surface-alt,#f7f7fa); }
.console-ico {
  font-size:1.4rem; width:42px; height:42px; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--brand-light); border:1px solid var(--brand-border); border-radius:11px;
}
.console-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.console-name { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.console-sub { font-size:0.8rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.console-meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex-shrink:0; text-align:right; }
.console-count { font-size:0.8rem; color:var(--muted); white-space:nowrap; }
.console-pending { font-size:0.7rem; font-weight:700; color:#92400e; background:#fef3c7; border:1px solid #fde68a; border-radius:999px; padding:1px 9px; white-space:nowrap; }
.console-arrow { color:var(--muted); font-size:1.4rem; flex-shrink:0; }
@media (max-width: 520px) { .console-count { display:none; } }


/* Phones: profile row action buttons wrap to their own line cleanly */
@media (max-width: 600px) {
  .contact-name { min-width: 0; }
  .contact-link-row > div:last-child { margin-left: 52px; padding-bottom: 10px; }
}

/* Display-preferences: name-format radio options */
.name-format-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: border-color .12s, background .12s;
}
.name-format-option:hover { border-color: var(--brand-border); background: var(--brand-light); }
.name-format-option.selected { border-color: var(--brand); background: var(--brand-light); }
.name-format-option input { margin-top: 3px; flex-shrink: 0; }
.nfo-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nfo-title { font-weight: 600; }
.nfo-sample { font-size: 0.85rem; color: var(--muted); }

/* "Share my profile" — persistent, up-front nav action */
.nav-share {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--brand); color: #fff !important; font-weight: 600;
  white-space: nowrap; transition: background .12s;
}
.nav-share:hover, .nav-share.active { background: var(--brand-dark); color: #fff !important; }

/* Profile-edit tabbed layout */
.pe-tabs {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 0; margin-bottom: 12px;
  background: var(--surface, #fff); border-bottom: 1px solid var(--border);
}
.pe-tab {
  flex: 0 0 auto; padding: 8px 15px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface, #fff); color: var(--text, #1d1d1f);
  font-weight: 600; font-size: 0.88rem; cursor: pointer; white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
}
.pe-tab:hover { border-color: var(--brand-border); }
.pe-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pe-fieldgrid { display: grid; grid-template-columns: 1fr; gap: 2px 22px; }
@media (min-width: 680px) { .pe-fieldgrid { grid-template-columns: 1fr 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════════
   SIMPLIFICATION PASS (Sep 2026)
   Four-place nav + avatar menu, one banner at a time, community hero/stats,
   scrollable tabs, ⋯ menus, grouped settings list, collapsible Help.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Nav count bubble ── */
.nav-count {
  display:inline-block; min-width:18px; height:18px; line-height:18px; padding:0 5px;
  border-radius:9px; background:var(--danger); color:#fff; font-size:0.7rem; font-weight:700;
  text-align:center; margin-left:3px; vertical-align:1px;
}

/* ── Avatar menu ── */
.nav-menu { position:relative; margin-left:6px; }
.nav-menu > summary {
  list-style:none; cursor:pointer; display:flex; align-items:center; gap:4px;
  padding:3px 6px 3px 3px; border-radius:999px;
}
.nav-menu > summary::-webkit-details-marker { display:none; }
.nav-menu > summary:hover, .nav-menu[open] > summary { background:var(--brand-light); }
.nav-caret { color:var(--muted); font-size:0.7rem; }
.nav-menu-panel {
  position:absolute; right:0; top:calc(100% + 6px); min-width:230px; z-index:200;
  background:#fff; border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-md);
  padding:6px; display:flex; flex-direction:column;
}
.nav-menu-who { display:flex; flex-direction:column; padding:8px 10px 10px; border-bottom:1px solid var(--border); margin-bottom:4px; font-size:0.88rem; }
.nav-menu-who .muted { font-size:0.78rem; overflow:hidden; text-overflow:ellipsis; }
.nav-links .nav-menu-panel a, .nav-menu-panel button {
  display:block; text-align:left; width:100%; padding:8px 10px; border-radius:9px;
  font-size:0.9rem; color:var(--text); background:none; border:0; font-family:inherit; cursor:pointer;
}
.nav-menu-panel button:hover { background:var(--brand-light); color:var(--brand-dark); }
.nav-menu-panel form { margin:0; border-top:1px solid var(--border); margin-top:4px; padding-top:4px; }

/* ── Prototype strip: compact ── */
.dev-banner { padding:.25rem 1.5rem; gap:.75rem; }
.dev-who { background:none !important; color:#a5b4fc !important; font-weight:400 !important; padding:0 !important; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── One top banner ── */
.top-banner {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  max-width:840px; margin:14px auto -28px; padding:10px 14px;
  border-radius:12px; border:1px solid var(--border); background:#fff; font-size:0.9rem;
}
.top-banner.tone-ok   { background:var(--success-bg); border-color:var(--success-border); color:var(--success-text); }
.top-banner.tone-info { background:#eff6ff; border-color:#bfdbfe; color:#1e3a8a; }
.top-banner.tone-warn { background:#fffbeb; border-color:#fde68a; color:#78350f; }
.top-banner.tone-pink { background:#fdf2f8; border-color:#fbcfe8; color:#831843; }
.tb-ico { font-size:1.1rem; line-height:1; }
.tb-text { flex:1; min-width:180px; }
.tb-more { font-size:0.82rem; margin-left:4px; color:inherit; text-decoration:underline; opacity:.8; }
.tb-actions { display:flex; align-items:center; gap:8px; }
.tb-dismiss { color:inherit; opacity:.55; font-size:0.95rem; padding:4px 6px; border-radius:6px; text-decoration:none; }
.tb-dismiss:hover { opacity:1; text-decoration:none; background:rgba(0,0,0,.05); }
@media (max-width: 880px) { .top-banner { margin-left:16px; margin-right:16px; } }

/* ── Inbox "Needs your attention" ── */
.attn-row { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.attn-row:last-child { border-bottom:0; }
.attn-row .tb-text { color:var(--text); }

/* ── Community hero + stats ── */
.community-hero { display:flex; align-items:flex-start; gap:14px; flex-wrap:wrap; margin-bottom:10px; }
.community-hero-icon {
  font-size:1.9rem; width:58px; height:58px; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center;
  background:var(--brand-light); border:1px solid var(--brand-border); border-radius:16px;
}
.community-hero-body { flex:1; min-width:200px; }
.community-hero-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; flex-shrink:0; }
.community-stats-bar { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 14px; }
.community-stat {
  display:flex; align-items:baseline; gap:6px; padding:6px 12px;
  background:#fff; border:1px solid var(--border); border-radius:999px; font-size:0.85rem;
}
.community-stat-value { font-weight:700; color:var(--text); }
.community-stat-label { color:var(--muted); }

/* Tabs scroll sideways instead of wrapping into a pile on phones */
.community-tabs { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.community-tabs::-webkit-scrollbar { display:none; }
.community-tab { white-space:nowrap; flex-shrink:0; }
.community-tab.tab-manage { margin-left:auto; color:#92400e; }
.community-tab.tab-manage.active { color:#92400e; border-color:#d97706; }
.manage-subtabs { display:flex; gap:6px; overflow-x:auto; margin:-10px 0 16px; padding-bottom:2px; }
.manage-subtabs a {
  flex-shrink:0; white-space:nowrap; padding:6px 13px; border-radius:999px; font-size:0.84rem; font-weight:500;
  border:1px solid var(--border); background:#fff; color:var(--text-sec); text-decoration:none;
}
.manage-subtabs a.active { background:#fff7ed; border-color:#fdba74; color:#92400e; font-weight:600; }

/* ── ⋯ overflow menu (generic) ── */
.more-menu { position:relative; display:inline-block; }
.more-menu > summary {
  list-style:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:34px; padding:0 12px; border-radius:999px; background:var(--surface-alt);
  font-weight:700; font-size:1rem; color:var(--text); user-select:none;
}
.more-menu > summary::-webkit-details-marker { display:none; }
.more-menu[open] > summary { background:#e6e6ea; }
.more-menu-panel {
  position:absolute; right:0; top:calc(100% + 6px); z-index:150; min-width:240px;
  background:#fff; border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-md); padding:6px;
}
.more-menu-panel a, .more-menu-panel button {
  display:block; width:100%; text-align:left; padding:9px 10px; border-radius:9px; border:0; background:none;
  font:inherit; font-size:0.9rem; color:var(--text); cursor:pointer; text-decoration:none;
}
.more-menu-panel a:hover, .more-menu-panel button:hover { background:var(--brand-light); color:var(--brand-dark); text-decoration:none; }
.more-menu-panel form { margin:0; }
.more-menu-panel hr { border:0; border-top:1px solid var(--border); margin:4px 0; }
@media (max-width: 520px) { .more-menu-panel { left:auto; right:0; min-width:220px; } }

/* ── Grouped settings list (Settings / More) ── */
.settings-group { margin-bottom:18px; }
.settings-group-title { font-size:0.74rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); margin:0 6px 6px; font-weight:600; }
.settings-list { background:#fff; border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.settings-item { display:flex; align-items:center; gap:12px; padding:13px 16px; border-bottom:1px solid var(--border); color:var(--text); text-decoration:none; }
.settings-item:last-child { border-bottom:0; }
.settings-item:hover { background:var(--surface-alt); text-decoration:none; color:var(--text); }
.settings-ico { font-size:1.15rem; width:26px; text-align:center; flex-shrink:0; }
.settings-main { flex:1; min-width:0; display:flex; flex-direction:column; }
.settings-name { font-weight:600; font-size:0.95rem; }
.settings-sub { font-size:0.8rem; color:var(--muted); }
.settings-arrow { color:var(--muted); font-size:1.2rem; }
.settings-badge { font-size:0.7rem; font-weight:700; color:#92400e; background:#fef3c7; border-radius:999px; padding:1px 8px; }
.settings-item button { font:inherit; }

/* ── Help: collapsible answers ── */
.help-q { border-bottom:1px solid var(--border); }
.help-q:last-child { border-bottom:0; }
.help-q > summary { list-style:none; cursor:pointer; padding:12px 26px 12px 2px; font-weight:600; position:relative; }
.help-q > summary::-webkit-details-marker { display:none; }
.help-q > summary::after { content:'+'; position:absolute; right:4px; top:10px; color:var(--muted); font-size:1.1rem; font-weight:400; }
.help-q[open] > summary::after { content:'–'; }
.help-a { padding:0 2px 14px; color:var(--text-sec); font-size:0.92rem; }
.help-a .btn { margin-top:8px; }

/* ── Friendly pills ── */
.pill { display:inline-block; font-size:0.72rem; font-weight:600; border-radius:999px; padding:1px 9px; background:var(--surface-alt); color:var(--text-sec); white-space:nowrap; }
.pill-green { background:var(--brand-light); color:var(--brand-deeper); }
.pill-amber { background:#fef3c7; color:#92400e; }

/* ── Generic stacked row that never squeezes text on phones ── */
.row-stack { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.row-stack:last-child { border-bottom:0; }
.row-stack-main { flex:1 1 220px; min-width:0; }
.row-stack-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
@media (max-width: 600px) {
  .row-stack-actions { flex-basis:100%; }
}
@media (max-width: 600px) {
  .card { padding: 18px; border-radius: 16px; }
  .container { margin-top: 24px; padding: 0 14px; }
  .row-stack-actions form:first-child { flex: 1 1 auto; }
  .row-stack-actions select { flex: 1 1 auto; min-width: 0; }
  h1 { font-size: 1.4rem; }
}
.console-flags { display:flex; gap:4px; flex-wrap:wrap; margin-top:3px; }
.page-header { margin-bottom: 16px; }
/* Softer destructive buttons: red text, not a red slab, for everyday row actions */
.btn-small.btn-danger { background: var(--surface-alt); color: var(--danger); border: 1px solid transparent; }
.btn-small.btn-danger:hover { background: var(--danger-light); color: var(--danger); }
@media (max-width: 600px) {
  .top-banner { margin-bottom: -8px; }
  .community-hero-icon { width:46px; height:46px; font-size:1.5rem; border-radius:13px; }
  .community-hero-actions { flex-basis:100%; }
}
/* Badges read as words, not shouting codes */
.badge { text-transform: none; letter-spacing: 0; font-size: 0.72rem; }
.badge.private { background: #fef3c7; color: #92400e; border-color: #fde68a; }
/* My info form */
.fields-h { margin-top:22px; padding-bottom:6px; border-bottom:1px solid var(--border); font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; color:var(--muted); }
.more-fields { margin-top:18px; border:1px dashed var(--border-strong); border-radius:12px; padding:10px 14px; }
.more-fields > summary { cursor:pointer; font-weight:600; color:var(--brand-deeper); font-size:0.92rem; }
.verify-line { flex-basis:100%; display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:0.8rem; margin:-2px 0 4px 128px; }
.verify-ok { color:var(--brand-deeper); font-weight:600; }
.verify-link { background:none; border:0; padding:0; color:var(--brand); font-weight:600; cursor:pointer; font:inherit; font-size:0.82rem; }
.save-bar { position:sticky; bottom:0; background:linear-gradient(transparent, #fff 30%); padding:18px 0 6px; margin-top:10px; }
@media (max-width: 768px) { .save-bar { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); } .verify-line { margin-left:0; } }
.start-steps { display:flex; gap:6px; justify-content:center; margin:0 0 14px; flex-wrap:wrap; }
.start-steps span { font-size:0.8rem; padding:4px 11px; border-radius:999px; background:var(--surface-alt); color:var(--muted); font-weight:600; }
.start-steps span.on { background:var(--brand); color:#fff; }
.start-steps span.done { background:var(--brand-light); color:var(--brand-deeper); }
.pick-row { display:flex; align-items:center; gap:10px; padding:8px 4px; border-bottom:1px solid var(--border); cursor:pointer; font-weight:500; margin:0; }
.pick-row:hover { background:var(--surface-alt); }
.pick-row input { width:18px; height:18px; margin:0; accent-color:var(--brand); }
@media (max-width: 560px) {
  .field-row { flex-direction: column; align-items: stretch; }
  .field-row > div, .field-row .field-group { width: 100%; }
}
input[type=search] { width:100%; padding:10px 14px; font-size:0.95rem; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-alt); font-family:inherit; }
/* Email/phone rows in My info */
.repeat-row input.input { padding:10px 12px; font-size:0.95rem; margin:0; }
@media (max-width: 600px) {
  .repeat-row input[name$="_label[]"] { flex:0 0 92px !important; }
  .repeat-row input[name$="_value[]"] { min-width:0 !important; flex:1 1 150px !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CALLING CARD — a card looks and behaves like a business card
   ═══════════════════════════════════════════════════════════════════════════ */
.bizcard {
  position:relative; max-width:440px; margin:0 auto; aspect-ratio:7 / 4;
  display:flex; flex-direction:column; background:#fff; border-radius:18px; overflow:hidden;
  border:1px solid var(--border);
  box-shadow:0 18px 40px rgba(10,70,45,.14), 0 3px 8px rgba(0,0,0,.06);
}
.bizcard-band { height:12px; flex-shrink:0; background:linear-gradient(90deg, var(--grad-from), var(--grad-to)); }
.bizcard-body { flex:1; display:flex; align-items:center; gap:18px; padding:18px 24px; min-width:0; }
.bizcard-photo { flex-shrink:0; }
.bizcard-text { min-width:0; }
.bizcard-name { font-size:1.5rem; font-weight:800; letter-spacing:-0.02em; line-height:1.15; color:var(--text); overflow-wrap:anywhere; }
.bizcard-title { margin-top:5px; color:var(--text-sec); font-size:0.95rem; line-height:1.3; }
.bizcard-org { margin-top:2px; font-weight:600; color:var(--brand-deeper); font-size:0.95rem; line-height:1.3; }
.bizcard-foot {
  display:flex; justify-content:space-between; align-items:center; gap:8px; flex-shrink:0;
  padding:9px 24px; border-top:1px dashed var(--border); font-size:0.74rem; color:var(--muted); background:var(--surface);
}
.bizcard-live { display:inline-flex; align-items:center; gap:6px; }
.bizcard-dot { width:7px; height:7px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 3px rgba(0,168,107,.18); }
.bizcard-kind { font-weight:700; text-transform:uppercase; letter-spacing:0.08em; font-size:0.66rem; color:var(--brand-deeper); }
.bizcard-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:6px 4px; max-width:540px; margin:16px auto 0; }
.bizcard-action {
  display:flex; flex-direction:column; align-items:center; gap:5px; width:72px;
  text-decoration:none; color:var(--brand-deeper); font-size:0.74rem; font-weight:600; text-align:center;
}
.bizcard-action:hover { text-decoration:none; color:var(--brand-dark); }
.bizcard-action .ico {
  width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.25rem; background:var(--brand-light); border:1px solid var(--brand-border); transition:transform .12s, background .12s;
}
.bizcard-action:hover .ico { background:#dcf3e7; transform:translateY(-1px); }
.bizcard-big { max-width:520px; }
.bizcard-big .bizcard-name { font-size:1.8rem; }
@media (max-width: 420px) {
  .bizcard-body { gap:14px; padding:14px 18px; }
  .bizcard-name { font-size:1.3rem; }
  .bizcard-title, .bizcard-org { font-size:0.86rem; }
  .bizcard-foot { padding:8px 18px; }
  .bizcard-action { width:64px; }
}

/* Receiving a card */
.handover { max-width:520px; margin:0 auto; }
.handover-head { text-align:center; margin:4px 0 18px; }
.handover-head h1 { font-size:1.35rem; margin:0; }
.handover-note {
  position:relative; max-width:440px; margin:14px auto 0; background:#fffdf5; border:1px solid #f1e3b5;
  border-radius:14px; padding:12px 16px; font-size:0.95rem; color:#4a3b12; font-style:italic;
}
.handover-note .who { display:block; font-style:normal; font-size:0.78rem; color:#8a6d1d; margin-top:4px; }
.handover-keep { max-width:440px; margin:18px auto 0; text-align:center; }
.handover-keep .btn { width:100%; font-size:1.02rem; padding:13px 18px; }
.handover-details { max-width:520px; margin:18px auto 0; }
.kept-badge { display:inline-flex; align-items:center; gap:6px; color:var(--brand-deeper); font-weight:700; }

/* Show my card (full screen) */
.show-screen { min-height:100vh; margin:0; background:radial-gradient(circle at 30% 0%, #2c8f59 0%, #155c38 55%, #0c3b24 100%); color:#fff; display:flex; flex-direction:column; align-items:center; padding:18px 16px 28px; box-sizing:border-box; }
.show-top { width:100%; max-width:520px; display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.show-top a { color:#e6fff1; font-weight:600; text-decoration:none; font-size:0.95rem; }
.show-qr { background:#fff; border-radius:18px; padding:14px; margin:18px auto 8px; line-height:0; box-shadow:0 12px 30px rgba(0,0,0,.25); }
.show-hint { color:#d7f5e4; font-size:0.9rem; text-align:center; margin:4px 0 14px; }
.show-switch { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; max-width:520px; }
.show-switch a { color:#fff; border:1px solid rgba(255,255,255,.35); border-radius:999px; padding:6px 14px; font-size:0.86rem; text-decoration:none; }
.show-switch a.on { background:#fff; color:#155c38; font-weight:700; }
.show-actions { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; justify-content:center; }
.show-actions a { background:rgba(255,255,255,.14); color:#fff; border-radius:999px; padding:9px 16px; font-weight:600; text-decoration:none; font-size:0.9rem; }
/* Date pickers & field hints (My info) */
.date-picker { display:flex; gap:6px; }
.date-picker select { flex:1.4; min-width:0; }
.date-picker select + select { flex:0.8; }
.date-picker input { flex:0.9; min-width:0; }
.field-hint { font-size:0.78rem; color:var(--muted); margin-top:4px; }
.field-warn { font-size:0.8rem; color:#92400e; background:#fffbeb; border:1px solid #fde68a; border-radius:8px; padding:5px 9px; margin-top:6px; }
