/* Rider QR — theme + form layouts (works even if Tailwind CDN is slow/offline) */
:root {
  --background: #0c0d10;
  --foreground: #f2f0eb;
  --surface: #16181e;
  --surface-2: #1c1f27;
  --muted: #9a968c;
  --border: #2a2d36;
  --accent: #e66a25;
  --accent-hover: #f07835;
  --danger: #dc2626;
  --warn: #f59e0b;
  --radius: 0.875rem;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Bebas Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.font-display {
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-red-300 { color: #fca5a5; }
.text-warn { color: var(--warn); }

/* ——— Buttons ——— */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost {
  color: var(--foreground);
  background: rgba(22, 24, 30, 0.9);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-primary:active,
.btn-ghost:active { transform: scale(0.98); }
.btn-primary.w-full,
.btn-ghost.w-full { width: 100%; }

/* Official Google sign-in style */
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.5rem;
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.28);
  color: #202124;
}
.btn-google:active {
  background: #f1f3f4;
  transform: scale(0.99);
}
.btn-google__icon,
.btn-google .landing-nav__g {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

/* Public profile action row */
.profile-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.profile-actions__private {
  flex: 1 1 100%;
  margin: 0;
  border-radius: 0.85rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: #fbbf24;
}
.profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.45rem 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 20, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.profile-action svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}
.profile-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.profile-action:active {
  transform: scale(0.97);
}
@media (max-width: 380px) {
  .profile-action {
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.68rem;
    padding: 0.4rem 0.2rem;
  }
  .profile-action svg {
    width: 1rem;
    height: 1rem;
  }
}

/* ——— Form controls ——— */
.label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.field,
input.field,
select.field,
textarea.field {
  display: block;
  width: 100%;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0a0b0e;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.field {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}
select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a968c' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
select.field option {
  background: #16181e;
  color: #f2f0eb;
}
.field::placeholder { color: #6d6a63; }
.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 106, 37, 0.18);
}
.field:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Native color / file polish */
input[type="color"].field,
input[type="color"].h-11 {
  height: 2.75rem;
  padding: 0.3rem;
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 0.55rem;
}
input[type="file"].field {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}
input[type="file"].field::file-selector-button {
  margin-right: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--foreground);
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  vertical-align: middle;
}

/* ——— Layout shells ——— */
.auth-shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.1rem 2rem;
  background:
    radial-gradient(ellipse at top, rgba(230, 106, 37, 0.22), transparent 52%),
    linear-gradient(180deg, #0c0d10 0%, #101218 100%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(22, 24, 30, 0.92);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.35rem 1.5rem;
}
.auth-card h1 {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 3rem);
  letter-spacing: 0.04em;
  line-height: 1;
}
.auth-card .auth-lead {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.auth-google {
  margin-top: 1.5rem;
}
.auth-card form {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.95rem;
}
.auth-card .auth-footer {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 1.1rem 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--border);
}

.page-shell {
  width: min(48rem, 100%);
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem;
}
.page-shell--wide {
  width: min(64rem, 100%);
}

.form-section {
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: rgba(22, 24, 30, 0.55);
  padding: 1.15rem 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
}
.form-section h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}
.form-section > .section-help {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: span 2; }
  .form-grid .span-3 { grid-column: 1 / -1; }
}

.form-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  background: rgba(12, 13, 16, 0.94);
  backdrop-filter: blur(10px);
}

.alert {
  margin: 1rem 0 0;
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
}
.alert-ok {
  border: 1px solid rgba(230, 106, 37, 0.35);
  background: rgba(230, 106, 37, 0.12);
  color: var(--accent);
}
.alert-err {
  border: 1px solid rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.12);
  color: #fca5a5;
}

.social-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .social-row {
    flex-direction: row;
    align-items: center;
  }
  .social-row select.field {
    max-width: 10rem;
    flex: 0 0 10rem;
  }
  .social-row input.field {
    flex: 1 1 auto;
  }
}

.upload-status {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
}
.upload-preview {
  display: block;
  width: 100%;
  height: 6rem;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  margin-bottom: 0.55rem;
  background: #0a0b0e;
}

