/* SlideMe public web app — light + dark */
:root {
  --sm-orange: #ff6600;
  --sm-orange-dark: #e55a00;
  --sm-brand-gradient:
    radial-gradient(ellipse at 30% 20%, rgba(255,102,0,.35), transparent 55%),
    linear-gradient(160deg, #9b9b9b 0%, #a85b3a 45%, #ff6600 130%);

  --sm-orange-hover: rgb(223, 82, 0);
  --sm-bg: #f5f5f5;
  --sm-surface: #ffffff;
  --sm-text: #1a1a1a;
  --sm-muted: #6b6b6b;
  --sm-border: #e5e5e5;
  --sm-danger: #f14336;
  --sm-success: #22a06b;
  --sm-nav: #ff6600;
  --sm-radius: 14px;
  --sm-shadow: 0 2px 12px rgba(0,0,0,.06);
  --sm-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --sm-brand-gradient:
    radial-gradient(ellipse at 30% 20%, rgba(255,102,0,.35), transparent 55%),
    linear-gradient(160deg, #9b9b9b 0%, #a85b3a 45%, #ff6600 130%);
}

.sm-brand-hero,
.sm-card.sm-brand-hero {
  min-height: 120px;
  background: var(--sm-brand-gradient);
  color: #fff;
  border-color: transparent;
}

[data-theme="dark"] {
  --sm-bg: #0d0d0d;
  --sm-surface: #1a1a1a;
  --sm-text: #f5f5f5;
  --sm-muted: #a0a0a0;
  --sm-border: #2a2a2a;
  --sm-shadow: 0 2px 16px rgba(0,0,0,.55);
  --sm-nav: #ff6600;
  color-scheme: dark;
}
[data-theme="dark"] .sm-input,
[data-theme="dark"] .sm-select,
[data-theme="dark"] .sm-textarea {
  background: #141414;
}
[data-theme="dark"] .sm-modal__panel {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
}
[data-theme="dark"] .sm-toast {
  background: var(--sm-brand-gradient);
  color: #fff;
}
[data-theme="dark"] .sm-header {
  background: var(--sm-surface);
}
[data-theme="dark"] .sm-btn--ghost {
  color: var(--sm-text);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sm-font);
  background: var(--sm-bg);
  color: var(--sm-text);
  min-height: 100%;
}
a { color: var(--sm-orange); text-decoration: none; }
a:hover {
  color: var(--sm-orange-hover);
  text-decoration: underline;
}
img { max-width: 100%; }

.sm-body--app {
  background: var(--sm-bg);
  min-height: 100vh;
}

/* Full-width app shell; Bootstrap .container constrains content */
.sm-page {
  max-width: none;
  width: 100%;
  margin: 0;
  min-height: calc(100vh - 64px);
  background: transparent;
  position: relative;
  padding-bottom: 120px;
}
.sm-page__container {
  padding-top: 16px;
  padding-bottom: 24px;
}
.sm-page--guest { padding-bottom: 24px; background: var(--sm-surface); }

.sm-header-wrap .sm-header {
  margin: 0 0 16px;
  border-radius: var(--sm-radius);
  border: 1px solid var(--sm-border);
  position: relative;
}

/* Desktop top navigation */
.sm-top-nav {
  background: var(--sm-surface) !important;
  border-bottom: 1px solid var(--sm-border);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.sm-top-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.sm-top-nav__brand {
  font-weight: 800;
  color: var(--sm-text) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  margin-right: auto;
}
.sm-top-nav__links .nav-link {
  color: var(--sm-muted) !important;
  font-weight: 600;
  padding: 0.5rem 0.9rem !important;
  border-radius: 999px;
  margin-left: 2px;
}
.sm-top-nav__links .nav-link:hover,
.sm-top-nav__links .nav-link.is-active {
  color: var(--sm-orange) !important;
  background: rgba(255,102,0,.1);
}
.sm-top-nav__links .nav-link.sm-top-nav__slide {
  color: #fff !important;
  background: var(--sm-orange);
  font-weight: 800;
}
.sm-top-nav__notif {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.sm-top-nav__notif-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sm-orange, #ff5e13);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--sm-surface, #fff);
}
.sm-top-nav__links .nav-link.sm-top-nav__slide:hover,
.sm-top-nav__links .nav-link.sm-top-nav__slide.is-active {
  color: #fff !important;
  background: var(--sm-orange-dark, #e65c00);
}
.sm-top-nav__toggler {
  border: 1px solid var(--sm-border);
  background: var(--sm-surface);
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--sm-text);
  order: 2;
  margin-left: 8px;
}
.sm-top-nav__toggler-icon { font-size: 1.25rem; line-height: 1; }

.sm-top-nav__account {
  order: 3;
  margin-left: 10px;
  position: relative;
}
.sm-top-nav #smTopNav {
  order: 4;
  flex-basis: 100%;
}
@media (min-width: 992px) {
  .sm-top-nav__toggler { order: 0; }
  .sm-top-nav #smTopNav {
    order: 2;
    flex-basis: auto;
    flex: 1 1 auto;
  }
  .sm-top-nav__account {
    order: 3;
    margin-left: 12px;
  }
}

.sm-top-nav__avatar-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--sm-border);
  background: rgba(255,102,0,.12);
  color: var(--sm-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sm-top-nav__avatar-btn:hover,
.sm-top-nav__account.is-active .sm-top-nav__avatar-btn,
.sm-top-nav__account.show .sm-top-nav__avatar-btn {
  border-color: var(--sm-orange);
  box-shadow: 0 0 0 3px rgba(255,102,0,.18);
}
.sm-top-nav__avatar-letter {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.sm-top-nav__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm-top-nav__menu {
  min-width: 220px;
  margin-top: 8px;
  padding: 8px 0;
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.sm-top-nav__menu-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 16px 10px;
}
.sm-top-nav__menu-head strong {
  color: var(--sm-text);
  font-size: .95rem;
}
.sm-top-nav__menu-head .sm-muted {
  font-size: .75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.sm-top-nav__menu .dropdown-item {
  color: var(--sm-text);
  font-weight: 600;
  font-size: .9rem;
  padding: 10px 16px;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.sm-top-nav__menu .dropdown-item:hover,
.sm-top-nav__menu .dropdown-item:focus {
  background: rgba(255,102,0,.1);
  color: var(--sm-orange);
}
.sm-top-nav__menu .dropdown-item.is-active {
  color: var(--sm-orange);
  background: rgba(255,102,0,.08);
}
.sm-top-nav__menu .dropdown-divider {
  border-top-color: var(--sm-border);
  margin: 6px 0;
}
.sm-top-nav__logout {
  color: var(--sm-danger) !important;
}
.sm-top-nav__logout:hover,
.sm-top-nav__logout:focus {
  background: rgba(220,53,69,.1) !important;
  color: var(--sm-danger) !important;
}

[data-theme="dark"] .sm-top-nav {
  background: var(--sm-surface) !important;
}
[data-theme="dark"] .navbar-collapse {
  background: var(--sm-surface);
}
[data-theme="dark"] .sm-top-nav__menu {
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}

.sm-body--guest {
  margin: 0;
  min-height: 100vh;
  background: var(--sm-bg);
}

/* Guest / auth: 2-column shell — form centered on the right */
.sm-auth {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-bottom: 0;
  background: var(--sm-surface);
}
.sm-auth__hero {
  display: none;
  position: relative;
  overflow: hidden;
  background: var(--sm-brand-gradient);
  border-right: 10px solid #ff6600;
  color: #fff;
}
.sm-auth__hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding-top: 28px;
  padding-bottom: 68px;
  max-width: 520px;
  /* text-align: right; */
  margin-left: auto;
  margin-right: 0;
}
.sm-auth__panel-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  width: 100%;
}
.sm-auth__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.sm-auth__brand .sm-logo__mark { color: #fff; font-size: 2rem; }
.sm-auth__brand-name { color: #fff; }
.sm-auth__tagline {
  margin: 20px 0 0;
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  max-width: 18em;
}
.sm-auth__visual {
  margin-top: 40px;
  width: 160px;
  height: 160px;
  border-radius: 28px;
  border: 3px solid rgba(255,255,255,.45);
  background: var(--sm-brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 700;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.sm-auth__sub {
  margin-top: 28px;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.sm-auth__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px 40px;
  background: var(--sm-surface);
  min-height: 100vh;
}
.sm-auth__mobile-logo {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--sm-text);
}
.sm-auth__mobile-logo .sm-logo__sub {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  margin-top: 2px;
  color: var(--sm-muted);
}
.sm-auth__form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.sm-auth__form .sm-content {
  padding: 8px 0 0;
}
.sm-auth__form .sm-logo { display: none; }

[data-theme="dark"] .sm-auth__panel {
  background: var(--sm-bg);
}
[data-theme="dark"] .sm-auth {
  background: var(--sm-bg);
}

@media (min-width: 900px) {
  .sm-auth {
    flex-direction: row;
    min-height: 100vh;
  }
  .sm-auth__hero {
    display: flex;
    flex: 1 1 48%;
    min-height: 100vh;
  }
  .sm-auth__panel {
    flex: 1 1 52%;
    min-height: 100vh;
    padding: 48px 40px;
  }
  .sm-auth__mobile-logo { display: none; }
  .sm-auth__form { max-width: 420px; }
}

.sm-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--sm-text);
}
.sm-logo__mark {
  color: var(--sm-orange);
  font-size: 1.5rem;
  letter-spacing: -2px;
}
.sm-logo__sub { display: block; font-size: .7rem; font-weight: 500; text-align: center; margin-top: -4px; }

.sm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--sm-surface);
  border-bottom: 1px solid var(--sm-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.sm-header__spacer { width: 40px; height: 40px; }
.sm-profile-photo-card__preview { cursor: pointer; }
.sm-profile-photo-card__preview .sm-avatar { margin: 0 auto; }

.sm-header__sub { margin: 0; font-size: .75rem; color: var(--sm-muted); }
.sm-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--sm-border); background: var(--sm-surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sm-text); cursor: pointer;
}

.sm-content { padding: 16px; }

.sm-title { font-size: 1.5rem; font-weight: 700; margin: 8px 0; }
.sm-subtitle { color: var(--sm-muted); font-size: .9rem; line-height: 1.4; margin-bottom: 20px; }

.sm-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto !important;
  max-width: max-content;
  min-width: 120px;
  padding: 12px 22px;
  border-radius: 999px;
  /* 2px on all variants so outline/primary share the same height */
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  vertical-align: middle;
  margin-left: 0;
  margin-right: 0;
  flex: 0 0 auto;
}
a.sm-btn { color: inherit; }
.sm-btn--primary {
  background: var(--sm-orange);
  color: #fff !important;
  border-color: var(--sm-orange);
}
.sm-btn--primary:hover {
  background: var(--sm-orange-dark);
  color: #fff !important;
  border-color: var(--sm-orange-dark);
}
.sm-btn--outline {
  background: transparent;
  color: var(--sm-orange) !important;
  border-color: var(--sm-orange);
}
.sm-btn--ghost {
  background: var(--sm-surface);
  color: var(--sm-text) !important;
  border-color: var(--sm-border);
}
.sm-btn.is-liked,
.sm-btn--primary.is-liked {
  background: var(--sm-orange);
  color: #fff !important;
  border-color: var(--sm-orange);
}
.sm-btn--danger {
  background: var(--sm-danger);
  color: #fff !important;
  border-color: var(--sm-danger);
}
.sm-btn--sm { padding: 8px 14px; font-size: .85rem; min-width: 0; }
.sm-btn--block { display: flex !important; width: 100% !important; max-width: none; align-self: stretch; }

