:root {
  --bg: #0c0a09;
  --surface: #1c1917;
  --border: #292524;
  --accent: #d97706;
  --accent-hover: #f59e0b;
  --accent-muted: rgba(217, 119, 6, 0.12);
  --text: #fafaf9;
  --text-secondary: #a8a29e;
  --text-muted: #a39e99;
  --success: #22c55e;
  --error: #ef4444;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217,119,6,0.06) 0%, transparent 70%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.container {
  max-width: 440px;
  width: 100%;
  animation: fadeUp 0.5s var(--spring);
}
.container.no-entrance { animation: none; }
.container.wide { max-width: 720px; }
.container.landing { max-width: 600px; }
.dash-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .dash-grid { grid-template-columns: 1fr 260px; align-items: start; }
}
@media (max-width: 639px) {
  .dash-sidebar { order: 1; }
  .dash-sidebar .share-card { padding: 1.25rem; }
}

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes dividerIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes checkIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Card */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, var(--surface) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-top-color: rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Typography */
.name {
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.name-sm {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 400;
}
.headline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: 0.35rem;
  letter-spacing: 0.01em;
}
h2 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

/* Forms */
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
input[type="text"], input[type="url"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
input::placeholder { color: var(--text-muted); font-weight: 300; }
button, .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(180deg, #e8890d 0%, var(--accent) 100%);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s var(--spring);
  letter-spacing: 0.01em;
  will-change: transform;
  touch-action: manipulation;
  min-height: 44px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
button:hover, .btn:hover { background: var(--accent-hover); }
button:active, .btn:active { transform: scale(0.97); }
.full { display: block; width: 100%; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text);
  font-weight: 400;
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

/* Hints & links */
.hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
  font-weight: 300;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a.btn:hover, a.btn-ghost:hover, a.dash-name-link:hover, a.qr-back:hover, a.edit-back:hover, a.delete-account-link:hover, a.preview-link:hover { text-decoration: none; }
.error { color: var(--error); font-size: 0.85rem; text-align: center; margin-bottom: 1rem; }

/* ===== Profile page (the digital business card) ===== */
.profile {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
}
.profile .name {
  margin-bottom: 0;
  font-size: 2.5rem;
}
.profile form { margin-top: 1.5rem; text-align: left; }

/* Profile staggered entrance */
.profile > .avatar {
  opacity: 0;
  animation: scaleIn 0.6s var(--spring) forwards;
  animation-delay: 0ms;
}
.profile > .name {
  opacity: 0;
  animation: fadeUp 0.5s var(--spring) forwards;
  animation-delay: 80ms;
}
.profile > .headline {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 160ms;
}
.profile > .divider {
  opacity: 0;
  animation: fadeIn 0.01s ease forwards;
  animation-delay: 280ms;
}
.profile > .divider::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  animation: dividerIn 0.4s var(--spring) forwards;
  animation-delay: 280ms;
}
.profile > .profile-form-wrap {
  opacity: 0;
  animation: fadeUp 0.5s var(--spring) forwards;
  animation-delay: 380ms;
}

.profile-form-wrap {
  padding-top: 1.25rem;
  margin-top: 0;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}
.profile-form-wrap .hint {
  display: none;
}

/* Profile trust footer */
.profile-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 300;
  opacity: 0.7;
}
.profile-footer .lock-icon {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  flex-shrink: 0;
}
.profile-footer-dot {
  opacity: 0.4;
}
.profile-footer-brand {
  font-family: var(--serif);
  color: var(--accent);
  opacity: 0.7;
  font-size: 0.75rem;
}

.divider {
  width: 32px; height: 2px;
  background: transparent;
  margin: 1.25rem auto 0;
  border-radius: 1px;
  overflow: hidden;
}

/* Avatar */
.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 2px solid rgba(217,119,6,0.2);
  background-color: var(--border);
  box-shadow: 0 0 28px rgba(217,119,6,0.12), 0 4px 12px rgba(0,0,0,0.3);
}
.avatar img, .share-avatar img, .qr-avatar img, .edit-photo-preview img, .onboard-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--accent);
  background-color: var(--accent-muted);
}

/* Connected page */
.connected { text-align: center; padding: 2rem 1.5rem; }
.connected .name {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}
.connected-subtitle { color: var(--text-secondary); font-weight: 300; margin-bottom: 1.75rem; font-size: 0.9rem; }