/* ——— Site header ——— */
.app-header {
  border-bottom: 1px solid var(--border);
  background: rgba(22, 24, 30, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.app-header__inner {
  width: min(64rem, 100%);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.app-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

/* Strip / wide brand logo (full aspect ratio) */
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-logo--header {
  height: 2.35rem;
  width: auto;
  max-width: min(12rem, 42vw);
}
.brand-logo--auth {
  width: min(15rem, 85%);
  height: auto;
  margin-inline: auto;
}
.brand-logo--foot {
  height: 2.25rem;
  width: auto;
  max-width: 11rem;
  opacity: 0.9;
  margin-inline: auto;
}
.app-header__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.app-header .btn-primary,
.app-header .btn-ghost {
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
}

.list-card {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--surface);
  overflow: hidden;
}
.list-card li {
  list-style: none;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.list-card li:first-child { border-top: 0; }
@media (min-width: 640px) {
  .list-card li {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.empty-state {
  margin-top: 2rem;
  border: 1px dashed var(--border);
  border-radius: 1.1rem;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
}

.hero-glow {
  background: radial-gradient(ellipse at top, rgba(230, 106, 37, 0.28), transparent 55%);
}
.moto-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ——— Crop modal ——— */
.image-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.image-crop-modal.hidden { display: none !important; }
.image-crop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.image-crop-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(920px, 100%);
  max-height: min(92dvh, 900px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.image-crop-modal__head,
.image-crop-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}
.image-crop-modal__actions {
  border-bottom: 0;
  border-top: 1px solid var(--border);
}
.image-crop-modal__body {
  position: relative;
  min-height: 280px;
  height: min(58dvh, 520px);
  background: #0a0b0e;
}
.image-crop-modal__body img {
  display: block;
  max-width: 100%;
}

/* ——— Wizard ——— */
.wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(22, 24, 30, 0.55);
}
.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  opacity: 0.4;
}
.wizard-step.is-active,
.wizard-step.is-done { opacity: 1; }
.wizard-step__num {
  display: inline-flex;
  height: 1.8rem;
  width: 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0a0b0e;
  font-size: 0.75rem;
  font-weight: 700;
}
.wizard-step.is-active .wizard-step__num {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.wizard-step.is-done .wizard-step__num {
  border-color: rgba(230, 106, 37, 0.55);
  color: var(--accent);
}
.wizard-step__label {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.wizard-step.is-active .wizard-step__label { color: var(--foreground); }
.wizard-panel.hidden { display: none !important; }
@media (max-width: 560px) {
  .wizard-step__label { display: none; }
}

/* Compatibility helpers used by existing Tailwind classes in templates */
.hidden { display: none !important; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.min-h-dvh { min-height: 100dvh; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.35rem; }
.space-y-8 > * + * { margin-top: 1.75rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* ——— Mobile app shell (TikTok-style owner profile) ——— */
body.app-body {
  background: #000;
  overscroll-behavior: none;
  font-family: var(--font);
}

.app-onboard {
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(1.25rem + env(safe-area-inset-top)) 1rem calc(6.5rem + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.92)),
    url("../img/bg-default.webp") center/cover no-repeat;
}
.app-onboard__wrap {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}
.app-onboard__top {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.35rem 0.5rem 0.15rem;
}
.app-onboard__logo {
  display: block;
  width: min(15rem, 88%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}
.app-onboard__card {
  width: 100%;
  border-radius: 1.15rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(16, 17, 22, 0.92);
  backdrop-filter: blur(14px);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.app-onboard__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.app-onboard__title {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.app-onboard__lead {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.app-onboard__form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.25rem;
}
.app-onboard__submit {
  gap: 0.55rem;
}
.app-onboard__submit svg {
  flex-shrink: 0;
}
.app-onboard__hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.app-shell {
  position: relative;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: #09090b;
  padding-bottom: 5.5rem;
  overflow-x: hidden;
}
.app-shell__bg {
  position: fixed;
  inset: 0;
  max-width: 480px;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: saturate(0.85);
  pointer-events: none;
  z-index: 0;
}
.app-shell__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(9,9,11,0.75) 42%, #09090b 78%);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: rgba(9,9,11,0.72);
  backdrop-filter: blur(12px);
}
.app-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.app-topbar__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.35rem;
  width: 2.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.app-topbar__icon-btn:hover {
  background: rgba(255,255,255,0.1);
}
.app-topbar__icon-btn:active {
  transform: scale(0.96);
}
.app-topbar__center {
  text-align: center;
  min-width: 0;
}
.app-topbar__name {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-topbar__plate {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Compact privacy icon toggle in topbar */
.privacy-toggle {
  margin: 0;
  display: inline-flex;
}
.privacy-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.35rem;
  width: 2.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.privacy-toggle__btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.privacy-toggle.is-on .privacy-toggle__btn {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(37, 99, 235, 0.28);
  color: #93c5fd;
}

/* Private mode popup on public profile */
.private-modal[hidden] {
  display: none !important;
}
.private-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.private-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.private-modal__panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  border-radius: 1.15rem;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: #14151a;
  padding: 1.25rem 1.15rem 1.15rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.private-modal__icon {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}
.private-modal__panel h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  color: #93c5fd;
}
.private-modal__panel p {
  margin: 0.45rem 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.app-profile {
  position: relative;
  z-index: 1;
}

.app-toast {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 80;
  width: min(420px, calc(100% - 1.5rem));
  margin: 0;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(230, 106, 37, 0.4);
  background: rgba(20, 21, 26, 0.94);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%) translateY(-120%);
  opacity: 0;
  pointer-events: none;
}
.app-toast.is-in {
  animation: toast-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: auto;
}
.app-toast.is-out {
  animation: toast-out 0.35s ease forwards;
  pointer-events: none;
}
.app-toast--err {
  border-color: rgba(220, 38, 38, 0.45);
  color: #fecaca;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-120%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-120%);
  }
}

.tik-cover {
  position: relative;
  margin: 0 0 3.5rem;
  padding: 0;
  height: 11rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .tik-cover {
    height: 13rem;
  }
}
.tik-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tik-cover__fade {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(transparent, #09090b);
}

.tik-edit-fab {
  position: absolute;
  margin: 0;
  z-index: 2;
}
.tik-edit-fab {
  right: 0.75rem;
  bottom: 0.75rem;
}
.tik-edit-fab--avatar {
  right: -0.15rem;
  bottom: -0.1rem;
}
.tik-edit-fab__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 2px solid #09090b;
  background: rgba(255,255,255,0.92);
  color: #111;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.tik-edit-fab__btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.tik-identity {
  position: relative;
  margin-top: -6rem;
  padding: 0 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.profile-avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 0;
  background: #1a1a1f;
  box-shadow:
    0 0 0 4px var(--background, #0c0d10),
    0 0 0 7px var(--accent, #e66a25);
}
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  border-radius: 999px;
  line-height: 0;
}
.app-profile .profile-avatar {
  box-shadow:
    0 0 0 4px #09090b,
    0 0 0 7px var(--accent, #e66a25);
}
.tik-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem auto 0;
  max-width: 320px;
}
.tik-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.tik-stats strong {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font);
}
.tik-stats span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font);
}
.tik-bio,
.profile-bio {
  margin: 0.85rem auto 0;
  max-width: 26rem;
  position: relative;
  text-align: center;
  color: #9a968c;
  font-size: 0.8rem;
  line-height: 1.45;
  font-family: var(--font);
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.profile-bio__text {
  margin: 0;
  color: inherit;
  font: inherit;
  white-space: pre-line;
  word-wrap: break-word;
}
.profile-bio.is-clamped .profile-bio__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.profile-bio__more {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  cursor: pointer;
  vertical-align: baseline;
  transition: color 0.15s ease;
}
.profile-bio__more:hover {
  color: rgba(255, 255, 255, 0.7);
}
.profile-bio.is-clamped .profile-bio__more {
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 1.75rem;
  background: linear-gradient(90deg, transparent 0%, #09090b 42%);
}
.profile-bio.is-expanded .profile-bio__more {
  position: static;
  display: inline;
  margin-left: 0.35rem;
  padding-left: 0;
  background: none;
}
.profile-bio__more[hidden] {
  display: none !important;
}
/* Public page sits on --background */
.profile-bio.is-clamped:not(.tik-bio) .profile-bio__more {
  background: linear-gradient(90deg, transparent 0%, var(--background, #0c0d10) 42%);
}
.tik-btn-edit {
  appearance: none;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.15s ease, transform 0.15s ease;
}
.tik-btn-edit:hover {
  background: rgba(255,255,255,0.14);
}
.tik-btn-edit:active {
  transform: scale(0.96);
}

.app-complete {
  margin: 1rem 0.9rem 0;
  border-radius: 0.95rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 0.9rem;
}
.app-complete__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.app-complete__head strong {
  color: var(--accent);
  font-size: 1rem;
}
.app-complete__bar {
  margin-top: 0.55rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.app-complete__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff9a4d);
  border-radius: inherit;
}
.app-suggest {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.app-suggest__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.7rem;
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.25);
  color: #fff;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}
.app-suggest__plus {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}
.app-complete__done {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: #86efac;
}

.tik-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1rem 0.9rem 0;
}
.tik-social__item {
  /* legacy text chips — unused when social-btn is present */
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: color-mix(in srgb, var(--c) 85%, black);
}

/* Social icon buttons — glass layout */
.social-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}
.social-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  aspect-ratio: 1 / 1;
  padding: 0;
  margin: 0;
  text-decoration: none;
  color: #fff;
  border: 0;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.social-btn--sm {
  width: 2.75rem;
  height: 2.75rem;
}
.social-btn--md {
  width: 3.25rem;
  height: 3.25rem;
}
.social-btn--lg {
  width: 3.85rem;
  height: 3.85rem;
}
.social-btn--rounded,
.social-btn--square {
  border-radius: 0.375rem;
}
.social-btn--circle {
  border-radius: 999px;
}

.social-btn--white { color: #fff; }
.social-btn--black { color: #0a0a0a; }
.social-btn--brand { color: #fff; }

.social-btn__icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  pointer-events: none;
}
.social-btn--sm .social-btn__icon {
  width: 1.15rem;
  height: 1.15rem;
}
.social-btn--lg .social-btn__icon {
  width: 1.55rem;
  height: 1.55rem;
}
.social-btn:active {
  transform: scale(0.96);
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.tik-qr {
  margin: 1.25rem 0.9rem 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 0.85rem;
}
.tik-qr img {
  width: 88px;
  height: 88px;
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.35rem;
}
.tik-qr p {
  margin: 0 0 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
}

/* App analytics under QR */
.app-analytics {
  position: relative;
  z-index: 1;
  margin: 1rem 0.9rem 0;
  padding: 0.35rem 0.15rem 0.5rem;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.app-analytics__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.app-analytics__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.app-analytics__head span {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
.app-analytics__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.app-analytics__stat {
  padding: 0.35rem 0;
  text-align: center;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.app-analytics__stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.1;
}
.app-analytics__stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--muted);
}
.app-analytics__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.app-analytics__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}
.app-analytics__list li:last-child {
  border-bottom: 0;
}
.app-analytics__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.88);
  text-transform: capitalize;
}
.app-analytics__icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
  padding: 0;
}
.app-analytics__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  margin: 0 0.4rem;
  flex-shrink: 0;
}
.app-analytics__list strong {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  color: #fff;
}
.app-analytics__empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.app-sheet__style {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.app-sheet__style-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-sheet__form .span-2 {
  grid-column: 1 / -1;
}

/* Auto-hide dock — when hidden, only a bit of up-arrow peeks */
.app-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: min(22rem, calc(100% - 1.5rem));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
}
.app-dock__peek,
.app-dock .app-tabbar {
  pointer-events: auto;
}
.app-dock__peek {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  width: 2.5rem;
  height: 0.72rem;
  padding: 0;
  border: 0;
  border-radius: 0.65rem 0.65rem 0 0;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.28);
  transition: height 0.22s ease, background 0.2s ease;
}
.app-dock__peek svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
  margin-top: -0.05rem;
  flex-shrink: 0;
}
/* Peek arrow only when nav is hidden */
.app-dock:not(.is-hidden) .app-dock__peek {
  height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  box-shadow: none;
}

.app-tabbar {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.15rem;
  padding: 0.4rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 22, 0.72);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  transform-origin: bottom center;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, margin 0.28s ease, padding 0.28s ease;
}
.app-dock.is-hidden .app-tabbar {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem) scale(0.96);
  pointer-events: none;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  height: 0;
  border-width: 0;
  overflow: hidden;
}
.app-dock:not(.is-hidden) .app-tabbar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.app-tabbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  color: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: transparent;
  transition: color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.app-tabbar a svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}