.sm-btn-row,
.sm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 12px;
  width: 100%;
}
.sm-btn-row .sm-btn,
.sm-actions .sm-btn {
  margin: 0 !important;
  flex: 0 0 auto;
  width: auto !important;
  max-width: max-content;
  align-self: auto;
}
.sm-actions .w-100 {
  width: 100% !important;
  max-width: 100% !important;
}
.sm-btn-row--center,
.sm-actions--center { justify-content: center; }
.sm-btn-row--end,
.sm-actions--end { justify-content: flex-end; }
.sm-btn-row--between,
.sm-actions--between { justify-content: space-between; }

/* Stacked buttons without sm-actions: keep auto width, add vertical gap */
.sm-btn + .sm-btn { margin-top: 0; margin-left: 10px; }
form > .sm-btn,
.sm-content > .sm-btn,
.sm-card > .sm-btn {
  margin-top: 10px;
  margin-left: 0;
}

/* Centered pages: buttons sit in the middle, never stretch */
.sm-center .sm-btn,
.sm-empty .sm-btn {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}
.sm-auth__form .sm-actions { justify-content: flex-start; }
.sm-auth__form .sm-center .sm-actions,
.sm-center .sm-actions,
.sm-empty .sm-actions { justify-content: center; }
.sm-center .sm-actions .sm-btn,
.sm-empty .sm-actions .sm-btn {
  margin-left: 0;
  margin-right: 0;
}

.sm-input, .sm-select, .sm-textarea {
  width: 100%; padding: 14px 16px; margin-bottom: 12px;
  border: 1px solid var(--sm-border); border-radius: var(--sm-radius);
  background: var(--sm-surface); color: var(--sm-text); font-size: 1rem;
  box-shadow: inset 0 0 0 1px transparent;
}
.sm-input:focus, .sm-select:focus, .sm-textarea:focus {
  outline: none;
  border-color: var(--sm-orange);
  box-shadow: 0 0 0 3px rgba(255,102,0,.15);
}
.sm-textarea { min-height: 100px; resize: vertical; }
.sm-label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: .9rem; }

.sm-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.sm-chip {
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--sm-border); background: var(--sm-surface);
  color: var(--sm-text); cursor: pointer; font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.sm-chip.is-active { background: var(--sm-orange); color: #fff; border-color: var(--sm-orange); }
.sm-chip.is-max { border-color: var(--sm-orange); }
.sm-chip.is-disabled {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}
.sm-chip__max {
  font-size: .65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; padding: 2px 6px; border-radius: 999px;
  background: rgba(255,102,0,.15); color: var(--sm-orange);
}
.sm-chip.is-active .sm-chip__max {
  background: rgba(255,255,255,.25); color: #fff;
}
.sm-chip.is-over-goal { display: none !important; }

.sm-comment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
}
.sm-comment__body { flex: 1; min-width: 0; }
.sm-comment__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.sm-comment__name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--sm-text);
}
.sm-comment__time {
  flex-shrink: 0;
  font-size: .75rem;
  color: var(--sm-muted);
  white-space: nowrap;
}
.sm-comment__text {
  font-size: .95rem;
  line-height: 1.4;
  color: var(--sm-text);
  word-break: break-word;
}
.sm-request-note {
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(255, 102, 0, .06);
  border: 1px solid var(--sm-border);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--sm-text);
  word-break: break-word;
  height: 2.9em;
  max-height: 2.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.sm-request-card .sm-ask-card__user {
  flex: 1;
  min-width: 0;
}
.sm-request-card .sm-flex-between {
  align-items: flex-start;
  gap: 8px;
}
.sm-ask-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 12px 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.sm-ask-card:hover {
  border-color: rgba(255, 94, 19, 0.32);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.sm-ask-card__top {
  align-items: center;
  margin-bottom: 0;
}
.sm-ask-card__when {
  font-size: 0.7rem;
  color: var(--sm-muted);
  white-space: nowrap;
}
.sm-ask-card__story {
  margin: 4px 0 8px;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--sm-text);
  word-break: break-word;
  max-height: 2.7em; /* up to 2 lines; short text collapses */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.sm-ask-card__story--full {
  height: auto;
  max-height: none;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.sm-ask-card__user {
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.sm-ask-card__name {
  color: var(--sm-text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.sm-ask-card__name:hover {
  color: var(--sm-orange);
  text-decoration: none;
}
.sm-avatar-link {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 50%;
}
.sm-avatar-link:hover { opacity: .9; }
.sm-avatar--photo {
  background-color: var(--sm-border);
}
.sm-ask-card__amounts {
  gap: 8px;
  align-items: baseline;
}
.sm-ask-card__funding {
  margin: 0 0 8px;
  padding: 8px 10px 7px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 94, 19, 0.1) 0%, rgba(255, 94, 19, 0.03) 100%);
  border: 1px solid rgba(255, 94, 19, 0.2);
}
.sm-ask-card__goal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.sm-ask-card__funding--detail {
  padding: 14px 16px 12px;
  margin: 4px 0 12px;
}
.sm-ask-card__funding--detail .sm-ask-card__goal {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.sm-ask-card__funding--compact {
  margin: 8px 0;
  text-align: center;
}
.sm-ask-card__funding--compact .sm-ask-card__goal {
  flex-direction: column;
  align-items: center;
}
.sm-ask-card__funding--compact .sm-ask-card__goal-value {
  font-size: 1.5rem;
}
.sm-ask-card--money .sm-btn-row,
.sm-request-card .sm-btn-row {
  gap: 8px;
  width: 100%;
}
.sm-ask-card--money .sm-btn-row .sm-btn,
.sm-request-card .sm-btn-row .sm-btn {
  flex: 1 1 0;
  max-width: none !important;
  width: auto !important;
}
.sm-ask-card__goal-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sm-muted);
  line-height: 1.2;
}
.sm-ask-card__goal-value {
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--sm-orange);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sm-ask-card__funding--detail .sm-ask-card__goal-value {
  font-size: 1.85rem;
}
.sm-ask-card__progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-top: 5px;
  font-size: 0.7rem;
  color: var(--sm-muted);
  flex-wrap: nowrap;
}
.sm-ask-card__raised strong {
  color: var(--sm-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sm-ask-card__pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-ask-card__funding .sm-progress {
  margin: 5px 0 0;
  height: 5px;
}
.sm-ask-card__cta {
  margin-top: auto;
  padding-top: 2px;
}
.sm-ask-card__cta .sm-btn {
  min-width: 72px;
  padding: 6px 14px;
  font-size: 0.82rem;
}
.sm-ask-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 10px;
}
.sm-ask-meta--inline {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.7rem;
  color: var(--sm-muted);
}
.sm-ask-meta--inline strong {
  color: var(--sm-text);
  font-weight: 700;
}
.sm-ask-meta__item {
  background: var(--sm-bg, #f6f7f9);
  border: 1px solid var(--sm-border);
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
}
.sm-ask-meta__value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sm-text);
  line-height: 1.2;
}
.sm-ask-meta__label {
  font-size: 0.6rem;
  color: var(--sm-muted);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-top: 1px;
}
.sm-ask-card .sm-badge {
  padding: 2px 8px;
  font-size: 0.65rem;
}
.sm-badge--urgent {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}
.sm-badge--light {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}
.sm-badge--blessing {
  background: rgba(34, 160, 107, 0.14);
  color: #168a5a;
}

/* Ask detail page */
.sm-ask-detail {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.sm-ask-detail__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
@media (min-width: 992px) {
  .sm-ask-detail__layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
    gap: 20px;
  }
}
.sm-ask-detail__main {
  min-width: 0;
}
.sm-ask-detail__side {
  min-width: 0;
}
.sm-ask-detail__slides-card {
  position: sticky;
  top: 80px;
  margin-bottom: 0;
}
.sm-ask-detail__slides-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}
.sm-ask-slide-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--sm-border);
}
.sm-ask-slide-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sm-ask-slide-row__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.sm-ask-slide-row__name {
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
  color: var(--sm-text);
}
.sm-ask-slide-row__amt {
  font-weight: 700;
  color: var(--sm-orange);
  white-space: nowrap;
}
.sm-group-slide-row .sm-ask-slide-row__meta {
  align-items: center;
  justify-content: space-between;
}
.sm-group-create__field-hint {
  margin: -2px 0 8px;
  font-size: 0.8rem;
}
.sm-ask-slide-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 4px;
  font-size: .78rem;
  color: var(--sm-muted);
}
.sm-ask-slide-row__note {
  font-style: italic;
}
.sm-ask-detail__card {
  margin-bottom: 0;
}
.sm-ask-detail__head {
  align-items: center;
  gap: 12px;
}
.sm-ask-detail__image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  margin: 8px 0 12px;
}
.sm-ask-detail__comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}
.sm-ask-detail__comments-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.sm-ask-detail__comments-list {
  min-height: 0;
  max-height: 360px;
  overflow-y: auto;
}
.sm-ask-detail__empty {
  margin: 0;
  padding: 4px 0 2px;
  font-size: .9rem;
}
.sm-ask-detail__composer {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 4px;
}
.sm-ask-detail__composer-input {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0 !important;
  height: 48px;
  box-sizing: border-box;
}
.sm-ask-detail__composer .sm-btn {
  flex: 0 0 auto;
  margin: 0 !important;
  height: 48px;
  min-width: 96px;
  padding: 0 18px;
  align-self: stretch;
}
@media (max-width: 575px) {
  .sm-ask-detail__composer {
    flex-direction: column;
  }
  .sm-ask-detail__composer .sm-btn {
    width: 100%;
    max-width: none;
  }
}