/* Connected redirect */
.redirect-wrap { margin-top: 1rem; text-align: center; }
.progress-bar {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 50ms linear;
}
.redirect-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  min-height: 1rem;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.redirect-text.visible { opacity: 1; }
.stay-link {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  opacity: 0.6;
  min-height: 44px;
  line-height: 44px;
  touch-action: manipulation;
}
.stay-link:hover { opacity: 1; }
.create-own-card {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.create-own-link-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 0.35rem;
}
.create-own-card a { font-size: 0.9rem; font-weight: 500; }

/* Check ring */
.check-ring {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.check-ring svg {
  width: 32px; height: 32px;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.4s ease-out 0.3s forwards;
}

/* ===== Homepage ===== */
.hero-title {
  font-family: var(--serif);
  font-size: 3.25rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 40px rgba(217,119,6,0.06);
}
/* ===== Landing page ===== */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 3.5rem;
}
.landing-nav-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
}
.landing-nav-brand:hover { color: var(--text); text-decoration: none; }
.landing-nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bg);
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(180deg, #e8890d 0%, var(--accent) 100%);
  border-radius: 8px;
  transition: background 0.2s, transform 0.1s var(--spring);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.landing-nav-cta:hover {
  background: var(--accent-hover);
  color: var(--bg);
  text-decoration: none;
}
.landing-nav-cta:active { transform: scale(0.97); }
.landing-nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.landing-hero {
  text-align: center;
  padding: 0 0 1.5rem;
}
.landing-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.landing-headline {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 0 60px rgba(217,119,6,0.08);
}
.headline-break {
  display: block;
}
.landing-subtitle {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-top: 0.75rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.landing-hero-cta {
  margin-top: 1.75rem;
}
.landing-hero-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.landing-preview {
  text-align: center;
  padding: 0 0 2rem;
  position: relative;
}
.preview-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(217,119,6,0.13) 0%, transparent 70%);
  pointer-events: none;
  will-change: transform;
}
.preview-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.6rem 0.85rem;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.preview-bar-url {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-left: 0.5rem;
  opacity: 0.6;
}
.preview-frame {
  display: inline-block;
  max-width: 320px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.4);
}
.preview-frame .profile {
  padding: 2rem 1.5rem 1.5rem;
  pointer-events: none;
}
.preview-frame .profile > .avatar,
.preview-frame .profile > .name,
.preview-frame .profile > .headline,
.preview-frame .profile > .divider,
.preview-frame .profile > .profile-form-wrap {
  opacity: 1;
  animation: none;
}
.preview-avatar {
  width: 72px;
  height: 72px;
  font-size: 1.5rem;
}
.preview-name {
  font-size: 2rem;
}
.preview-input-wrap {
  text-align: left;
}
.preview-fake-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 0.85rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
.preview-frame .profile > .divider::after {
  transform: scaleX(1);
  animation: none;
}

.landing-steps {
  padding: 1.5rem 2rem 2.5rem;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 0.5rem;
}
.steps-rule {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 auto 2rem;
}
.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how-expanded {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.how-expanded-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.how-expanded-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.how-expanded-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.45;
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.trust-item svg {
  opacity: 0.5;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .trust-strip {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

.landing-signup {
  padding: 0 0 2rem;
}
.signup-header {
  text-align: center;
  margin-bottom: 1.25rem;
}
.signup-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 400;
}
.signup-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 0.25rem;
}
.linkedin-signin-btn {
  background: linear-gradient(180deg, #0a78b5 0%, #0966a0 100%);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.linkedin-signin-btn:hover { background: #0a78b5; color: #fff; }
.signup-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}
.signup-divider::before,
.signup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
#signup .card {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  border-color: rgba(217,119,6,0.1);
  border-top-color: rgba(217,119,6,0.15);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25), 0 0 48px rgba(217,119,6,0.04), inset 0 1px 0 rgba(255,255,255,0.03);
}

.landing-footer {
  text-align: center;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.landing-footer-brand {
  font-family: var(--serif);
  color: var(--text-secondary);
  font-size: 1rem;
}
.landing-footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
  opacity: 0.6;
  margin-top: 0.35rem;
}
.landing-footer-link {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: 0.5rem;
  display: inline-block;
}