.app-tabbar a:hover:not(.is-active) {
  color: rgba(255, 255, 255, 0.85);
}
.app-tabbar a.is-active {
  color: var(--accent, #e66a25);
  background: transparent;
  transform: translateY(-1px);
}
.app-tabbar a:active {
  transform: scale(0.94);
}

.app-sheet[hidden] { display: none !important; }
.app-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
}
.app-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.app-sheet__panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  max-height: min(88dvh, 720px);
  overflow: auto;
  border-radius: 1.1rem 1.1rem 0 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: 0;
  background: #14151a;
  padding: 0.6rem 1rem 1.25rem;
  box-shadow: 0 -20px 50px rgba(0,0,0,0.45);
}
.app-sheet__grab {
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  margin: 0.2rem auto 0.85rem;
}
.app-sheet__panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.app-sheet__form {
  display: grid;
  gap: 0.85rem;
}

.app-edit-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.app-edit-menu__btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
a.app-edit-menu__btn {
  text-decoration: none;
}
.app-edit-menu__btn:hover,
.app-edit-menu__btn:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(230, 106, 37, 0.45);
}
.app-edit-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: rgba(230, 106, 37, 0.15);
  color: var(--accent);
  flex-shrink: 0;
}
.app-edit-menu__icon svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
.app-edit-menu__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}
.app-edit-menu__text strong {
  font-size: 0.95rem;
  font-weight: 700;
}
.app-edit-menu__text small {
  font-size: 0.78rem;
  color: var(--muted);
}
.app-edit-menu__chev {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ——— App edit form (mobile shell) ——— */
.app-edit {
  position: relative;
  z-index: 1;
  padding: 0.75rem 0.85rem 1.25rem;
}
.app-edit__form {
  display: grid;
  gap: 0.85rem;
}
.app-edit__card {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(20, 21, 26, 0.92);
  backdrop-filter: blur(10px);
  padding: 1rem 0.95rem 1.05rem;
}
.app-edit__card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.app-edit__card .section-help {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.app-edit__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.app-edit__card-head h2 {
  margin: 0;
}
.app-edit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.app-edit__grid--3 {
  margin-top: 0.85rem;
  grid-template-columns: 1fr;
}
.app-edit__grid .span-2 {
  grid-column: 1 / -1;
}
.app-edit__check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.app-edit__check--sm {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.76rem;
}
.app-edit__mini {
  padding: 0.4rem 0.7rem !important;
  font-size: 0.8rem !important;
  min-height: auto;
}
.app-edit__social {
  display: grid;
  gap: 0.65rem;
}
.app-edit .social-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 0.45rem;
  align-items: start;
}
.app-edit .field--color {
  min-height: 2.6rem;
  padding: 0.2rem 0.35rem;
}
.app-edit .upload-preview {
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 0.4rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.app-edit .upload-preview--sm {
  width: 3rem;
  height: 3rem;
}
.app-edit__qr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.app-edit__qr img {
  width: 140px;
  height: 140px;
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.45rem;
}
.app-edit__qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.app-edit__stats {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.app-edit__stats li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.app-edit__stats strong {
  color: #fff;
}
.app-edit__actions {
  display: grid;
  gap: 0.55rem;
  padding: 0.25rem 0 0.5rem;
  position: sticky;
  bottom: 5.25rem;
  z-index: 5;
}
.app-edit__actions .btn-primary,
.app-edit__actions .btn-ghost {
  width: 100%;
  justify-content: center;
}

@media (min-width: 420px) {
  .app-edit__grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 481px) {
  .app-shell,
  .app-shell__bg,
  .app-tabbar,
  .app-sheet__panel {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
  }
}

/* Bike brand company picker (logos in dropdown) */
.brand-picker {
  position: relative;
  width: 100%;
}
.brand-picker__trigger {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.brand-picker__trigger [data-brand-label] {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-picker__caret {
  opacity: 0.55;
  font-size: 0.75rem;
}
.brand-picker__logo {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  border-radius: 0.25rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}
.brand-picker__logo--empty {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}
.brand-picker__menu {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  max-height: 14rem;
  overflow: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #16181e;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 0.35rem;
}
.brand-picker__option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}
.brand-picker__option img,
.brand-picker__option .brand-picker__logo {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.brand-picker__option:hover,
.brand-picker__option.is-selected {
  background: rgba(255, 255, 255, 0.08);
}
.brand-picker__empty {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.chip-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chip-brand img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  border-radius: 0.2rem;
}

/* Public emergency section */
.em-card {
  --em-red: #c62828;
  --em-red-deep: #8e1515;
  --em-glow: rgba(198, 40, 40, 0.35);
  --em-title: #ffc9c5;
  --em-muted: #9a968c;
  --em-text: #f2f0eb;
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(198, 40, 40, 0.55);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(198, 40, 40, 0.22), transparent 55%),
    linear-gradient(165deg, #160c0c 0%, #0c0909 55%, #120a0a 100%);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
}
.em-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff6b6b, var(--em-red-deep));
}
.em-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.05rem 0.95rem 1.15rem;
  border-bottom: 1px solid rgba(198, 40, 40, 0.28);
}
.em-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.85rem;
  color: #fff;
  background: linear-gradient(145deg, #e53935, var(--em-red-deep));
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.18);
  flex-shrink: 0;
  animation: em-pulse 2.4s ease-in-out infinite;
}
.em-card__head-text {
  min-width: 0;
  flex: 1;
}
.em-card__title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--em-title);
}
.em-card__sub {
  margin: 0.28rem 0 0;
  font-size: 0.78rem;
  color: var(--em-muted);
}
.em-card__live,
.em-card__lock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.em-card__live {
  color: #fff;
  background: var(--em-red);
  box-shadow: 0 0 12px var(--em-glow);
}
.em-card__lock {
  color: #ffc9c5;
  background: rgba(198, 40, 40, 0.25);
  border: 1px solid rgba(229, 57, 53, 0.45);
  letter-spacing: 0.06em;
}
.em-card__body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem 1.15rem 1.15rem;
}
.em-card__blood {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}
.em-card__blood-copy {
  min-width: 0;
}
.em-card__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--em-muted);
}
.em-card__hint {
  margin: 0.28rem 0 0;
  font-size: 0.86rem;
  color: rgba(242, 240, 235, 0.72);
  line-height: 1.35;
}
.em-card__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 3.4rem;
  min-height: 3.4rem;
  padding: 0.4rem 0.55rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #e53935, #9b1c1c);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(198, 40, 40, 0.35);
}
.em-card__badge-drop {
  display: inline-flex;
  opacity: 0.9;
}
.em-card__contact {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}
.em-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #7f1d1d, #450a0a);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.em-card__contact-main {
  min-width: 0;
  flex: 1;
}
.em-card__value {
  margin: 0.28rem 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--em-text);
  line-height: 1.25;
}
.em-card__phone {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.92rem;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.03em;
  color: rgba(242, 240, 235, 0.78);
  text-decoration: none;
}
.em-card__phone:hover {
  color: #fff;
}
.em-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.em-card__actions:has(> :only-child) {
  grid-template-columns: 1fr;
}
.em-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.95rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  border: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}
.em-card__cta--call {
  background: linear-gradient(145deg, #e53935, var(--em-red-deep));
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.32);
}
.em-card__cta--wa {
  background: #128c7e;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.28);
}
.em-card__cta:hover {
  filter: brightness(1.08);
  color: #fff;
}
.em-card__cta:active {
  transform: scale(0.98);
}