.sm-request-card__foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--sm-border);
  font-size: .8rem;
}


.sm-card {
  background: var(--sm-surface); border-radius: var(--sm-radius);
  border: 1px solid var(--sm-border); padding: 14px; margin-bottom: 12px;
  box-shadow: var(--sm-shadow);
}
.sm-card--orange {
  background: var(--sm-orange); color: #fff; border: none;
}
.sm-card--orange .sm-muted { color: rgba(255,255,255,.85); }

.sm-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  background: rgba(255,102,0,.15); color: var(--sm-orange);
}
.sm-badge--success { background: rgba(34,160,107,.15); color: var(--sm-success); }
.sm-badge--info { background: rgba(59,130,246,.15); color: #3b82f6; }
.sm-badge--muted { background: var(--sm-border); color: var(--sm-muted); }

.sm-progress {
  height: 10px; background: var(--sm-border); border-radius: 999px; overflow: hidden; margin: 8px 0 10px 0px;
}
.sm-progress__bar { height: 100%; background: var(--sm-orange); border-radius: 999px; }

.sm-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.sm-tab {
  white-space: nowrap; padding: 8px 14px; border-radius: 999px;
  border: none; background: var(--sm-surface); color: var(--sm-muted);
  font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.sm-tab.is-active { background: var(--sm-orange); color: #fff; }
.sm-tab__fire { font-size: 1em; line-height: 1; }

.sm-banner-kyc {
  display: block; background: var(--sm-orange); color: #fff;
  padding: 12px 16px; border-radius: var(--sm-radius); margin-bottom: 14px;
  font-weight: 600; font-size: .9rem;
}

/* Home marquee — seamless slow scroll */
.sm-marquee {
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  background: var(--sm-surface);
  box-shadow: var(--sm-shadow);
}
.sm-marquee__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.sm-marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
  animation-name: sm-marquee-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 60s;
}
.sm-marquee__track:hover {
  animation-play-state: paused;
}
.sm-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: 10px 0;
}
.sm-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin: 0 8px;
  padding: 6px 14px;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 102, 0, .08);
  border: 1px solid var(--sm-border);
  font-size: .82rem;
  line-height: 1.3;
  color: var(--sm-text);
}
.sm-marquee__name {
  font-weight: 700;
  color: var(--sm-orange);
}
.sm-marquee__dot {
  color: var(--sm-muted);
  font-weight: 400;
}
.sm-marquee__note {
  font-weight: 400;
  color: var(--sm-text);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-marquee__amt {
  font-weight: 600;
  color: var(--sm-muted);
  font-size: .78rem;
}
@keyframes sm-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sm-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .sm-marquee__group:last-child { display: none; }
}

.sm-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; transform: none;
  width: 100%; max-width: none;
  background: var(--sm-nav); color: #fff;
  display: flex; justify-content: space-around; align-items: center;
  padding: 10px 8px 14px; z-index: 30;
  border-radius: 16px 16px 0 0;
}
.sm-bottom-nav a {
  color: rgba(255,255,255,.8); text-align: center; font-size: .65rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 56px;
  text-decoration: none;
}
.sm-bottom-nav a.is-active { color: #fff; font-weight: 700; }
.sm-bottom-nav a.sm-bottom-nav__slide {
  color: #fff;
  font-weight: 800;
}
.sm-bottom-nav .sm-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 1;
  color: inherit;
}
.sm-bottom-nav .sm-nav-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
}

/* Feed / card grids — 1 mobile, 2 tablet, 3 desktop */
.sm-feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.sm-feed-grid > .sm-card { margin-bottom: 0; }
@media (min-width: 768px) {
  .sm-feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .sm-feed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Profile Recent Posts: 1 col mobile, 2 col desktop (never 3) */
.sm-feed-grid--profile {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .sm-feed-grid--profile {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .sm-feed-grid--profile {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sm-layout-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.sm-form-panel {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.sm-toast {
  position: fixed;
  top: 88px;
  right: 20px;
  left: auto;
  bottom: auto;
  transform: none;
  background: var(--sm-brand-gradient);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  z-index: 80;
  display: none;
  max-width: min(360px, calc(100vw - 32px));
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  border-left: 4px solid var(--sm-orange);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
}
.sm-toast.is-show { display: block; animation: sm-toast-in .2s ease; }
.sm-toast.is-success { border-left-color: var(--sm-success); }
.sm-toast.is-error { border-left-color: var(--sm-danger); }
@keyframes sm-toast-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 767px) {
  .sm-toast {
    top: auto;
    bottom: 88px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* Section-scoped loader (not full screen) */
.sm-section {
  position: relative;
  min-height: 140px;
}
.sm-section.is-loading > *:not(.sm-loader) {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}
.sm-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--sm-radius);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
[data-theme="dark"] .sm-loader {
  background: rgba(0, 0, 0, 0.35);
}
.sm-loader.is-on {
  display: flex;
}
.sm-loader__panel {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--sm-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}
.sm-loader__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--sm-border);
  border-top-color: var(--sm-orange);
  border-radius: 50%;
  animation: sm-spin 0.7s linear infinite;
}
.sm-loader__text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sm-muted);
}
@keyframes sm-spin {
  to { transform: rotate(360deg); }
}

.sm-modal {
  background: var(--sm-surface); border-radius: 20px; padding: 24px;
  width: 100%; max-width: 420px; text-align: center;
}
.sm-modal--picker {
  max-width: 480px;
  text-align: left;
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 640px);
}
.sm-modal--members {
  max-width: min(720px, 94vw);
  width: 100%;
  max-height: min(90vh, 760px);
}
.sm-modal--members .sm-friend-picker__list {
  max-height: min(52vh, 480px);
  min-height: 240px;
}
.sm-modal--members .sm-friend-picker__actions {
  grid-template-columns: 1fr;
}
.sm-member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--sm-border);
}
.sm-member-row__meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.sm-member-row__meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-member-row__contrib {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 700;
  color: var(--sm-orange);
  font-size: .95rem;
  white-space: nowrap;
}
.sm-member-row__contrib-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--sm-muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.sm-group-members-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sm-facepile {
  display: inline-flex;
  align-items: center;
}
.sm-facepile__item {
  margin-left: -10px;
  border: 2px solid var(--sm-surface);
  box-sizing: content-box;
  border-radius: 50%;
  position: relative;
}
.sm-facepile__item:first-child { margin-left: 0; }
.sm-facepile .sm-avatar,
.sm-facepile .sm-avatar-link {
  width: 32px;
  height: 32px;
  font-size: .75rem;
}
.sm-facepile .sm-avatar-link { display: inline-flex; }
.sm-facepile__more {
  margin-left: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--sm-muted);
  white-space: nowrap;
}

.sm-friend-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.sm-friend-picker__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.sm-friend-picker__search-wrap { margin-bottom: 8px; }
.sm-friend-picker__search-wrap .sm-input {
  width: 100%;
  box-sizing: border-box;
}
.sm-friend-picker__list {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 160px;
  max-height: 340px;
  margin: 0 -4px;
  padding: 4px;
}
.sm-friend-picker__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--sm-border);
}
.sm-friend-picker__meta { flex: 1; min-width: 0; }
.sm-friend-picker__meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-friend-picker__queue {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 6px;
  margin: 4px 0 8px;
  border-top: 1px solid var(--sm-border);
  -webkit-overflow-scrolling: touch;
}
.sm-friend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 160px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--sm-border);
  background: var(--sm-bg);
  color: var(--sm-text);
  cursor: pointer;
  font-size: .8rem;
}
.sm-friend-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 88px;
}
.sm-friend-chip__x {
  color: var(--sm-muted);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.sm-friend-picker__actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}
.sm-friend-picker__actions .sm-btn {
  width: 100% !important;
  max-width: none;
  min-width: 0;
}

.sm-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--sm-border); object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--sm-orange);
}
.sm-avatar--lg { width: 120px; height: 120px; font-size: 2rem; }
.sm-avatar--sm { width: 36px; height: 36px; font-size: .85rem; }
.sm-profile-card .sm-avatar--lg {
  margin: 0 auto 12px;
  overflow: hidden;
}