@media (max-width: 560px) {
  .landing-nav { padding-bottom: 2.5rem; }
  .landing-headline { font-size: 2.75rem; }
  .landing-kicker { font-size: 0.7rem; }
  .landing-steps { padding: 1.5rem 1.25rem 2rem; }
  .preview-glow { width: 260px; height: 260px; }
  .how-expanded {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Homepage entrance */
.entrance-1 {
  opacity: 0;
  animation: scaleIn 0.6s var(--spring) forwards;
  animation-delay: 0ms;
}
.entrance-2 {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 100ms;
}
.entrance-3 {
  opacity: 0;
  animation: fadeUp 0.5s var(--spring) forwards;
  animation-delay: 200ms;
}
.entrance-4 {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 400ms;
}
.entrance-5 {
  opacity: 0;
  animation: fadeUp 0.5s var(--spring) forwards;
  animation-delay: 500ms;
}

/* Homepage loading state */
.loading-wrap {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
.loading-wrap.active { display: block; }
.loading-msg-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.loading-progress {
  animation: fillProgress 20s cubic-bezier(0.1, 0.4, 0.2, 1) forwards;
}
@keyframes fillProgress {
  0% { width: 0%; }
  30% { width: 40%; }
  70% { width: 70%; }
  100% { width: 90%; }
}
#signup-form-wrap { transition: opacity 0.3s ease; }
#signup-form-wrap.hiding { opacity: 0; pointer-events: none; }

/* Loader (legacy fallback) */
.loader {
  width: 40px; height: 40px; margin: 0 auto;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-card { text-align: center; padding: 3rem 2rem; }
.loading-msg { font-size: 1.5rem; margin-top: 1.5rem; }
.loading-sub { color: var(--text-muted); font-weight: 300; margin-top: 0.5rem; font-size: 0.85rem; }

/* ===== Dashboard ===== */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}
.day-group { margin-bottom: 1.75rem; }
.day-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.tap-row {
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.tap-row:hover { background: rgba(255,255,255,0.02); }
.tap-row + .tap-row { border-top: 1px solid rgba(41,37,36,0.5); }
.tap-row-link {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.25rem;
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--accent);
}
.tap-row-link:hover { text-decoration: none; }
.tap-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tap-li-icon {
  opacity: 0.35;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.tap-row:hover .tap-li-icon { opacity: 0.6; }
.tap-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.empty {
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 1.5rem;
  font-weight: 300;
  font-size: 0.9rem;
}
.empty-icon { opacity: 0.15; margin-bottom: 1rem; }
.empty-title { font-size: 0.95rem; color: var(--text); font-weight: 400; margin-bottom: 0.5rem; }
.empty-sub { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; line-height: 1.5; }
.onboarding-steps { text-align: left; margin: 1rem auto 0; max-width: 280px; }
.onboarding-step { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }
.step-num { color: var(--accent); font-weight: 600; font-size: 0.75rem; flex-shrink: 0; }
.empty-cta { margin-top: 1.25rem; }

/* Onboarding (0 connections) */
.onboard {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  animation: fadeUp 0.5s var(--spring) both;
}
.onboard-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  background-color: var(--border);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboard-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.onboard-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.onboard-cta {
  font-size: 1rem;
  padding: 0.9rem;
  margin-bottom: 1.25rem;
}
.onboard-url-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.onboard-link-row {
  margin-bottom: 1.5rem;
}
.onboard-share {
  display: inline-flex;
  cursor: pointer;
}
.onboard-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.onboard-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}
.onboard-link:hover { color: var(--text); }

/* Dashboard stats bar */
.dash-stats {
  display: flex;
  gap: 2rem;
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-family: var(--serif); font-size: 1.5rem; color: var(--text); }
.stat-label { font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.onboard-views {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1rem;
  opacity: 0.7;
}

/* Tap row animated deletion */
.tap-row-removing {
  animation: rowRemove 0.3s var(--spring) forwards;
  overflow: hidden;
}
@keyframes rowRemove {
  to {
    opacity: 0;
    transform: translateX(-16px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* Staggered entrance for dashboard elements */
.entrance-stagger {
  opacity: 0;
  animation: fadeUp 0.5s var(--spring) forwards;
}
.stagger-0 { animation-delay: 0ms; }
.stagger-1 { animation-delay: 60ms; }
.stagger-2 { animation-delay: 120ms; }
.stagger-3 { animation-delay: 180ms; }
.stagger-4 { animation-delay: 240ms; }
.stagger-5 { animation-delay: 300ms; }
.stagger-6 { animation-delay: 360ms; }
.stagger-7 { animation-delay: 420ms; }
.stagger-8 { animation-delay: 480ms; }
.stagger-9 { animation-delay: 540ms; }
.stagger-10 { animation-delay: 600ms; }
.stagger-11 { animation-delay: 660ms; }
.stagger-12 { animation-delay: 720ms; }
.stagger-13 { animation-delay: 780ms; }
.stagger-14 { animation-delay: 840ms; }
.stagger-15 { animation-delay: 900ms; }
.stagger-16 { animation-delay: 960ms; }
.stagger-17 { animation-delay: 1020ms; }
.stagger-18 { animation-delay: 1080ms; }
.stagger-19 { animation-delay: 1140ms; }
.stagger-sidebar { animation-delay: 160ms; }

/* Share URL */
.share-url-wrap { position: relative; cursor: pointer; margin-bottom: 0.75rem; }
.share-url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--sans);
  font-weight: 300;
  transition: border-color 0.2s ease, transform 0.15s var(--spring);
  min-height: 44px;
}
.share-url:hover {
  border-color: var(--accent);
  background: rgba(217,119,6,0.03);
  transform: translateY(-1px);
}
.share-url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-url-hint { font-size: 0.6rem; color: var(--text-muted); text-align: center; opacity: 0.5; margin-top: -0.35rem; margin-bottom: 0.5rem; }
.share-url svg { flex-shrink: 0; opacity: 0.5; }
.copy-tip {
  position: absolute;
  top: -1.5rem;
  right: 0;
  font-size: 0.65rem;
  color: var(--success);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

/* Dashboard tap actions */
.tap-delete-btn {
  all: unset;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.2;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: opacity 0.15s, color 0.15s;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.tap-delete-btn:hover, .tap-delete-btn:active { opacity: 1; color: var(--error); }
@media (hover: hover) {
  .tap-delete-btn { opacity: 0; }
  .tap-row:hover .tap-delete-btn { opacity: 0.4; }
}
.tap-actions { display: flex; align-items: center; gap: 0.5rem; }
.tap-row > .tap-delete-btn { flex-shrink: 0; }
.new-badge { color: var(--success); font-size: 0.65rem; font-weight: 500; }

/* New taps banner */
.new-taps-banner {
  text-align: center; padding: 0.6rem;
  background: var(--accent-muted); border-radius: 10px;
  margin-bottom: 1rem; cursor: pointer;
  font-size: 0.85rem; color: var(--accent); font-weight: 500;
  animation: slideDown 0.4s var(--spring);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* Dashboard share sidebar */
.share-card { text-align: center; padding: 1.5rem; }
.share-card h2 { text-align: center; }
.share-card .btn-ghost { margin-top: 0.5rem; }
.share-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem; background-color: var(--border);
}
.share-avatar.avatar-initials {
  font-size: 1.25rem;
  background-color: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--accent);
}
.delete-account-link { display: block; text-align: center; font-size: 0.65rem; color: var(--text-muted); margin-top: 1.5rem; opacity: 0.4; transition: opacity 0.2s; min-height: 44px; line-height: 44px; touch-action: manipulation; }
.delete-account-link:hover { opacity: 1; color: var(--error); }
.dash-sub { color: var(--text-muted); font-size: 0.8rem; font-weight: 300; margin-top: 0.15rem; }
.export-link { text-align: right; margin-top: 1rem; }
.export-link a { font-size: 0.75rem; color: var(--text-muted); }
.load-older { text-align: center; margin-top: 1rem; }
.load-older .btn { font-size: 0.8rem; padding: 0.5rem 1.25rem; }
.preview-link { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
.dash-name-link { color: var(--text); text-decoration: none; }

/* ===== QR page ===== */
.qr-wrap { text-align: center; padding: 1.5rem 1rem; }
.qr-frame {
  display: inline-block;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  margin: 1.25rem 0 0.5rem;
}
.qr-frame img {
  display: block;
  border-radius: 4px;
}
/* QR primary actions (Share + Copy) */
.qr-actions-primary {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.qr-actions-primary .btn { flex: 1; }
/* QR secondary actions (Save, Wallpaper, Print) */
.qr-actions-secondary {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.qr-action-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.qr-action-row {
  all: unset;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s var(--spring);
  box-sizing: border-box;
  min-height: 44px;
  touch-action: manipulation;
}
.qr-action-row:hover { background: rgba(217,119,6,0.04); }
.qr-action-row:active { transform: scale(0.98); }
.qr-action-row svg { flex-shrink: 0; opacity: 0.6; transition: opacity 0.15s; }
.qr-action-row:hover svg { opacity: 0.85; }
.qr-action-primary { color: var(--accent); font-weight: 500; }
.qr-action-primary svg { opacity: 1; stroke: var(--accent); }
.qr-actions-secondary .qr-action-row { font-size: 0.85rem; padding: 0.7rem 1rem; }
.qr-actions-secondary .qr-action-row svg { opacity: 0.35; }
.qr-toast {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--success);
  height: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.qr-toast.visible { opacity: 1; }
.qr-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.75rem; background-color: var(--border);
  border: 2px solid var(--accent-muted);
}
.qr-avatar.avatar-initials {
  font-size: 1.5rem;
  background-color: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--accent);
}
.qr-scan-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}
.qr-back { display: block; text-align: center; margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.qr-back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  min-height: 44px;
}

/* Status pages */
.status-card { text-align: center; padding: 3rem 2rem; }
.status-card .name { font-size: 1.75rem; }
.status-card p { color: var(--text-muted); font-weight: 300; margin-top: 0.5rem; font-size: 0.9rem; }
.status-card .btn { margin-top: 1.5rem; }

/* ===== Edit profile ===== */
.edit-photo-preview {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem; background-color: var(--border);
  border: 2px solid var(--accent-muted);
}
.edit-photo-preview.avatar-initials {
  font-size: 1.5rem;
  background-color: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--accent);
}
.edit-back {
  display: block; text-align: center; margin-top: 1.25rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.success-msg {
  color: var(--success); font-size: 0.85rem; text-align: center;
  margin-bottom: 1rem;
}

/* Save checkmark */
.save-check {
  text-align: center;
  margin-bottom: 1rem;
}
.save-check-ring {
  width: 32px; height: 32px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(34,197,94,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.save-check-ring svg {
  width: 16px; height: 16px;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.3s ease-out 0.2s forwards;
}

/* Edit page entrance */
.edit-entrance > * {
  opacity: 0;
  animation: fadeUp 0.5s var(--spring) forwards;
}
.edit-entrance > *:nth-child(1) { animation-delay: 0ms; }
.edit-entrance > *:nth-child(2) { animation-delay: 60ms; }
.edit-entrance > *:nth-child(3) { animation-delay: 120ms; }
.edit-entrance > *:nth-child(4) { animation-delay: 180ms; }
.edit-entrance > *:nth-child(5) { animation-delay: 240ms; }
.edit-entrance > *:nth-child(6) { animation-delay: 300ms; }
.edit-entrance > *:nth-child(7) { animation-delay: 360ms; }
.edit-entrance > *:nth-child(8) { animation-delay: 420ms; }

/* Privacy page */
.privacy-title { font-size: 1.25rem; font-family: var(--serif); color: var(--text); margin-bottom: 0.25rem; }
.privacy-updated { font-size: 0.7rem; color: var(--text-muted); font-weight: 300; margin-bottom: 1.5rem; }
.privacy-content p { font-size: 0.85rem; color: var(--text-secondary); font-weight: 300; line-height: 1.6; margin-bottom: 1rem; }
.privacy-content strong { color: var(--text); font-weight: 500; }
.privacy-content code { background: var(--bg); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.8rem; }

/* Danger zone (edit page) */
.danger-zone {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Utility classes (reduce inline style surface) */
.hidden { display: none; }
.icon-inline { display: inline; vertical-align: -2px; margin-right: 0.4rem; }
.back-link-center { display: block; text-align: center; margin-top: 0.75rem; }
.hint-url-preview { margin-top: -0.5rem; margin-bottom: 0.75rem; }

/* Print */
@media print {
  body { background: #fff !important; padding: 0 !important; }
  .container { max-width: none !important; }
  .card { border: none !important; background: transparent !important; box-shadow: none !important; }
  .name-sm { color: #000 !important; }
  .headline { color: #333 !important; }
  .qr-url { color: #666 !important; }
  .no-print { display: none !important; }
}