/* Private profile: keep red theme, blur contact details only */
.em-card__blur {
  display: inline-block;
  max-width: 100%;
  filter: blur(7px);
  -webkit-filter: blur(7px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}
.em-card__phone.em-card__blur {
  text-decoration: none;
}

@keyframes em-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(198, 40, 40, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .em-card__icon {
    animation: none;
  }
}

/* ——— Landing (home) ——— */
body.landing-page {
  background: #07080a;
  overflow-x: hidden;
}

.landing {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.landing__media {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.landing__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  animation: landing-ken 24s ease-out forwards;
}

.landing__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 8, 10, 0.88) 0%, rgba(7, 8, 10, 0.62) 48%, rgba(7, 8, 10, 0.45) 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.55) 0%, transparent 28%, rgba(7, 8, 10, 0.75) 100%),
    radial-gradient(ellipse 70% 50% at 80% 60%, rgba(230, 106, 37, 0.18), transparent 55%);
  pointer-events: none;
}

/* Top nav */
.landing-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: calc(0.85rem + env(safe-area-inset-top)) 1.15rem 0.75rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .landing-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-inline: 1.75rem;
  }
}

.landing-nav__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.landing-nav__logo {
  display: block;
  height: 2.4rem;
  width: auto;
  max-width: min(14rem, 70vw);
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

.landing-nav__auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-nav__google,
.landing-nav__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #202124;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.landing-nav__google:hover,
.landing-nav__cta-link:hover {
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.landing-nav__google:active,
.landing-nav__cta-link:active {
  transform: scale(0.98);
}

.landing-nav__g {
  flex-shrink: 0;
}

/* Full-screen hero */
.landing-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1.25rem 1.15rem calc(3.5rem + env(safe-area-inset-bottom));
  min-height: calc(100dvh - 6.5rem);
}

@media (min-width: 900px) {
  .landing-hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    padding: 1.5rem 1.75rem 3.5rem;
  }
}