.sm-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--sm-border);
}
.sm-list-item--link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
}
.sm-list-item--link:hover {
  background: rgba(0,0,0,.03);
  color: inherit;
  text-decoration: none;
}
.sm-list-item__body { flex: 1; }
.sm-list-item__title { font-weight: 600; }
.sm-list-item__meta { font-size: .8rem; color: var(--sm-muted); }

/* Notifications inbox */
.sm-notif {
  max-width: 720px;
  margin: 0 auto;
}
.sm-notif__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sm-notif__counts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sm-notif__count {
  font-size: 0.875rem;
  color: var(--sm-muted);
  font-weight: 600;
}
.sm-notif__unread-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 94, 19, 0.15);
  color: var(--sm-orange);
}
.sm-notif__toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sm-notif__list {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: 16px;
  box-shadow: var(--sm-shadow);
  overflow: hidden;
}
.sm-notif__empty {
  padding: 40px 20px;
  text-align: center;
}
.sm-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--sm-border);
  transition: background 0.15s ease;
}
.sm-notif-item:last-child {
  border-bottom: none;
}
.sm-notif-item.is-unread {
  background: rgba(255, 94, 19, 0.04);
  cursor: pointer;
}
.sm-notif-item.is-unread:hover {
  background: rgba(255, 94, 19, 0.08);
}
.sm-notif-item__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  background: #fff3ec;
  color: #ff5e13;
  border: 1px solid rgba(255, 94, 19, 0.25);
}
.sm-notif-item__icon--payment,
.sm-notif-item__icon--wallet { background: rgba(34, 160, 107, 0.12); color: #16a34a; border-color: rgba(34, 160, 107, 0.25); }
.sm-notif-item__icon--friend { background: rgba(59, 130, 246, 0.12); color: #2563eb; border-color: rgba(59, 130, 246, 0.25); }
.sm-notif-item__icon--group { background: rgba(168, 85, 247, 0.12); color: #7c3aed; border-color: rgba(168, 85, 247, 0.25); }
.sm-notif-item__icon--message { background: rgba(14, 165, 233, 0.12); color: #0284c7; border-color: rgba(14, 165, 233, 0.25); }
.sm-notif-item__body {
  flex: 1;
  min-width: 0;
}
.sm-notif-item__title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.sm-notif-item__title {
  margin: 0;
  flex: 1;
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sm-text);
}
.sm-notif-item.is-unread .sm-notif-item__title {
  color: #121212;
}
.sm-notif-item__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--sm-orange);
  box-shadow: 0 0 0 3px rgba(255, 94, 19, 0.2);
}
.sm-notif-item__msg {
  margin: 4px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--sm-muted);
}
.sm-notif-item__meta {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--sm-muted);
}
.sm-notif-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.sm-notif-item__actions .sm-btn {
  min-width: 0;
}
.sm-notif__remove {
  color: var(--sm-muted) !important;
}
.sm-notif__remove:hover {
  color: var(--sm-danger, #dc2626) !important;
}
[data-theme="dark"] .sm-notif__list {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .sm-notif-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .sm-notif-item.is-unread {
  background: rgba(255, 94, 19, 0.1);
}
[data-theme="dark"] .sm-notif-item.is-unread .sm-notif-item__title {
  color: #fff;
}
[data-theme="dark"] .sm-notif-item__icon {
  background: rgba(255, 94, 19, 0.18);
  color: #ff8a4c;
}
.sm-notif__footer {
  padding: 12px 8px 4px;
  text-align: center;
}
.sm-notif__loading,
.sm-notif__end {
  font-size: 0.8125rem;
  color: var(--sm-muted);
  padding: 8px 0;
}
.sm-notif__sentinel {
  height: 1px;
  width: 100%;
}

/* Groups create */
.sm-group-create {
  width: 100%;
  max-width: none;
  margin: 0;
}
.sm-group-create__card {
  padding: 20px 20px 16px;
  width: 100%;
}
@media (min-width: 768px) {
  .sm-group-create__card { padding: 28px 32px 24px; }
}
.sm-group-create__grid {
  margin-left: -12px;
  margin-right: -12px;
}
.sm-group-create__col {
  padding-left: 12px;
  padding-right: 12px;
}
.sm-group-create__field {
  margin-bottom: 18px;
}
.sm-group-create__field > .sm-label { margin-top: 0; }
.sm-group-create__field .sm-input,
.sm-group-create__field .sm-textarea,
.sm-group-create__field .sm-select {
  margin-bottom: 0;
}
.sm-group-create__desc {
  min-height: 140px;
}
.sm-group-create__banner-field {
  margin-bottom: 18px;
}
.sm-group-create__banner {
  display: block;
  position: relative;
  width: 100%;
  min-height: 160px;
  border: 2px dashed var(--sm-border, rgba(0,0,0,.12));
  border-radius: 16px;
  background: rgba(255, 94, 19, 0.04);
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 0;
}
.sm-group-create__banner:hover {
  border-color: var(--sm-orange, #ff5e13);
}
.sm-group-create__banner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 160px;
  padding: 20px;
  text-align: center;
}
.sm-group-create__banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 94, 19, 0.15);
  color: var(--sm-orange, #ff5e13);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 40px;
}
.sm-group-create__banner-title {
  font-weight: 700;
  color: var(--sm-text);
}
.sm-group-create__banner-hint {
  font-size: 0.8rem;
}
.sm-group-create__banner-preview {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.sm-group-create__amount {
  position: relative;
}
.sm-group-create__currency {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sm-muted);
  font-weight: 700;
  z-index: 1;
}
.sm-group-create__goal {
  padding-left: 28px !important;
}
.sm-group-create__privacy {
  flex-direction: column;
}
.sm-group-create__privacy .sm-chip {
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
}
.sm-group-create__privacy .sm-chip__title {
  font-weight: 700;
}
.sm-group-create__privacy .sm-chip__hint {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}
.sm-group-create__members-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 0;
}
.sm-group-create__members-empty {
  margin: 0 0 10px;
  font-size: .85rem;
}
.sm-group-create__actions {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--sm-border);
  justify-content: flex-end;
}
@media (min-width: 992px) {
  .sm-group-create__grid {
    align-items: flex-start;
  }
  .sm-group-create__banner {
    min-height: 200px;
  }
  .sm-group-create__banner-placeholder {
    min-height: 200px;
  }
  .sm-group-create__banner-preview {
    height: 220px;
  }
  .sm-group-create__desc {
    min-height: 160px;
  }
}
.sm-groups-add {
  padding: 18px 0 8px;
  border-top: 1px solid var(--sm-border, rgba(0,0,0,.08));
}
.sm-groups-add__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
}
.sm-groups-add__sub {
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.sm-withdraw__fee-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
}
.sm-slide-success__actions {
  margin-bottom: 14px;
}

.sm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
.sm-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--sm-border);
  background: var(--sm-surface);
  color: var(--sm-text);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
}
.sm-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--sm-orange);
  color: var(--sm-orange);
}
.sm-page-btn.is-active {
  background: var(--sm-orange);
  border-color: var(--sm-orange);
  color: #fff;
}
.sm-page-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.sm-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--sm-muted); font-size: .8rem; margin: 20px 0;
}
.sm-divider::before, .sm-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--sm-border);
}

.sm-otp {
  display: flex; gap: 8px; justify-content: center; margin: 24px 0;
}
.sm-otp input {
  width: 44px; height: 52px; text-align: center; font-size: 1.25rem; font-weight: 700;
  border: 1px solid var(--sm-border); border-radius: 10px; background: var(--sm-surface); color: var(--sm-text);
}

.sm-slide-track {
  position: relative; height: 56px; border-radius: 999px;
  background: var(--sm-border); overflow: hidden; user-select: none;
}
.sm-slide-track__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 102, 0, .55), var(--sm-orange));
  pointer-events: none;
  z-index: 0;
  transition: none;
}
.sm-slide-track__label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--sm-muted); pointer-events: none; z-index: 1;
}
.sm-slide-track.is-dragging .sm-slide-track__label,
.sm-slide-track.has-progress .sm-slide-track__label {
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.sm-slide-knob {
  position: absolute; left: 4px; top: 4px; width: 48px; height: 48px;
  border-radius: 50%; background: var(--sm-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; font-size: 1.25rem; z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 102, 0, .35);
}

/* Slide create page */
.sm-slide-create {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.sm-slide-create__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
@media (min-width: 992px) {
  .sm-slide-create__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 20px;
  }
  .sm-slide-create__side {
    position: sticky;
    top: 80px;
  }
}
.sm-slide-create__section-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
}
.sm-slide-create__recipient,
.sm-slide-create__amount {
  margin-bottom: 0;
}
.sm-slide-create__amount {
  margin-top: 16px;
}
.sm-slide-create__wallet {
  margin-bottom: 12px;
}
.sm-slide-create__wallet.is-insufficient {
  border-color: rgba(241, 67, 54, 0.35);
  background: rgba(241, 67, 54, 0.04);
}
.sm-slide-create__wallet-label {
  font-size: .8rem;
}
.sm-slide-create__wallet-bal {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 4px 0 6px;
}
.sm-slide-create__bal-hint {
  font-size: .8rem;
}
.sm-slide-create__wallet.is-insufficient .sm-slide-create__bal-hint {
  color: var(--sm-danger);
}
.sm-slide-create__add-funds {
  margin-top: 12px;
  width: 100% !important;
  max-width: none !important;
}
.sm-slide-create__summary {
  margin-bottom: 12px;
}
.sm-slide-create__summary-amt {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--sm-orange);
  line-height: 1.15;
  margin: 4px 0 6px;
}
.sm-slide-create__summary-to {
  font-size: .9rem;
  margin-bottom: 12px;
}
.sm-slide-create__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--sm-border);
  font-size: .85rem;
  color: var(--sm-muted);
}
.sm-slide-create__summary-row strong {
  color: var(--sm-text);
}
.sm-slide-create__hint {
  font-size: .82rem;
  margin: 0 0 10px;
}
.sm-slide-create__secure {
  font-size: .75rem;
  margin: 10px 0 0;
  line-height: 1.4;
}
.sm-slide-ask__head {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.sm-slide-ask__story-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.sm-slide-ask__story {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--sm-text);
  max-height: 280px;
  overflow-y: auto;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: rgba(255, 102, 0, .05);
  border: 1px solid var(--sm-border);
  border-radius: 12px;
  word-break: break-word;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .sm-slide-ask__story {
    max-height: 360px;
  }
}
@media (min-width: 1200px) {
  .sm-slide-ask__story {
    max-height: 500px;
  }
}
.sm-slide-ask__image {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 12px;
}
.sm-slide-ask__goal-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--sm-border);
  font-size: .85rem;
  color: var(--sm-muted);
}