.landing-hero__copy {
  max-width: 34rem;
}

.landing-hero__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  animation: landing-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-hero__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 8.5vw, 4.35rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  animation: landing-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.landing-hero__lede {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(242, 240, 235, 0.88);
  animation: landing-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.landing-hero__eyebrow-short { display: none; }
.landing-hero__eyebrow-full { display: inline; }
.landing-hero__lede--short { display: none; }
.landing-hero__lede--full { display: block; }

/* Mobile: less copy — keep title, short line, CTA */
@media (max-width: 719px) {
  .landing-hero__eyebrow-short { display: inline; }
  .landing-hero__eyebrow-full { display: none; }
  .landing-hero__lede--short { display: block; margin-top: 0.75rem; font-size: 0.98rem; }
  .landing-hero__lede--full { display: none; }

  .landing-hero__features {
    display: none;
  }

  .landing-hero__qr-note {
    display: none;
  }

  .landing-hero__title {
    font-size: clamp(2.15rem, 9vw, 2.85rem);
  }

  .landing-hero__hint {
    font-size: 0.8rem;
  }

  .landing-sticker__plate {
    display: none;
  }
}

.landing-hero__features {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  animation: landing-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.landing-hero__features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(242, 240, 235, 0.88);
  line-height: 1.4;
}

.landing-hero__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 106, 37, 0.2);
}