.sm-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px;
}
.sm-modal-backdrop.is-open { display: flex; }

.sm-empty { text-align: center; padding: 40px 16px; color: var(--sm-muted); }

.sm-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0;
}
.sm-stats--4 {
  grid-template-columns: repeat(2, 1fr);
}
.sm-stats__item {
  background: var(--sm-surface); border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius); padding: 12px 8px; text-align: center;
}
.sm-stats__value { font-size: 1.1rem; font-weight: 700; color: var(--sm-orange); }
.sm-stats__label { font-size: .7rem; color: var(--sm-muted); text-transform: uppercase; }

.sm-quick-actions {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 20px;
}
.sm-quick-actions a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--sm-text);
  font-size: .85rem;
  font-weight: 700;
  min-width: 0;
  text-decoration: none;
  text-align: center;
}
.sm-quick-actions .sm-qa-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sm-orange);
  font-size: 1.85rem;
  line-height: 1;
  box-shadow: var(--sm-shadow);
}
.sm-quick-actions a:hover .sm-qa-icon {
  border-color: var(--sm-orange);
  background: rgba(255,102,0,.06);
}

.sm-upload {
  border: 2px dashed var(--sm-border); border-radius: var(--sm-radius);
  padding: 28px; text-align: center; color: var(--sm-muted); cursor: pointer;
  background: var(--sm-bg);
  transition: border-color .15s, background .15s;
}
.sm-upload:hover {
  border-color: var(--sm-orange);
  background: rgba(255,102,0,.04);
}

.sm-label__hint {
  font-weight: 500;
  font-size: .8rem;
  color: var(--sm-muted);
  margin-left: 6px;
}
.sm-field-hint {
  margin: -4px 0 0;
  font-size: .8rem;
  color: var(--sm-muted);
  line-height: 1.35;
}

.sm-ask-form {
  width: 100%;
  max-width: none;
  margin: 0;
}
.sm-ask-form__card {
  padding: 20px 20px 16px;
  width: 100%;
}
@media (min-width: 768px) {
  .sm-ask-form__card { padding: 28px 32px 24px; }
}
.sm-ask-form__field {
  margin-bottom: 20px;
}
.sm-ask-form__field > .sm-label { margin-top: 0; }
.sm-ask-form__field .sm-input,
.sm-ask-form__field .sm-textarea,
.sm-ask-form__field .sm-select {
  margin-bottom: 8px;
}
.sm-ask-form__story {
  min-height: 180px;
}
.sm-ask-form__upload {
  min-height: 240px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.sm-ask-form__upload-icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 10px;
}
.sm-ask-form__upload-title {
  display: block;
  font-weight: 700;
  color: var(--sm-text);
  margin-bottom: 4px;
}
.sm-ask-form__upload-preview {
  width: 100%;
  text-align: center;
}
.sm-ask-form__upload-preview img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 12px;
  display: block;
  margin: 0 auto 12px;
  object-fit: cover;
}
.sm-ask-form__select {
  margin-top: 12px;
  max-width: 480px;
}
.sm-ask-form__actions {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--sm-border);
}
@media (min-width: 992px) {
  .sm-ask-form__top {
    align-items: stretch;
  }
  .sm-ask-form__upload {
    min-height: 320px;
  }
  .sm-ask-form__story {
    min-height: 220px;
  }
  .navbar-expand-lg {
      min-height: 82px;
  }
}


.sm-muted { color: var(--sm-muted); }
.sm-text-orange { color: var(--sm-orange); }
.sm-fw-bold { font-weight: 700; }
.sm-mt-1 { margin-top: 8px; }
.sm-mt-2 { margin-top: 16px; }
.sm-mb-2 { margin-bottom: 16px; }
.sm-center { text-align: center; }
.sm-flex { display: flex; align-items: center; gap: 10px; }
.sm-flex-between { display: flex; justify-content: space-between; align-items: center; }
.sm-hidden { display: none !important; }

/* Relative time with absolute local tooltip on hover */
.sm-time {
  cursor: help;
  border-bottom: 1px dotted transparent;
}
.sm-time:hover {
  border-bottom-color: currentColor;
}

.sm-toggle {
  position: relative; width: 48px; height: 28px;
  background: var(--sm-border); border-radius: 999px; cursor: pointer; border: none;
}
.sm-toggle.is-on { background: var(--sm-orange); }
.sm-toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s;
}
.sm-toggle.is-on::after { left: 23px; }

@media (min-width: 768px) {
  .sm-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .sm-stats--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .sm-quick-actions {
    justify-content: space-between;
    gap: 12px;
  }
  .sm-quick-actions .sm-qa-icon {
    width: 80px;
    height: 80px;
    font-size: 2.1rem;
  }
  .sm-content { padding: 8px 0 24px; }
  .sm-header { padding: 16px 20px; }
  .sm-modal { max-width: 480px; }
}

@media (min-width: 992px) {
  .sm-bottom-nav { display: none !important; }
  .sm-page { padding-bottom: 40px; min-height: calc(100vh - 72px); }
  .sm-layout-split {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
  .sm-form-narrow {
    max-width: 560px;
  }
  /* Prefer horizontal button groups on desktop forms */
  .sm-btn-row .sm-btn { max-width: none; }
}

.sm-page-body {
  white-space: normal;
  line-height: 1.55;
  font-size: 0.95rem;
  color: var(--sm-text, #1f2937);
  max-height: none;
}

/* Public CMS pages (Terms / Privacy / User Guide) — single column */
.sm-body--public {
  margin: 0;
  min-height: 100vh;
  background: var(--sm-bg, #f7f7f8);
}
.sm-public-top {
  background: var(--sm-surface, #fff);
  border-bottom: 1px solid var(--sm-border, rgba(0,0,0,.08));
}
.sm-public-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.sm-public-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.sm-public-brand__img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.sm-public-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 12px;
}
.sm-public-nav__link {
  color: var(--sm-muted, #6b7280);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 2px;
}
.sm-public-nav__link:hover {
  color: var(--sm-text, #1f2937);
  text-decoration: none;
}
.sm-public-nav__link.is-active {
  color: var(--sm-orange, #f97316);
}
.sm-public-nav__link--cta {
  color: var(--sm-orange, #f97316);
  font-weight: 600;
}
@media (max-width: 575.98px) {
  .sm-public-top__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .sm-public-nav {
    justify-content: flex-start;
    width: 100%;
  }
}
.sm-public-page {
  padding: 20px 0 48px;
}
.sm-public-page__container {
  max-width: 960px;
}
.sm-public-doc__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}
.sm-public-doc__title {
  margin: 0;
  flex: 1;
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  line-height: 1.25;
  color: #1a2740; /* dark navy */
}
.sm-public-doc__body {
  --sm-doc-text: #000;
  --sm-doc-heading: #000;
  background: #fff;
  border: 1px solid var(--sm-border, rgba(0,0,0,.08));
  border-radius: var(--sm-radius, 12px);
  box-shadow: var(--sm-shadow, 0 1px 2px rgba(0,0,0,.04));
  padding: 20px 22px 28px;
  line-height: 1.55;
  font-size: 1.0625rem; /* 17px */
  font-weight: 400;
  color: var(--sm-doc-text);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.sm-public-doc__body p {
  margin: 0 0 14px;
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.sm-public-doc__body p:last-child {
  margin-bottom: 0;
}
.sm-public-doc__body p[align="center"],
.sm-public-doc__body p[style*="text-align:center"] {
  margin-bottom: 16px;
}
/* Section headings: Word exports use <p><b>…</b></p> */
.sm-public-doc__body > p > span > span > b,
.sm-public-doc__body > p > b,
.sm-public-doc__body b,
.sm-public-doc__body strong,
.sm-public-doc__body h1,
.sm-public-doc__body h2,
.sm-public-doc__body h3,
.sm-public-doc__body h4 {
  font-weight: 600;
  color: var(--sm-doc-heading);
  font-size: 1.2rem; /* ~19px */
  line-height: 1.35;
}
.sm-public-doc__body p:has(> b),
.sm-public-doc__body p:has(b:only-of-type),
.sm-public-doc__body p[style*="margin-top:19px"],
.sm-public-doc__body p[style*="page-break-after"] {
  margin-top: 28px;
  margin-bottom: 10px;
}
.sm-public-doc__body p[style*="margin-top:19px"] + p,
.sm-public-doc__body p[style*="page-break-after"] + p {
  margin-top: 0;
}
.sm-public-doc__body ul,
.sm-public-doc__body ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}
.sm-public-doc__body li {
  margin-bottom: 8px;
  font-weight: 400;
  color: inherit;
}
.sm-public-doc__body table {
  width: 100%;
  margin: 16px 0 20px;
  border-collapse: collapse;
}
.sm-public-doc__body td {
  padding: 12px 14px;
  vertical-align: top;
}
.sm-public-doc__body span {
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  font-family: inherit !important;
}
.sm-public-doc__body b span,
.sm-public-doc__body strong span {
  font-weight: 600 !important;
  color: var(--sm-doc-heading) !important;
}
@media (min-width: 768px) {
  .sm-public-doc__title {
    font-size: 1.625rem; /* 26px */
  }
  .sm-public-doc__body {
    padding: 28px 32px 36px;
    font-size: 1.0625rem;
  }
}
@media (max-width: 575px) {
  .sm-public-doc__body {
    padding: 18px 20px 24px;
    font-size: 1rem; /* 16px */
    line-height: 1.55;
  }
  .sm-public-doc__title {
    font-size: 1.5rem;
  }
}

/* Contact Us */
.sm-contact {
  max-width: 560px;
  margin: 0 auto;
}
.sm-contact__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.sm-contact__titles {
  flex: 1;
  min-width: 0;
}
.sm-contact__title {
  margin: 0 0 6px;
  line-height: 1.25;
}
.sm-contact__intro {
  margin: 0;
  color: var(--sm-muted, #6b7280);
  font-size: 0.95rem;
  line-height: 1.45;
}
.sm-contact__card {
  background: var(--sm-surface, #fff);
  border: 1px solid var(--sm-border, rgba(0,0,0,.08));
  border-radius: 16px;
  box-shadow: var(--sm-shadow, 0 1px 2px rgba(0,0,0,.04));
  padding: 22px 20px 24px;
}
.sm-contact__field {
  margin-bottom: 4px;
}
.sm-contact__field .sm-label {
  margin-top: 0;
}
.sm-contact__field .sm-input,
.sm-contact__field .sm-textarea {
  margin-bottom: 14px;
}
.sm-contact__captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.sm-contact__captcha-q {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 12px 14px;
  border-radius: var(--sm-radius, 12px);
  background: #fff3ec;
  border: 1px solid #ff5e13;
  color: #121212;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
}
.sm-contact__captcha-refresh {
  flex: 0 0 auto;
}
.sm-contact__captcha-input {
  flex: 1 1 auto;
  margin-bottom: 0 !important;
  max-width: 140px;
}
.sm-contact__submit {
  width: 100%;
  margin-top: 8px;
}
[data-theme="dark"] .sm-contact__card {
  background: #1c1c1e;
  border-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .sm-contact__captcha-q {
  background: rgba(255,94,19,.15);
  color: #fff;
}
[data-theme="dark"] .sm-body--public {
  background: #121212;
}
[data-theme="dark"] .sm-public-top {
  background: #1c1c1e;
  border-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .sm-public-doc__body {
  --sm-doc-text: #e5e7eb;
  --sm-doc-heading: #f9fafb;
  background: #1c1c1e;
  border-color: rgba(255,255,255,.12);
  color: var(--sm-doc-text);
}

/* Guest auth legal links */
.sm-guest-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}
.sm-guest-legal a {
  color: var(--sm-muted, #6b7280);
  text-decoration: none;
}
.sm-guest-legal a:hover,
.sm-guest-legal a:focus {
  color: var(--sm-accent, #e85d04);
  text-decoration: underline;
}
.sm-guest-legal__sep {
  color: var(--sm-muted, #9ca3af);
  user-select: none;
}
[data-theme="dark"] .sm-guest-legal {
  border-top-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .sm-guest-legal a {
  color: rgba(255, 255, 255, 0.65);
}

/* Site footer */
.sm-footer {
  margin-top: 1.5rem;
  padding: 1.25rem 1rem 1.5rem;
  border-top: 1px solid var(--sm-border, rgba(0, 0, 0, 0.08));
  text-align: center;
}
.sm-footer__inner {
  max-width: 960px;
  margin: 0 auto;
}
.sm-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.sm-footer__nav a {
  color: var(--sm-muted, #6b7280);
  text-decoration: none;
}
.sm-footer__nav a:hover,
.sm-footer__nav a:focus {
  color: var(--sm-accent, #e85d04);
  text-decoration: underline;
}
.sm-footer__sep {
  color: var(--sm-muted, #9ca3af);
  user-select: none;
}
.sm-footer__copy {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--sm-muted, #9ca3af);
}
.sm-footer--app {
  margin-top: 2rem;
  padding-bottom: 0.5rem;
}
.sm-footer--guest {
  margin-top: 1.5rem;
  padding: 1rem 0 0.5rem;
  background: transparent;
}
.sm-footer--public {
  margin-top: 2rem;
  padding-bottom: 0.25rem;
}
.sm-footer--inline {
  margin-top: 1.75rem;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .sm-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .sm-footer__nav a {
  color: rgba(255, 255, 255, 0.65);
}
[data-theme="dark"] .sm-footer__copy,
[data-theme="dark"] .sm-footer__sep {
  color: rgba(255, 255, 255, 0.45);
}

/* Soften Bootstrap defaults so SlideMe tokens win */
.sm-body--app .btn:not(.sm-btn),
.sm-body--guest .btn:not(.sm-btn) { /* leave BS alone if unused */ }
.navbar { font-family: var(--sm-font); }
.container { width: 100%; }

/* Forms on money / settings screens stay readable on wide screens */
@media (min-width: 992px) {
  .sm-page .sm-content > form,
  .sm-page .sm-content > #login-form,
  .sm-page .sm-form-narrow {
    /* max-width: 560px; */
  }
}

/* —— Slide success (compact receipt) —— */
.sm-slide-success {
  max-width: 560px;
  margin: 0 auto;
}

.sm-slide-success__hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 14px;
}

.sm-slide-success__check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sm-orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sm-slide-success__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 2px;
  line-height: 1.2;
}

.sm-slide-success__sub {
  margin: 0;
  color: var(--sm-muted);
  font-size: .9rem;
}

.sm-slide-success .sm-card {
  margin-bottom: 10px;
  padding: 12px 14px;
}

.sm-slide-success__label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--sm-muted);
  margin-bottom: 2px;
}

.sm-slide-success__amount-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sm-border);
  margin-bottom: 12px;
}

.sm-slide-success__amount {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--sm-text);
}

.sm-slide-success__recipient {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.sm-slide-success__when {
  font-size: .75rem;
}

.sm-slide-success__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sm-slide-success__stat {
  text-align: center;
  padding: 8px 6px;
  background: var(--sm-bg);
  border-radius: 10px;
}

.sm-slide-success__stat strong {
  display: block;
  font-size: .95rem;
}

.sm-slide-success__points-note {
  margin: 8px 0 0;
  font-size: .78rem;
  text-align: center;
}

.sm-slide-success__ask-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sm-slide-success__ask-tag {
  font-size: .8rem;
}

.sm-slide-success__ask-link {
  color: var(--sm-orange);
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  text-decoration: none;
}

.sm-slide-success__ask-link:hover {
  text-decoration: underline;
}

.sm-slide-success__story {
  margin: 0 0 10px;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--sm-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sm-slide-success__progress {
  margin: 0 0 8px;
}

.sm-slide-success__ask-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
}

.sm-slide-success__direct-copy {
  margin: 4px 0 0;
  font-size: .85rem;
}

.sm-slide-success__ack {
  margin: 8px 0 0;
  font-size: .9rem;
  font-style: italic;
  color: var(--sm-text);
}

.sm-slide-success__cancel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sm-slide-success__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
  align-items: stretch;
}

.sm-slide-success__actions .sm-btn {
  width: 100% !important;
  max-width: none;
  min-width: 0;
  height: 100%;
  min-height: 48px;
  margin: 0 !important;
  justify-self: stretch;
  align-self: stretch;
}

/* Transaction detail (reuses slide-success layout) */
.sm-tx-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sm-tx-detail__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
}
.sm-tx-detail__row span {
  color: var(--sm-muted);
}
.sm-tx-detail__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  word-break: break-all;
  text-align: right;
}
.sm-tx-detail .sm-slide-success__when#tx-when-solo {
  margin-left: auto;
  align-self: flex-end;
}

/* —— Withdraw money —— */
.sm-withdraw {
  max-width: 520px;
  margin: 0 auto;
}
.sm-withdraw__amount-card,
.sm-withdraw__section,
.sm-withdraw__summary {
  margin-bottom: 12px;
  padding: 16px 16px 14px;
}
.sm-withdraw__avail {
  margin: 0 0 10px;
  font-size: .85rem;
}
.sm-withdraw__amount-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--sm-border);
  border-radius: 12px;
  padding: 4px 14px;
  background: var(--sm-bg, #f7f7f8);
}
.sm-withdraw__currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sm-muted);
}
.sm-withdraw__amount {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}
.sm-withdraw__amount:focus {
  outline: none;
}
.sm-withdraw__section-label {
  margin-bottom: 10px;
}
.sm-withdraw__section-head {
  margin-bottom: 4px;
}
.sm-withdraw__banks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.sm-withdraw__empty {
  margin: 0 0 8px;
}
.sm-withdraw__bank {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--sm-border);
  border-radius: 12px;
  cursor: pointer;
  margin: 0;
  background: var(--sm-surface, #fff);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sm-withdraw__bank input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sm-withdraw__bank-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--sm-border);
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
}
.sm-withdraw__bank.is-selected {
  border-color: var(--sm-orange);
  box-shadow: 0 0 0 1px var(--sm-orange);
}
.sm-withdraw__bank.is-selected .sm-withdraw__bank-radio {
  border-color: var(--sm-orange);
}
.sm-withdraw__bank.is-selected .sm-withdraw__bank-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--sm-orange);
}
.sm-withdraw__bank-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sm-withdraw__bank-name {
  font-size: .95rem;
  line-height: 1.3;
}
.sm-withdraw__bank-acct {
  font-size: .8rem;
}
.sm-withdraw__add-bank {
  width: 100% !important;
  max-width: none !important;
}
.sm-withdraw__speed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.sm-withdraw__speed-btn {
  appearance: none;
  border: 1.5px solid var(--sm-border);
  background: var(--sm-surface, #fff);
  color: var(--sm-text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sm-withdraw__speed-btn.is-active {
  background: var(--sm-orange);
  border-color: var(--sm-orange);
  color: #fff;
}
.sm-withdraw__speed-hint {
  margin: 0;
  font-size: .82rem;
  min-height: 1.2em;
}
.sm-withdraw__summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sm-withdraw__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--sm-muted);
}
.sm-withdraw__summary-row strong {
  color: var(--sm-text);
  font-weight: 600;
}
.sm-withdraw__summary-row--total {
  padding-top: 10px;
  border-top: 1px solid var(--sm-border);
  color: var(--sm-text);
  font-weight: 600;
}
.sm-withdraw__summary-row--total strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sm-orange);
}
.sm-withdraw__actions {
  margin-top: 4px;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sm-withdraw__actions .sm-btn {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}

/* —— Linked banks —— */
.sm-banks {
  max-width: 560px;
  margin: 0 auto;
}
.sm-banks__gate {
  margin-bottom: 12px;
  text-align: center;
  padding: 20px 16px;
}
.sm-banks__gate-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.sm-banks__gate-actions {
  justify-content: center;
  margin-top: 12px;
}
.sm-banks__list-card,
.sm-banks__actions-card {
  margin-bottom: 12px;
  padding: 16px;
}
.sm-banks__list-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sm-border);
}
.sm-banks__list-sub {
  margin: 2px 0 0;
  font-size: .82rem;
}
.sm-banks__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sm-banks__empty {
  text-align: center;
  padding: 24px 12px;
}
.sm-banks__empty-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.sm-banks__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--sm-border);
  border-radius: 12px;
  background: var(--sm-bg, #f7f7f8);
  flex-wrap: wrap;
}
.sm-banks__item-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.sm-banks__item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(249, 115, 22, .12);
  color: var(--sm-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.sm-banks__item-body {
  min-width: 0;
}
.sm-banks__item-name {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
}
.sm-banks__item-acct {
  font-size: .8rem;
  margin-top: 2px;
}
.sm-banks__item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
  font-size: .8rem;
  color: var(--sm-muted);
}
.sm-banks__mask {
  font-variant-numeric: tabular-nums;
}
.sm-banks__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(0,0,0,.06);
  color: var(--sm-muted);
}
.sm-banks__badge.is-active {
  background: rgba(34, 197, 94, .15);
  color: #15803d;
}
.sm-banks__badge.is-pending {
  background: rgba(234, 179, 8, .18);
  color: #a16207;
}
.sm-banks__badge.is-failed {
  background: rgba(239, 68, 68, .12);
  color: #b91c1c;
}
.sm-banks__bal {
  font-weight: 700;
  color: var(--sm-text);
}
.sm-banks__item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sm-banks__remove:hover {
  color: #b91c1c !important;
  border-color: rgba(185, 28, 28, .35);
}
.sm-banks__hint {
  margin: 6px 0 14px;
  font-size: .82rem;
  line-height: 1.45;
}
.sm-banks__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.sm-banks__actions .sm-btn {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}
.sm-banks__cancel {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 520px) {
  .sm-banks__actions {
    grid-template-columns: 1fr;
  }
  .sm-banks__item-actions {
    width: 100%;
  }
  .sm-banks__item-actions .sm-btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .sm-slide-success__stats {
    grid-template-columns: 1fr;
  }
  .sm-slide-success__amount-row {
    flex-direction: column;
  }
}