.landing-hero__actions {
  margin-top: 1.65rem;
  animation: landing-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.landing-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.55rem;
  border-radius: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 36px rgba(230, 106, 37, 0.38);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.landing-hero__cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 16px 40px rgba(230, 106, 37, 0.48);
}

.landing-hero__cta:active {
  transform: scale(0.98);
}

.landing-hero__hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: rgba(242, 240, 235, 0.5);
}

.landing-hero__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: landing-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.landing-sticker {
  width: min(15.5rem, 78vw);
  padding: 1rem 1rem 0.9rem;
  border-radius: 1.15rem;
  background: #f4f2ec;
  color: #111;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 22px 50px rgba(0, 0, 0, 0.45);
  transform: rotate(-2.5deg);
  animation: landing-float 5.5s ease-in-out infinite;
}

.landing-sticker__code {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.landing-sticker__code svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
}

.landing-sticker__label {
  margin: 0.7rem 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #111;
}

.landing-sticker__plate {
  margin: 0.35rem 0 0;
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #666;
}

.landing-hero__qr-note {
  margin: 1.1rem 0 0;
  font-size: 0.78rem;
  color: rgba(242, 240, 235, 0.45);
  text-align: center;
}

.landing__foot {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.78rem;
  color: rgba(242, 240, 235, 0.35);
}