/* Groups index */
.sm-groups-intro {
  margin: 0 0 12px;
  font-size: .9rem;
  line-height: 1.4;
}
.sm-groups-search {
  margin-bottom: 12px;
}
.sm-groups-search__bar {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.sm-groups-search__input {
  width: 100%;
  margin: 0;
  padding-right: 7.5rem;
}
.sm-groups-search__input::-webkit-search-cancel-button {
  margin-right: 4px;
}
.sm-groups-search__btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: calc(100% - 12px);
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--sm-orange);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  box-shadow: none;
}
.sm-groups-search__btn:hover {
  background: var(--sm-orange-hover);
}
.sm-groups-search__btn:focus {
  outline: 2px solid rgba(255, 102, 0, .35);
  outline-offset: 1px;
}
.sm-groups-search__btn-label {
  line-height: 1;
}
@media (max-width: 420px) {
  .sm-groups-search__input {
    padding-right: 3.25rem;
  }
  .sm-groups-search__btn {
    padding: 0 12px;
  }
  .sm-groups-search__btn-label {
    display: none;
  }
}
.sm-groups-panel {
  position: relative;
  min-height: 120px;
  margin-bottom: 8px;
}
.sm-groups-list {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 4px 12px;
  min-height: 72px;
}
.sm-groups-card {
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--sm-border);
  flex-wrap: wrap;
}
.sm-groups-card:last-child {
  border-bottom: none;
}
.sm-groups-card__info {
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.sm-groups-card__avatar-link {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}
.sm-groups-card__title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sm-text);
  text-decoration: none;
  line-height: 1.3;
}
.sm-groups-card__title:hover {
  color: var(--sm-orange);
}
.sm-groups-card__sub {
  font-size: .85rem;
  font-weight: 600;
  color: var(--sm-text);
  margin-top: 2px;
  line-height: 1.3;
}
.sm-groups-card__meta {
  font-size: .8rem;
  margin-top: 2px;
}
.sm-groups-card__desc {
  font-size: .78rem;
  margin-top: 4px;
  line-height: 1.35;
}
.sm-groups-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.sm-groups-empty,
.sm-groups-loading {
  padding: 20px 8px;
  text-align: center;
}
.sm-groups-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sm-groups-actions .sm-btn {
  flex: 1 1 140px;
}
.sm-groups-panel .sm-pagination {
  margin-top: 12px;
}

/* Wallet Send Money — friend search dropdown */
.sm-send__search-wrap {
  position: relative;
  margin-bottom: 12px;
  z-index: 5;
}
.sm-send__search {
  margin: 0;
  width: 100%;
}
.sm-send__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow);
  max-height: 260px;
  overflow-y: auto;
  z-index: 20;
}
.sm-send__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--sm-border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--sm-text);
}
.sm-send__option:last-child { border-bottom: none; }
.sm-send__option:hover { background: rgba(255, 102, 0, .06); }
.sm-send__option.is-selected { background: rgba(255, 102, 0, .12); }
.sm-send__option-name {
  flex: 1;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-send__tick {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sm-orange);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.sm-send__empty {
  padding: 16px 12px;
  text-align: center;
  margin: 0;
}
.sm-send__selected {
  margin-bottom: 14px;
  min-height: 56px;
}
.sm-send__selected-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sm-send__selected-meta { flex: 1; min-width: 0; }
.sm-send__clear {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sm-border);
  background: var(--sm-bg);
  color: var(--sm-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sm-send__clear:hover {
  border-color: var(--sm-danger);
  color: var(--sm-danger);
  background: rgba(241, 67, 54, .06);
}

/* —— Group detail —— */
.sm-group-detail {
  width: 100%;
}
.sm-group-detail__layout {
  margin-left: -12px;
  margin-right: -12px;
}
.sm-group-detail__main,
.sm-group-detail__side {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 20px;
}
.sm-group-detail__side .sm-group-asks__head {
  margin-bottom: 12px;
}
.sm-group-slides__card {
  padding: 12px 14px 8px;
  margin-bottom: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.sm-group-slides__list {
  flex: 1;
  min-height: 0;
}
.sm-group-slides__empty {
  padding: 28px 12px;
  text-align: center;
  margin: 0;
}
.sm-group-slides__card .sm-pagination {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--sm-border);
}
@media (min-width: 992px) {
  .sm-group-detail__layout {
    align-items: flex-start;
  }
  .sm-group-detail__side {
    position: sticky;
    top: 88px;
  }
  .sm-group-slides__card {
    max-height: calc(100vh - 140px);
  }
  .sm-group-slides__list {
    overflow-y: auto;
  }
}
.sm-group-detail__topbar .sm-group-detail__top-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(60vw, 420px);
  text-align: center;
}
.sm-group-detail__panel {
  background: var(--sm-surface);
  border-radius: calc(var(--sm-radius) + 4px);
  box-shadow: var(--sm-shadow);
  overflow: hidden;
  border: 1px solid var(--sm-border);
}
.sm-group-detail__cover {
  position: relative;
  min-height: 168px;
  background: var(--sm-brand-gradient);
  background-size: cover;
  background-position: center;
}
.sm-group-detail__cover--image {
  min-height: 200px;
}
.sm-group-detail__cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.sm-group-detail__cover-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  z-index: 1;
}
.sm-group-detail__mark {
  position: absolute;
  left: 20px;
  bottom: -28px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--sm-surface);
  color: var(--sm-orange);
  border: 3px solid var(--sm-surface);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  z-index: 2;
}
.sm-group-detail__body {
  padding: 40px 20px 20px;
}
.sm-group-detail__identity { margin-bottom: 16px; }
.sm-group-detail__name {
  margin: 0 0 4px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.sm-group-detail__subheading {
  margin: 0 0 10px;
  color: var(--sm-muted);
  font-size: .95rem;
}
.sm-group-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sm-group-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 102, 0, .08);
  color: var(--sm-text);
  font-size: .78rem;
  font-weight: 600;
}
.sm-group-chip--status {
  background: rgba(34, 160, 107, .12);
  color: var(--sm-success);
}
.sm-group-detail__moderator {
  margin: 10px 0 0;
  font-size: .85rem;
  color: var(--sm-muted);
}
.sm-group-detail__goal {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--sm-radius);
  background: linear-gradient(135deg, rgba(255,102,0,.08), rgba(255,102,0,.02));
  border: 1px solid rgba(255,102,0,.18);
}
.sm-group-detail__goal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.sm-group-detail__goal-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sm-muted);
}
.sm-group-detail__goal-pct {
  font-size: .85rem;
  font-weight: 800;
  color: var(--sm-orange);
}
.sm-group-detail__goal-amounts {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.sm-group-detail__progress {
  height: 8px;
  background: rgba(0,0,0,.06);
}
.sm-group-detail__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--sm-border);
  border-bottom: 1px solid var(--sm-border);
  margin-bottom: 14px;
}
.sm-group-detail__members-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--sm-border);
  background: var(--sm-bg);
  cursor: pointer;
  color: var(--sm-text);
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  transition: border-color .15s ease, background .15s ease;
}
.sm-group-detail__members-btn:hover {
  border-color: var(--sm-orange);
  background: rgba(255, 102, 0, .06);
}
.sm-group-detail__members-label { white-space: nowrap; }
.sm-group-detail__toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.sm-group-detail__about {
  margin: 0;
  color: var(--sm-muted);
  font-size: .95rem;
  line-height: 1.5;
}
.sm-group-asks {
  margin-top: 28px;
}
.sm-group-as-ask {
  max-width: none;
  width: 100%;
  margin: 0 0 8px;
  padding: 20px;
}
@media (min-width: 768px) {
  .sm-group-as-ask {
    padding: 24px 28px;
  }
}
.sm-group-as-ask__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sm-group-as-ask__cover {
  height: 140px;
  margin: 0 -16px 14px;
  background-size: cover;
  background-position: center;
  background-color: var(--sm-border);
}
.sm-group-as-ask__identity {
  min-width: 0;
  flex: 1;
}
.sm-group-as-ask__sub {
  font-size: .85rem;
  margin-top: 2px;
}
.sm-group-as-ask .sm-ask-card__story {
  -webkit-line-clamp: 5;
  line-clamp: 5;
  max-height: none;
  height: auto;
  margin-bottom: 12px;
}
.sm-group-as-ask__funding {
  margin-bottom: 12px;
}
.sm-group-as-ask__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.sm-group-as-ask__cta .sm-btn {
  flex: 1 1 140px;
  max-width: none;
}
.sm-group-as-ask__footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--sm-border);
}
.sm-group-as-ask__footer .sm-group-detail__toolbar {
  border: none;
  padding: 12px 0 0;
  margin: 0;
}
.sm-group-empty--compact {
  padding: 16px;
  margin: 0;
}
.sm-ask-form__hint {
  margin: 8px 0 0;
  font-size: .85rem;
}
.sm-group-asks__head {
  margin-bottom: 14px;
}
.sm-group-asks__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}
.sm-group-asks__panel {
  position: relative;
  min-height: 120px;
}
.sm-group-asks__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.sm-group-asks__grid > .sm-card {
  margin-bottom: 0;
  height: 100%;
}
.sm-group-empty {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--sm-radius);
  border: 1px dashed var(--sm-border);
  background: var(--sm-surface);
}
.sm-group-empty__icon {
  color: var(--sm-orange);
  opacity: .75;
  margin-bottom: 10px;
}
.sm-group-empty__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--sm-text);
}
.sm-group-empty__sub {
  margin: 0;
  color: var(--sm-muted);
  font-size: .9rem;
}
.sm-group-slides__card { padding: 12px 14px; }
@media (min-width: 640px) {
  .sm-group-detail__body { padding: 44px 28px 24px; }
  .sm-group-detail__cover { min-height: 200px; }
  .sm-group-detail__cover--image { min-height: 240px; }
  .sm-group-detail__mark {
    left: 28px;
    width: 72px;
    height: 72px;
    bottom: -32px;
    font-size: 1.85rem;
  }
}
@media (min-width: 768px) {
  .sm-group-asks__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .sm-group-asks__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sm-brand-hero--image {
  min-height: 160px;
  background-color: transparent;
}
.sm-friend-picker__row--static {
  cursor: default;
}

/* Friends page */
.sm-friends {
  width: 100%;
}
.sm-friends__layout {
  margin-left: -12px;
  margin-right: -12px;
}
.sm-friends__col {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 20px;
}
.sm-friends__card {
  height: 100%;
  padding: 20px 18px 12px;
  margin-bottom: 0;
}
.sm-friends__card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sm-friends__heading {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 800;
}
.sm-friends__card-head .sm-friends__heading {
  margin-bottom: 0;
}
.sm-friends__hint {
  font-size: .85rem;
  margin: 0 0 14px;
  line-height: 1.4;
}
.sm-friends__count {
  font-size: .85rem;
  white-space: nowrap;
}
.sm-friends__empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--sm-muted);
}
.sm-friends__empty p {
  margin: 0;
}
.sm-friend-request {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--sm-border);
  border-radius: 14px;
  background: var(--sm-bg, rgba(0,0,0,.015));
}
.sm-friend-request:last-child {
  margin-bottom: 0;
}
.sm-friend-request__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sm-friend-request__body {
  flex: 1;
  min-width: 0;
}
.sm-friend-request__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-friend-request__meta {
  font-size: .8rem;
  color: var(--sm-muted);
  margin-top: 2px;
}
.sm-friend-request__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.sm-friend-request__actions .sm-btn {
  flex: 1 1 auto;
  min-width: 96px;
  max-width: none;
}
.sm-friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sm-border);
  min-width: 0;
}
.sm-friend-row:last-child {
  border-bottom: none;
}
.sm-friend-row__body {
  flex: 1;
  min-width: 0;
}
.sm-friend-row__name {
  font-weight: 600;
  color: var(--sm-orange);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-friend-row__name:hover {
  text-decoration: underline;
}
.sm-friend-row .sm-btn {
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .sm-friends__layout {
    align-items: stretch;
  }
  .sm-friend-request {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .sm-friend-request__actions {
    flex-shrink: 0;
    justify-content: flex-end;
  }
  .sm-friend-request__actions .sm-btn {
    flex: 0 0 auto;
  }
}
.sm-m-0 { margin: 0; }
.sm-tab {
  border: 1px solid var(--sm-border);
}
.sm-tab.is-active {
  border-color: var(--sm-orange);
}

.sm-badge--pending {
  background: rgba(255, 102, 0, .15);
  color: var(--sm-orange);
}

/* Reports (web) */
.sm-reports {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.sm-reports-list {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.sm-reports-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--sm-border);
  color: inherit;
  text-decoration: none;
  transition: background .12s;
}
.sm-reports-item:last-child { border-bottom: none; }
.sm-reports-item:hover { background: rgba(255, 102, 0, .04); }
.sm-reports-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 102, 0, .1);
  color: var(--sm-orange);
}
.sm-reports-icon--user {
  background: rgba(59, 130, 246, .12);
  color: #3b82f6;
}
.sm-reports-item__body { flex: 1; min-width: 0; }
.sm-reports-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.sm-reports-item__title {
  font-size: 1rem;
  line-height: 1.3;
  color: var(--sm-text);
}
.sm-reports-item__preview {
  margin: 0 0 8px;
  font-size: .88rem;
  color: var(--sm-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sm-reports-item__date {
  font-size: .78rem;
  color: var(--sm-muted);
}
.sm-reports-empty {
  text-align: center;
  padding: 36px 20px;
}
.sm-reports-empty .sm-btn { margin-top: 12px; }
.sm-reports-loading { padding: 24px; text-align: center; }
.sm-reports-footer {
  position: sticky;
  bottom: 12px;
  padding-top: 4px;
  z-index: 2;
}
.sm-reports-footer .sm-btn { box-shadow: var(--sm-shadow); }

.sm-reports-detail__head { margin-bottom: 20px; }
.sm-reports-detail__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.sm-reports-detail__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sm-text);
}
.sm-reports-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: .88rem;
  color: var(--sm-muted);
  margin-bottom: 8px;
}
.sm-reports-detail__id {
  color: var(--sm-orange);
  font-weight: 600;
}
.sm-reports-detail__section {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.sm-reports-detail__label {
  margin: 0 0 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sm-text);
}
.sm-reports-detail__desc p {
  margin: 0 0 10px;
  line-height: 1.55;
  color: var(--sm-text);
}
.sm-reports-detail__steps-title {
  font-weight: 600;
  margin: 12px 0 8px !important;
}
.sm-reports-detail__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sm-reports-detail__steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  line-height: 1.45;
}
.sm-reports-detail__step-num {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sm-orange);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.sm-reports-atts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.sm-reports-atts__item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sm-border);
  background: var(--sm-bg);
}
.sm-reports-atts__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sm-reports-atts__file {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  color: var(--sm-muted);
}
.sm-reports-atts__ext {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: .03em;
}
.sm-reports-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.sm-reports-form .sm-field { margin-bottom: 16px; }
.sm-reports-form__desc { min-height: 140px; }
.sm-reports-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.sm-reports-tag {
  border: 1px solid var(--sm-border);
  background: var(--sm-surface);
  color: var(--sm-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.sm-reports-tag.is-active,
.sm-reports-tag:hover {
  border-color: var(--sm-orange);
  color: var(--sm-orange);
  background: rgba(255, 102, 0, .06);
}
.sm-reports-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sm-reports-upload__icon { color: var(--sm-orange); }
.sm-reports-preview {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sm-reports-preview__item {
  font-size: .85rem;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--sm-bg);
  border: 1px solid var(--sm-border);
}

@media (min-width: 768px) {
  .sm-reports-detail__actions {
    flex-direction: row;
  }
  .sm-reports-detail__actions .sm-btn {
    flex: 1;
  }
  .sm-reports-footer {
    position: static;
  }
}