.landing__foot a {
  color: rgba(242, 240, 235, 0.55);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

.landing__foot a:hover {
  color: var(--accent);
}

@keyframes landing-ken {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-float {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50% { transform: rotate(-1.5deg) translateY(-0.45rem); }
}

@media (prefers-reduced-motion: reduce) {
  .landing__photo,
  .landing-hero__eyebrow,
  .landing-hero__title,
  .landing-hero__lede,
  .landing-hero__features,
  .landing-hero__actions,
  .landing-hero__qr,
  .landing-sticker {
    animation: none;
  }
  .landing__photo {
    transform: scale(1.05);
  }
  .landing-sticker {
    transform: rotate(-2.5deg);
  }
}

/* ——— Shared site nav (home + content pages) ——— */
.site-nav {
  position: relative;
  z-index: 20;
  width: 100%;
}

.site-nav--solid {
  background:
    linear-gradient(180deg, rgba(10, 11, 14, 0.96) 0%, rgba(10, 11, 14, 0.88) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: calc(0.85rem + env(safe-area-inset-top)) 1.15rem 0.85rem;
}

@media (min-width: 900px) {
  .site-nav__inner {
    padding-inline: 1.75rem;
    gap: 1.25rem;
  }
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

/* Wide wordmark — keep aspect ratio; smaller on phones so actions fit */
.site-nav__logo {
  display: block;
  height: clamp(2.35rem, 6.5vw, 3.75rem);
  width: auto;
  max-width: min(11.5rem, 42vw);
  aspect-ratio: 3711 / 883;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

@media (min-width: 720px) {
  .site-nav__logo {
    max-width: min(16rem, 48vw);
    height: clamp(2.75rem, 7vw, 3.75rem);
  }
}

@media (min-width: 900px) {
  .site-nav__logo {
    height: 3.85rem;
    max-width: 20rem;
  }
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 980px) {
  .site-nav__links {
    display: flex;
  }

  .site-nav__brand {
    flex: 0 0 auto;
  }
}

.site-nav__link {
  padding: 0.45rem 0.7rem;
  border-radius: 0.55rem;
  color: rgba(242, 240, 235, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__link.is-active {
  color: #fff;
  background: rgba(230, 106, 37, 0.18);
}

/* Google login + hamburger always sit together on the right */
.site-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.site-nav__auth {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav__cta,
.site-nav .landing-nav__google,
.site-nav .landing-nav__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #202124;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

@media (max-width: 719px) {
  .site-nav__cta,
  .site-nav .landing-nav__google,
  .site-nav .landing-nav__cta-link {
    min-height: 2.4rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .site-nav .landing-nav__g {
    width: 16px;
    height: 16px;
  }
}

.site-nav__cta:hover,
.site-nav .landing-nav__google:hover,
.site-nav .landing-nav__cta-link:hover {
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.site-nav__menu {
  position: relative;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 980px) {
  .site-nav__menu {
    display: none;
  }
}

.site-nav__menu > summary {
  list-style: none;
  cursor: pointer;
}

.site-nav__menu > summary::-webkit-details-marker {
  display: none;
}

.site-nav__menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #f2f0eb;
}

.site-nav__drawer {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 13.5rem;
  padding: 0.55rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 17, 22, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.site-nav__drawer a {
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  color: rgba(242, 240, 235, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav__drawer a:hover,
.site-nav__drawer a.is-active {
  background: rgba(230, 106, 37, 0.16);
  color: #fff;
}

.site-nav__drawer-cta {
  margin-top: 0.35rem;
  background: var(--accent) !important;
  color: #fff !important;
  text-align: center;
}

.site-nav__drawer-auth {
  margin-top: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav__drawer-auth .landing-nav__google,
.site-nav__drawer-auth .site-nav__drawer-cta,
.site-nav__drawer-auth .site-nav__cta {
  display: flex;
  width: 100%;
  justify-content: center;
  min-height: 2.75rem;
  box-sizing: border-box;
}

.site-nav__drawer-auth .landing-nav__google {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #202124;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Landing uses shared site-nav over hero media */
body.landing-page .site-nav {
  max-width: 72rem;
  margin-inline: auto;
}

body.landing-page .site-nav__inner {
  padding-bottom: 0.5rem;
}

/* ——— Mobile home splash (logo + heading + slogan + Google) ——— */
.landing-app {
  display: none;
}

.landing-desktop {
  display: contents;
}

@media (max-width: 900px) {
  .landing-desktop {
    display: none !important;
  }

  .landing-app {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100dvh;
    width: 100%;
    padding: calc(2rem + env(safe-area-inset-top)) 1.35rem calc(2.5rem + env(safe-area-inset-bottom));
    gap: 1.15rem;
    box-sizing: border-box;
  }

  .landing-app__logo {
    display: block;
    height: clamp(4.5rem, 15vw, 6.25rem);
    width: auto;
    max-width: min(22rem, 86vw);
    object-fit: contain;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
  }

  .landing-app__title {
    margin: 0.35rem 0 0;
    max-width: 18rem;
    font-family: var(--display);
    font-size: clamp(1.9rem, 8.5vw, 2.55rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  }

  .landing-app__slogan {
    margin: 0;
    max-width: 17rem;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(242, 240, 235, 0.88);
  }

  .landing-app__auth {
    display: flex;
    width: 100%;
    max-width: 17.5rem;
    margin-top: 0.55rem;
  }

  .landing-app__auth .landing-nav__google,
  .landing-app__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.65rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #fff !important;
    color: #202124 !important;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    text-decoration: none;
  }

  .landing-app__auth .landing-nav__g {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .landing-app__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 1rem;
    margin-top: 0.85rem;
    padding: 0;
  }

  .landing-app__links a {
    color: rgba(242, 240, 235, 0.78);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    padding: 0.35rem 0.15rem;
    border-bottom: 1px solid transparent;
  }

  .landing-app__links a:hover,
  .landing-app__links a:focus-visible {
    color: #fff;
    border-bottom-color: rgba(230, 106, 37, 0.85);
  }
}

/* ——— Content pages ——— */
body.site-page-body {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(230, 106, 37, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(80, 100, 160, 0.12), transparent 45%),
    #0c0d10;
  min-height: 100dvh;
}

.site-page {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.15rem 3.5rem;
}

@media (min-width: 720px) {
  .site-page {
    padding: 2.75rem 1.75rem 4.5rem;
  }
}

.site-page__hero {
  margin-bottom: 2rem;
}

.site-page__hero > .site-page__eyebrow,
.site-page__hero > .site-page__title,
.site-page__hero > .site-page__lede {
  max-width: 42rem;
}

.site-page__hero-media {
  margin: 1.5rem 0 0;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 17, 22, 0.8);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.site-page__hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.site-page__card--icon {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.site-page__icon {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  background: #12141a;
}

@media (min-width: 720px) {
  .site-page__icon {
    width: 5rem;
    height: 5rem;
  }
}

.site-page__soon-icon {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1rem;
  border-radius: 1.15rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.site-page__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-page__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #fff;
}

.site-page__lede {
  margin: 0.9rem 0 0;
  max-width: 40rem;
  color: #9a968c;
  font-size: 1.05rem;
  line-height: 1.55;
}

.site-page__body {
  display: grid;
  gap: 1.35rem;
  color: rgba(242, 240, 235, 0.9);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 72rem;
}

.site-page__body h2 {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.site-page__body h3 {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f2f0eb;
}

.site-page__body p,
.site-page__body ul,
.site-page__body ol {
  margin: 0;
}

.site-page__body ul,
.site-page__body ol {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.site-page__body li::marker {
  color: var(--accent);
}

.site-page__card {
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 24, 30, 0.65);
}

.site-page__card h2,
.site-page__card h3 {
  margin-top: 0;
}

.site-page__grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .site-page__grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .site-page__grid--2 {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .site-page__grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-page__muted {
  color: #9a968c;
}

.site-page__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.site-page__soon {
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.site-page__soon h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.site-page__link-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-page__link-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 24, 30, 0.55);
  color: #f2f0eb;
  font-weight: 600;
}

.site-page__link-list a:hover {
  border-color: rgba(230, 106, 37, 0.45);
  background: rgba(230, 106, 37, 0.1);
}

.site-page__link-list span {
  color: #9a968c;
  font-weight: 500;
  font-size: 0.88rem;
}

/* Site footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 8, 10, 0.72);
  padding: 2.5rem 1.15rem 2rem;
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding-inline: 0.6rem;
  }
}

.site-footer__logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 14rem;
  object-fit: contain;
  margin-bottom: 0.85rem;
}

.site-footer__brand p {
  margin: 0;
  max-width: 26rem;
  color: #9a968c;
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.site-footer__cols h2 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.55);
}

.site-footer__cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer__cols a {
  color: rgba(242, 240, 235, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-footer__cols a:hover {
  color: var(--accent);
}

.site-footer__copy {
  max-width: 72rem;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #6f6b63;
  font-size: 0.82rem;
  text-align: center;
}

body.landing-page .site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  background: rgba(7, 8, 10, 0.55);
  backdrop-filter: blur(8px);
}
