:root {
  --v3-red: #a80f19;
  --v3-red-bright: #d0222d;
  --v3-red-soft: #f8e7e6;
  --v3-ink: #1c1917;
  --v3-ink-soft: #37312d;
  --v3-paper: #f4f0eb;
  --v3-cream: #fffaf4;
  --v3-white: #ffffff;
  --v3-line: rgba(28, 25, 23, .11);
  --v3-muted: #746e69;
  --v3-shadow: 0 24px 70px rgba(45, 28, 22, .12);
  --v3-shadow-soft: 0 12px 36px rgba(45, 28, 22, .08);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  background: var(--v3-paper);
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 0%, rgba(168, 15, 25, .07), transparent 26rem),
    var(--v3-paper);
  color: var(--v3-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(168, 15, 25, .24);
  outline-offset: 3px;
}

.v3-page-shell {
  width: min(680px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(120px + env(safe-area-inset-bottom));
}

.v3-home-shell {
  width: min(700px, 100%);
}

.v3-app-header {
  position: relative;
  z-index: 20;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.v3-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.v3-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.v3-brand > span {
  display: grid;
  gap: 1px;
}

.v3-brand b {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.v3-brand small {
  color: var(--v3-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.v3-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v3-round-action,
.v3-user-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--v3-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 5px 20px rgba(45, 28, 22, .05);
  backdrop-filter: blur(16px);
}

.v3-round-action {
  color: var(--v3-ink);
}

.v3-round-action svg {
  width: 19px;
  height: 19px;
}

.v3-user-badge {
  border-color: var(--v3-ink);
  background: var(--v3-ink);
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.v3-user-badge.is-static {
  cursor: default;
}

.v3-overline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--v3-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.v3-overline > span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.v3-home-intro {
  padding: 26px 4px 24px;
}

.v3-home-intro h1,
.v3-page-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(53px, 14vw, 72px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.045em;
}

.v3-home-intro h1 em,
.v3-page-intro h1 em {
  color: var(--v3-red);
  font-weight: 500;
}

.v3-home-intro > p:not(.v3-overline),
.v3-page-intro > p:not(.v3-overline) {
  max-width: 500px;
  margin: 20px 0 0;
  color: var(--v3-muted);
  font-size: 14px;
  line-height: 1.65;
}

.v3-cohort-summary {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--v3-line);
}

.v3-cohort-summary > span {
  padding-right: 12px;
  border-right: 1px solid var(--v3-line);
  color: var(--v3-muted);
  font-size: 10px;
  font-weight: 700;
}

.v3-cohort-summary b {
  color: var(--v3-ink);
  font-size: 18px;
  letter-spacing: -.04em;
}

.v3-cohort-summary a {
  justify-self: end;
  color: var(--v3-red);
  font-size: 11px;
  font-weight: 900;
}

/* ── Countdown card ── */
.v3-countdown-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--v3-red);
  color: #fff;
  margin-bottom: 14px;
}

.v3-countdown-left { flex: 1; min-width: 0; }

.v3-countdown-label {
  margin: 0 0 4px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}

.v3-countdown-title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
}

.v3-countdown-date {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  opacity: .8;
}

.v3-countdown-boxes {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.v3-countdown-boxes > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
}

.v3-countdown-boxes b {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.v3-countdown-boxes span {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: 2px;
}

.v3-compose-card {
  overflow: hidden;
  border: 1px solid rgba(168, 15, 25, .16);
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--v3-shadow-soft);
}

.v3-compose-prompt {
  width: 100%;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 17px;
  background: transparent;
  text-align: left;
}

.v3-compose-avatar {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 15px;
  background: var(--v3-red-soft);
  color: var(--v3-red);
  font-size: 11px;
  font-weight: 900;
}

.v3-compose-prompt > span:nth-child(2) {
  min-width: 0;
}

.v3-compose-prompt b,
.v3-compose-prompt small {
  display: block;
}

.v3-compose-prompt b {
  font-size: 14px;
}

.v3-compose-prompt small {
  margin-top: 3px;
  color: var(--v3-muted);
  font-size: 10px;
}

.v3-compose-prompt i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 13px;
  background: var(--v3-red);
  color: white;
  font-size: 21px;
  font-style: normal;
  line-height: 1;
}

.v3-compose-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--v3-line);
}

.v3-compose-types button {
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-right: 1px solid var(--v3-line);
  background: #fcfaf8;
  color: var(--v3-muted);
  font-size: 9px;
  font-weight: 800;
}

.v3-compose-types button:last-child {
  border-right: 0;
}

.v3-compose-types button:hover {
  background: var(--v3-red-soft);
  color: var(--v3-red);
}

.v3-compose-types span {
  color: var(--v3-red);
  font-size: 14px;
}

.v3-feed-section {
  margin-top: 36px;
}

.v3-section-title,
.v3-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 15px;
}

.v3-section-title h2,
.v3-list-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.v3-section-title .v3-overline {
  margin-bottom: 7px;
}

.v3-live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .56);
  color: var(--v3-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.v3-live-label i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #21815f;
  box-shadow: 0 0 0 4px rgba(33, 129, 95, .12);
}

.v3-moment-feed {
  display: grid;
  gap: 14px;
}

.v3-moment-card {
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--v3-shadow-soft);
}

.v3-moment-card.is-local {
  border-color: rgba(168, 15, 25, .24);
}

.v3-moment-author {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 16px 17px 12px;
}

.v3-author-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: var(--v3-red-soft);
  color: var(--v3-red);
  font-size: 11px;
  font-weight: 900;
}

.v3-author-avatar.is-red {
  background: var(--v3-red);
  color: white;
}

.v3-author-avatar.is-ink {
  background: var(--v3-ink);
  color: white;
}

.v3-moment-author > div {
  min-width: 0;
}

.v3-moment-author b,
.v3-moment-author small {
  display: block;
}

.v3-moment-author b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-moment-author small {
  margin-top: 3px;
  color: var(--v3-muted);
  font-size: 9px;
}

.v3-moment-kind {
  border-radius: 999px;
  padding: 6px 9px;
  background: #f3f0ed;
  color: var(--v3-muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.v3-moment-copy {
  margin: 4px 17px 16px;
  font-size: 14px;
  line-height: 1.58;
}

.v3-event-moment {
  margin: 0 9px 9px;
  border-radius: 22px;
  padding: 22px 20px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, .2), transparent 32%),
    linear-gradient(145deg, #761019, #b5131e);
  color: white;
}

.v3-event-kicker {
  margin: 0 0 11px;
  color: rgba(255, 255, 255, .68);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.v3-event-moment h3 {
  max-width: 380px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 9vw, 42px);
  line-height: .94;
}

.v3-event-moment > p:not(.v3-event-kicker) {
  max-width: 410px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  line-height: 1.5;
}

.v3-event-moment > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.v3-event-moment a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 13px;
  padding: 0 13px;
  background: white;
  color: var(--v3-red);
  font-size: 10px;
  font-weight: 900;
}

.v3-event-moment a.is-soft {
  background: rgba(255, 255, 255, .12);
  color: white;
}

.v3-moment-photo {
  position: relative;
  margin: 0 9px 9px;
  overflow: hidden;
  border-radius: 22px;
  background: #ddd5ce;
}

.v3-moment-photo::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(transparent, rgba(18, 16, 14, .72));
}

.v3-moment-photo img {
  width: 100%;
  height: auto;
  display: block;
  max-height: calc(100vw * 16 / 9);
  object-fit: cover;
  cursor: zoom-in;
}

/* ── Photo lightbox ── */
.v3-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.v3-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.v3-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  transform: scale(.96);
  transition: transform .2s ease;
}

.v3-lightbox.is-open img {
  transform: scale(1);
}

.v3-lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v3-moment-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 15px;
  right: 15px;
  bottom: 13px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: white;
}

.v3-moment-photo figcaption span {
  font-size: 11px;
  font-weight: 900;
}

.v3-moment-photo figcaption small {
  color: rgba(255, 255, 255, .66);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.v3-music-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  margin: 0 9px 9px;
  border-radius: 22px;
  padding: 15px;
  background: #211e1c;
  color: white;
}

.v3-music-card > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: var(--v3-red);
  font-family: var(--serif);
  font-size: 25px;
}

.v3-music-card small,
.v3-music-card b,
.v3-music-card p {
  display: block;
}

.v3-music-card small {
  color: rgba(255, 255, 255, .52);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.v3-music-card b {
  margin-top: 3px;
  font-size: 14px;
}

.v3-music-card p {
  margin: 2px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .65);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-music-card > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: var(--v3-ink);
  font-size: 9px;
  font-style: normal;
}

.v3-local-event {
  display: grid;
  margin: 0 9px 9px;
  border-radius: 22px;
  padding: 19px;
  background: var(--v3-red-soft);
}

.v3-local-event small {
  color: var(--v3-red);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.v3-local-event b {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 25px;
}

.v3-local-event span {
  margin-top: 7px;
  color: var(--v3-muted);
  font-size: 11px;
}

.v3-moment-actions {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 9px;
}

.v3-moment-actions button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--v3-muted);
  font-size: 10px;
}

.v3-moment-actions button.is-active {
  border-color: rgba(168, 15, 25, .18);
  background: var(--v3-red-soft);
  color: var(--v3-red);
}

.v3-moment-actions > span {
  margin-left: auto;
  color: #9a948f;
  font-size: 8px;
  font-weight: 700;
}

.v3-moment-delete-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  font-size: 11px;
  color: var(--v3-muted);
  cursor: pointer;
  opacity: 0.5;
}
.v3-moment-delete-btn:hover { opacity: 1; color: var(--v3-red, #a80f19); }

.v3-page-intro {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--v3-line);
  border-radius: 30px;
  padding: 30px 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(168, 15, 25, .08), transparent 42%),
    rgba(255, 255, 255, .82);
  box-shadow: var(--v3-shadow-soft);
}

.v3-page-intro h1 {
  font-size: clamp(48px, 13vw, 66px);
}

.v3-page-intro.is-ink {
  border-color: #2b2927;
  background:
    radial-gradient(circle at 88% 0%, rgba(168, 15, 25, .55), transparent 40%),
    #211e1c;
  color: white;
}

.v3-page-intro.is-ink .v3-overline,
.v3-page-intro.is-ink h1 em {
  color: #ef5961;
}

.v3-page-intro.is-ink > p:not(.v3-overline) {
  color: rgba(255, 255, 255, .62);
}

.v3-page-intro.is-map {
  min-height: 330px;
  background:
    radial-gradient(circle at 78% 26%, rgba(255, 255, 255, .18), transparent 26%),
    linear-gradient(145deg, #8e1019, #be1824);
  color: white;
}

.v3-page-intro.is-map .v3-overline,
.v3-page-intro.is-map h1 em {
  color: white;
}

.v3-page-intro.is-map > p:not(.v3-overline) {
  color: rgba(255, 255, 255, .7);
}

.v3-page-intro.is-benefit {
  background:
    linear-gradient(145deg, rgba(255, 250, 244, .94), rgba(247, 226, 219, .9)),
    white;
}

.v3-page-intro.is-member {
  min-height: 250px;
}

.v3-map-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.v3-map-orbit i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 3px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: white;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .1);
}

.v3-map-orbit i:nth-child(1) { top: 20%; right: 18%; }
.v3-map-orbit i:nth-child(2) { top: 37%; right: 42%; width: 7px; height: 7px; }
.v3-map-orbit i:nth-child(3) { top: 16%; left: 24%; width: 6px; height: 6px; }
.v3-map-orbit i:nth-child(4) { top: 52%; right: 16%; width: 6px; height: 6px; }
.v3-map-orbit i:nth-child(5) { top: 42%; left: 12%; width: 8px; height: 8px; }

.v3-section-tabs {
  position: sticky;
  z-index: 15;
  top: calc(10px + env(safe-area-inset-top));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 19px;
  padding: 4px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 32px rgba(45, 28, 22, .08);
  backdrop-filter: blur(18px);
}

.v3-section-tabs a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--v3-muted);
  font-size: 11px;
  font-weight: 800;
}

.v3-section-tabs a.is-active {
  background: var(--v3-ink);
  color: white;
  box-shadow: 0 7px 18px rgba(28, 25, 23, .18);
}

.v3-directory-tools {
  display: grid;
  gap: 9px;
  margin-bottom: 25px;
}

.v3-search-box {
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--v3-line);
  border-radius: 19px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--v3-shadow-soft);
}

.v3-search-box svg {
  width: 19px;
  height: 19px;
  color: var(--v3-red);
}

.v3-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--v3-ink);
  font: 700 16px/1 var(--sans);
}

.v3-search-box input::placeholder {
  color: #9c9691;
}

.v3-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr .9fr;
  gap: 7px;
  margin: 0;
}

.v3-filter-row label {
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 1px solid var(--v3-line);
  border-radius: 16px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, .74);
}

.v3-filter-row label > span {
  color: var(--v3-muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.v3-filter-row select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--v3-ink);
  font-size: 16px;
  font-weight: 800;
}

.v3-list-heading {
  margin-top: 26px;
}

.v3-list-heading > p,
.v3-list-heading .v3-meta {
  margin: 0;
  color: var(--v3-muted);
  font-size: 9px;
  font-weight: 700;
}

.mini-list,
.class-grid,
.city-list,
.story-list,
.benefit-list-page,
.profile-actions {
  display: grid;
  gap: 9px;
  margin: 0;
}

.v3-person-card {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 24px rgba(45, 28, 22, .045);
  text-align: left;
}

.v3-person-card::after {
  content: "→";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #f2efec;
  color: var(--v3-muted);
  font-size: 10px;
}

.v3-person-card:hover {
  border-color: rgba(168, 15, 25, .25);
  transform: translateY(-1px);
}

.v3-person-card .v3-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: var(--v3-red-soft);
  color: var(--v3-red);
  font-size: 11px;
  font-weight: 900;
}

.v3-person-main {
  min-width: 0;
}

.v3-person-main b,
.v3-person-main small,
.v3-person-main em {
  display: block;
}

.v3-person-main b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-person-main small {
  margin-top: 2px;
  color: var(--v3-red);
  font-size: 9px;
  font-weight: 700;
}

.v3-person-main em {
  margin-top: 4px;
  overflow: hidden;
  color: var(--v3-muted);
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-show-more,
.v3-lock-card a {
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 17px;
  background: var(--v3-ink);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.v3-empty,
.v3-lock-card {
  border: 1px dashed rgba(28, 25, 23, .18);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, .6);
  color: var(--v3-muted);
  font-size: 12px;
  line-height: 1.55;
}

.v3-lock-card {
  display: grid;
  gap: 10px;
}

.v3-lock-card > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: var(--v3-red-soft);
  color: var(--v3-red);
}

.v3-lock-card b {
  color: var(--v3-ink);
  font-size: 16px;
}

.v3-lock-card p {
  margin: 0;
}

.class-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.class-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--v3-line);
  border-radius: 23px;
  padding: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--v3-shadow-soft);
}

.class-card::after {
  content: "Buka kelas  →";
  color: var(--v3-red);
  font-size: 9px;
  font-weight: 900;
}

.class-card b {
  font-family: var(--serif);
  font-size: clamp(31px, 8.5vw, 43px);
  line-height: .9;
  color: var(--v3-ink);
}

.class-card span {
  margin: 10px 0 auto;
  color: var(--v3-muted);
  font-size: 9px;
}

.city-list a,
.story-list a {
  position: relative;
  display: grid;
  gap: 4px;
  border: 1px solid var(--v3-line);
  border-radius: 21px;
  padding: 17px 46px 17px 17px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 24px rgba(45, 28, 22, .045);
}

.city-list a::after,
.story-list a::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%);
  color: var(--v3-red);
  font-size: 14px;
}

.city-list b,
.story-list b {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
}

.city-list span,
.story-list span {
  margin: 3px 0 0;
  color: var(--v3-muted);
  font-size: 10px;
  line-height: 1.45;
}

.story-list a small {
  width: max-content;
  margin: 0 0 7px;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--v3-red-soft);
  color: var(--v3-red);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.v3-featured-event {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border-radius: 28px;
  padding: 20px;
  background:
    radial-gradient(circle at 94% 0%, rgba(255, 255, 255, .18), transparent 32%),
    linear-gradient(145deg, #771018, #b41520);
  box-shadow: 0 24px 60px rgba(168, 15, 25, .22);
  color: white;
}

.v3-event-date {
  align-self: start;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 21px;
  padding: 13px 8px;
  background: rgba(255, 255, 255, .1);
}

.v3-event-date b {
  font-family: var(--serif);
  font-size: 39px;
  line-height: .9;
}

.v3-event-date span {
  margin-top: 6px;
  color: rgba(255, 255, 255, .62);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.v3-featured-event-copy p {
  margin: 2px 0 7px;
  color: rgba(255, 255, 255, .62);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.v3-featured-event-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 31px;
  line-height: .95;
}

.v3-featured-event-copy > span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  line-height: 1.45;
}

.v3-featured-event-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.v3-featured-event-actions a {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 0 14px;
  background: white;
  color: var(--v3-red);
  font-size: 10px;
  font-weight: 900;
}

.v3-featured-event-actions a:last-child {
  background: rgba(255, 255, 255, .11);
  color: white;
}

.v3-agenda-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.v3-agenda-shortcuts a {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, .78);
}

.v3-agenda-shortcuts > a > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--v3-red-soft);
  color: var(--v3-red);
  font-size: 13px;
  font-weight: 900;
}

.v3-agenda-shortcuts b,
.v3-agenda-shortcuts small {
  display: block;
}

.v3-agenda-shortcuts b {
  font-size: 10px;
}

.v3-agenda-shortcuts small {
  margin-top: 3px;
  color: var(--v3-muted);
  font-size: 8px;
}

.v3-benefit-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--v3-line);
  border-radius: 21px;
  background: rgba(255, 255, 255, .78);
}

.v3-benefit-summary > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  border-right: 1px solid var(--v3-line);
  padding: 15px;
}

.v3-benefit-summary > div:last-child {
  border-right: 0;
}

.v3-benefit-summary small {
  color: var(--v3-muted);
  font-size: 8px;
  line-height: 1.3;
}

.v3-benefit-summary b {
  font-family: var(--serif);
  font-size: 28px;
}

.v3-benefit-item {
  border: 1px solid var(--v3-line);
  border-radius: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--v3-shadow-soft);
}

.v3-benefit-item.is-featured {
  background: var(--v3-ink);
  color: white;
}

.v3-benefit-item.is-muted {
  opacity: .7;
}

.v3-benefit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v3-benefit-top span {
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--v3-red-soft);
  color: var(--v3-red);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.is-featured .v3-benefit-top span {
  background: var(--v3-red);
  color: white;
}

.v3-benefit-top small {
  color: var(--v3-muted);
  font-size: 8px;
  font-weight: 800;
}

.is-featured .v3-benefit-top small {
  color: rgba(255, 255, 255, .48);
}

.v3-benefit-item h3 {
  margin: 19px 0 0;
  font-family: var(--serif);
  font-size: 33px;
  line-height: .95;
}

.v3-benefit-item p {
  margin: 11px 0 0;
  color: var(--v3-muted);
  font-size: 10px;
  line-height: 1.55;
}

.is-featured.v3-benefit-item p {
  color: rgba(255, 255, 255, .58);
}

.v3-benefit-item button {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 15px;
  background: var(--v3-red);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.v3-benefit-item:not(.is-featured) button {
  background: var(--v3-ink);
}

.v3-benefit-item button:disabled {
  background: #ddd7d2;
  color: #8a847e;
}

.member-card {
  position: relative;
  min-height: 270px;
  margin: 10px 0 18px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 270px;
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  border-radius: 29px;
  transition: opacity .3s ease, transform .35s ease;
}

.card-front {
  border: 0;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(229, 34, 49, .75), transparent 36%),
    linear-gradient(145deg, #211e1c, #5c1015);
  box-shadow: 0 26px 65px rgba(57, 17, 20, .26);
  color: white;
  opacity: 1;
  transform: scale(1);
}

.card-front::after {
  content: "2001";
  position: absolute;
  right: 8px;
  bottom: 6px;
  color: rgba(255, 255, 255, .055);
  font-family: var(--serif);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.card-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 22px;
  background:
    radial-gradient(circle at 8% 100%, rgba(229, 34, 49, .55), transparent 38%),
    linear-gradient(145deg, #5c1015, #211e1c);
  box-shadow: 0 26px 65px rgba(57, 17, 20, .26);
  color: white;
  text-align: center;
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
}

.member-card.is-flipped .card-front {
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
}

.member-card.is-flipped .card-back {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.card-back b {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.card-back-qr {
  display: grid;
  place-items: center;
}

.card-back-qr img,
.card-back-qr canvas {
  display: block;
  background: white;
  padding: 10px;
  border-radius: 10px;
}

.card-back strong {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}

.card-back small {
  color: rgba(255, 255, 255, .45);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
}

.card-qr-hint {
  display: grid;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .65);
}

.card-qr-hint svg {
  width: 22px;
  height: 22px;
}

.member-card .card-head,
.member-card .card-body {
  position: relative;
  z-index: 1;
}

.member-card .card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.member-card .card-head h2 {
  max-width: 330px;
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(29px, 8vw, 39px);
  line-height: .95;
}

.status-pill {
  height: max-content;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.member-card .card-body {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 50px;
}

.member-id {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}

.member-card .card-body p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 9px;
}


.v3-auth-panel,
.v3-claim-panel {
  scroll-margin-top: 16px;
  border: 1px solid var(--v3-line);
  border-radius: 27px;
  padding: 21px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--v3-shadow-soft);
}

.v3-panel-heading {
  margin-bottom: 18px;
}

.v3-panel-heading p {
  margin: 0 0 6px;
  color: var(--v3-red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.v3-panel-heading h2,
.v3-claim-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.v3-auth-form {
  display: none;
  gap: 12px;
}

.v3-auth-form.is-active {
  display: grid;
}

.v3-auth-form label,
.v3-composer-extra label {
  display: grid;
  gap: 7px;
  color: var(--v3-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.v3-auth-form input,
.v3-auth-form select,
.v3-composer-extra input,
.v3-composer-extra select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--v3-line);
  border-radius: 15px;
  padding: 0 14px;
  background: #f7f4f1;
  color: var(--v3-ink);
  font: 700 16px/1 var(--sans);
  letter-spacing: normal;
  text-transform: none;
}

.v3-auth-form > button[type="submit"] {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: var(--v3-red);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.v3-auth-form input:disabled,
.v3-auth-form select:disabled,
.v3-auth-form button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.v3-auth-links {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 8px;
}

.v3-auth-links.single {
  grid-template-columns: 1fr;
}

.v3-auth-links span {
  height: 18px;
  background: var(--v3-line);
}

.v3-auth-links button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--v3-red);
  font-size: 9px;
  font-weight: 800;
}

.v3-alert {
  display: none;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 10px;
  line-height: 1.45;
}

.v3-alert[class*="is-"] {
  display: block;
}

.v3-alert.is-info,
.v3-alert.is-warn {
  background: #f4eee3;
  color: #775a2a;
}

.v3-alert.is-error {
  background: var(--v3-red-soft);
  color: var(--v3-red);
}

.v3-alert.is-success {
  background: #e4f3ec;
  color: #17684e;
}

.v3-claim-panel > p:not(.eyebrow) {
  color: var(--v3-muted);
  font-size: 11px;
  line-height: 1.55;
}

.v3-claim-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.v3-claim-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--v3-line);
  border-radius: 16px;
  padding: 13px;
  background: #f8f5f2;
}

.v3-ghost-button {
  min-height: 44px;
  margin-top: 13px;
  border: 1px solid var(--v3-line);
  border-radius: 14px;
  background: transparent;
  color: var(--v3-muted);
  font-weight: 800;
}

.profile-actions {
  margin-top: 25px;
}

.profile-actions .v3-list-heading {
  margin-top: 0;
}

.profile-actions > a,
.profile-actions > button:not(.v3-logout-button) {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .88);
  color: var(--v3-ink);
  text-align: left;
}

.profile-actions .v3-action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--v3-red-soft);
  color: var(--v3-red);
  font-size: 10px;
  font-weight: 900;
}

.profile-actions b,
.profile-actions small {
  display: block;
}

.profile-actions b {
  font-size: 12px;
}

.profile-actions small {
  margin-top: 4px;
  color: var(--v3-muted);
  font-size: 9px;
  line-height: 1.35;
}

.profile-actions i {
  color: var(--v3-red);
  font-style: normal;
}

.v3-logout-button {
  min-height: 46px;
  margin-top: 7px;
  border: 1px solid rgba(168, 15, 25, .22);
  border-radius: 16px;
  background: transparent;
  color: var(--v3-red);
  font-size: 10px;
  font-weight: 900;
}

.member-modal {
  max-width: none;
}

.member-modal::backdrop {
  background: rgba(25, 19, 17, .7);
  backdrop-filter: blur(12px);
}

.modal-card {
  width: min(390px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 30px;
  padding: 26px;
  background: #fffdfa;
  box-shadow: 0 35px 100px rgba(20, 14, 12, .38);
}

.modal-card h2 {
  margin: 8px 0 18px;
  font-size: 39px;
  line-height: .92;
}

.close-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #eeebe7;
}

.fake-qr,
.scanner-frame {
  border-radius: 22px;
}

.v3-composer-dialog {
  width: min(560px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
}

.v3-composer-dialog::backdrop {
  background: rgba(25, 19, 17, .72);
  backdrop-filter: blur(12px) saturate(.75);
}

.v3-composer-sheet {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 31px;
  padding: 10px 18px 18px;
  background: #fffdfa;
  box-shadow: 0 35px 100px rgba(20, 14, 12, .38);
}

/* ── Mini profile sheet ─────────────────────────────────────────────────── */
.v3-author-name-btn {
  cursor: pointer;
}
.v3-author-name-btn:hover { text-decoration: underline; }

.v3-profile-dialog {
  width: min(480px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
}
.v3-profile-dialog::backdrop {
  background: rgba(25, 19, 17, .72);
  backdrop-filter: blur(12px) saturate(.75);
}
.v3-profile-sheet {
  position: relative;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 31px;
  padding: 10px 0 24px;
  background: #fffdfa;
  box-shadow: 0 35px 100px rgba(20,14,12,.38);
  overflow: hidden;
}
.v3-profile-sheet > .v3-composer-close {
  position: absolute;
  top: 14px;
  right: 16px;
}
.v3-profile-body { padding: 0 20px; }

.v3-mprofile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--v3-line);
  margin-bottom: 16px;
}
.v3-mprofile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--v3-red, #a80f19);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.v3-mprofile-header h3 { font-size: 17px; margin: 0 0 2px; }
.v3-mprofile-header p { font-size: 12px; color: var(--v3-muted); margin: 0; }

.v3-mprofile-photos {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.v3-mprofile-photo {
  flex: 1;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ddd5ce;
  position: relative;
}
.v3-mprofile-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.v3-mprofile-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.v3-mprofile-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.v3-mprofile-socials a {
  font-size: 13px;
  font-weight: 600;
  color: var(--v3-ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.v3-mprofile-socials a small {
  font-size: 10px;
  color: var(--v3-muted);
  font-weight: 400;
}

@media (max-width: 600px) {
  .v3-profile-dialog {
    width: 100%;
    max-height: 85svh;
    margin: auto 0 0;
  }
  .v3-profile-sheet {
    border-radius: 31px 31px 0 0;
    border-width: 1px 0 0;
    max-height: 85svh;
    overflow-y: auto;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* ── Notification bell ──────────────────────────────────────────────────── */
.v3-notif-bell {
  position: relative;
  border: none;
  cursor: pointer;
}
.v3-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--v3-red, #a80f19);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

/* ── Notification dialog ─────────────────────────────────────────────────── */
.v3-notif-dialog {
  width: min(560px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
}
.v3-notif-dialog::backdrop {
  background: rgba(25, 19, 17, .72);
  backdrop-filter: blur(12px) saturate(.75);
}
.v3-notif-sheet {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 31px;
  padding: 10px 0 18px;
  background: #fffdfa;
  box-shadow: 0 35px 100px rgba(20, 14, 12, .38);
  overflow: hidden;
}
.v3-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 18px 12px;
  border-bottom: 1px solid var(--v3-line);
}
.v3-notif-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.v3-notif-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.v3-notif-empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--v3-muted);
  font-size: 14px;
}
.v3-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--v3-line);
  cursor: pointer;
}
.v3-notif-item.is-unread {
  background: var(--v3-red-soft, #fdf0f0);
}
.v3-notif-item:active { opacity: .7; }
.v3-notif-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.v3-notif-body p {
  margin: 0 0 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--v3-ink);
}
.v3-notif-body em {
  font-style: normal;
  color: var(--v3-muted);
}
.v3-notif-body small {
  font-size: 11px;
  color: var(--v3-muted);
}

@media (max-width: 600px) {
  .v3-notif-dialog {
    width: 100%;
    max-height: 85svh;
    margin: auto 0 0;
  }
  .v3-notif-sheet {
    border-radius: 31px 31px 0 0;
    border-width: 1px 0 0;
    max-height: 85svh;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

.v3-sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #d8d2cd;
  flex-shrink: 0;
}

.v3-composer-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 14px;
}

.v3-composer-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 25, 23, .08);
  color: var(--v3-ink);
  font-size: 20px;
  line-height: 1;
}

.v3-audience-select {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(28, 25, 23, .04);
  color: var(--v3-ink);
  font: 600 16px/1 var(--sans);
}

.v3-composer-post {
  flex-shrink: 0;
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--v3-red);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.v3-composer-post:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.v3-composer-textarea {
  flex: 1;
  width: 100%;
  min-height: 130px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  padding: 0;
  color: var(--v3-ink);
  font: 400 17px/1.6 var(--sans);
}

.v3-composer-textarea::placeholder {
  color: #b0aaa5;
}

.v3-composer-extra {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.v3-composer-extra input[type="search"],
.v3-composer-extra input[type="text"] {
  width: 100%;
  height: 44px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(28, 25, 23, .05);
  color: var(--v3-ink);
  font: 400 16px/1 var(--sans);
  outline: none;
}

.v3-event-type-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
  border-radius: 12px;
  padding: 3px;
  background: rgba(28,25,23,.06);
}
.v3-event-type-tabs button {
  flex: 1;
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--v3-muted, #756f69);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.v3-event-type-tabs button.is-active {
  background: #fff;
  color: var(--v3-ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.v3-composer-event-select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(28, 25, 23, .05);
  color: var(--v3-ink);
  font: 600 16px/1 var(--sans);
}

.v3-composer-event-custom {
  width: 100%;
  height: 44px;
  border: 1px solid var(--v3-line);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(28, 25, 23, .05);
  color: var(--v3-ink);
  font: 400 16px/1 var(--sans);
  box-sizing: border-box;
}

#v3-music-results {
  display: grid;
  gap: 2px;
  max-height: 170px;
  overflow-y: auto;
}

.v3-music-result-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 7px 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.v3-music-result-item:hover,
.v3-music-result-item.is-selected {
  background: var(--v3-red-soft);
}

.v3-music-result-item img {
  border-radius: 8px;
  flex-shrink: 0;
}

.v3-music-result-info {
  flex: 1;
  min-width: 0;
}

.v3-music-result-info b {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-music-result-info small {
  display: block;
  margin-top: 2px;
  color: var(--v3-muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-music-preview-badge {
  font-size: 9px;
  color: var(--v3-red);
  font-weight: 700;
  flex-shrink: 0;
}

.v3-music-searching,
.v3-music-empty {
  color: var(--v3-muted);
  font-size: 11px;
  padding: 8px 0;
  text-align: center;
}

.v3-music-chosen {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--v3-red-soft);
  color: var(--v3-red);
  font-size: 11px;
  font-weight: 700;
}

.v3-upload-control {
  position: relative;
  display: grid;
  gap: 4px;
  border: 1.5px dashed rgba(168, 15, 25, .3);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--v3-red-soft);
  color: var(--v3-red);
  cursor: pointer;
}

.v3-upload-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.v3-upload-control span {
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.v3-upload-control small {
  overflow: hidden;
  color: var(--v3-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: normal;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.v3-composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--v3-line);
}

.v3-char-count {
  color: #a09a95;
  font-size: 9px;
  flex-shrink: 0;
}

.v3-kind-toolbar {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.v3-kind-toolbar::-webkit-scrollbar {
  display: none;
}

.v3-kind-toolbar button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--v3-muted);
  font-size: 10px;
  font-weight: 800;
}

.v3-kind-toolbar button.is-active {
  border-color: var(--v3-ink);
  background: var(--v3-ink);
  color: white;
}

.v3-toast {
  position: fixed;
  z-index: 12000;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 18px);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--v3-ink);
  box-shadow: 0 16px 42px rgba(20, 14, 12, .3);
  color: white;
  font-size: 9px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.v3-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.v3-primary-nav {
  position: fixed;
  z-index: 1000;
  left: 50%;
  right: auto;
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(430px, calc(100% - 24px));
  height: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 24px;
  padding: 5px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 55px rgba(45, 28, 22, .18);
  backdrop-filter: blur(22px) saturate(1.15);
}

.v3-primary-nav a {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 18px;
  color: #77716c;
  font-size: 8px;
  font-weight: 800;
}

.v3-primary-nav a svg {
  width: 19px;
  height: 19px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  box-shadow: none;
}

.v3-primary-nav a.is-active {
  background: var(--v3-red-soft);
  color: var(--v3-red);
}

.v3-primary-nav a.is-active svg {
  background: transparent;
  color: currentColor;
  box-shadow: none;
}

.v3-beta-notice {
  top: auto;
  right: 15px;
  bottom: calc(91px + env(safe-area-inset-bottom));
  left: auto;
  transform: none;
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 6px 9px;
  background: rgba(28, 25, 23, .8);
  box-shadow: 0 9px 24px rgba(20, 14, 12, .16);
  font: 900 8px/1 var(--sans);
  letter-spacing: .1em;
  backdrop-filter: blur(14px);
}

@media (max-width: 430px) {
  .v3-page-shell {
    padding-inline: 13px;
  }

  .v3-home-intro {
    padding-inline: 3px;
  }

  .v3-compose-types button {
    flex-direction: column;
    gap: 1px;
  }

  .v3-page-intro {
    min-height: 260px;
    padding: 26px 20px;
  }

  .v3-agenda-shortcuts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .v3-home-intro h1,
  .v3-page-intro h1 {
    font-size: 46px;
  }

  .v3-cohort-summary {
    grid-template-columns: auto auto;
  }

  .v3-cohort-summary a {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 5px;
  }

  .v3-filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .v3-filter-row label:last-child {
    grid-column: 1 / -1;
  }

  .v3-composer-extra {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  /* Nav: fixed sidebar di kiri viewport
     Override .v3-page-shell + .bottom-nav di v3.css (specificity sama, tapi file ini load lebih akhir) */
  .v3-primary-nav,
  .v3-page-shell + .bottom-nav {
    position: fixed;
    top: 28px;
    left: max(16px, calc(50vw - 462px));
    right: auto;
    bottom: auto;
    transform: none;
    width: 188px;
    height: auto;
    grid-template-columns: 1fr;
    gap: 5px;
    border-radius: 27px;
    padding: 13px;
  }

  /* Konten: padding kiri di body agar margin:0 auto bisa center konten di sisa ruang */
  body {
    padding-left: max(220px, calc(50vw - 258px));
  }

  .v3-page-shell,
  .v3-home-shell {
    width: min(720px, calc(100% - 48px));
    margin-left: 0;
    padding-top: 28px;
  }

  .v3-primary-nav::before {
    content: "SMANSA 2001";
    display: block;
    padding: 10px 11px 16px;
    color: var(--v3-ink);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
  }

  .v3-primary-nav a {
    min-height: 52px;
    grid-template-columns: 34px 1fr;
    justify-items: start;
    gap: 8px;
    padding: 0 12px;
    font-size: 10px;
  }

  .v3-primary-nav a svg {
    justify-self: center;
  }

  .v3-beta-notice {
    position: fixed;
    top: 28px;
    right: 24px;
    bottom: auto;
    left: auto;
  }

  .v3-toast {
    bottom: 26px;
  }
}

@media (max-width: 600px) {
  .v3-composer-dialog {
    width: 100%;
    max-height: var(--v3-composer-max-h, 92svh);
    margin: auto 0 0;
  }

  .v3-composer-sheet {
    max-height: var(--v3-composer-max-h, 92svh);
    border-width: 1px 0 0;
    border-radius: 31px 31px 0 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

/* === Detail Sheet === */
.v3-detail-dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}
.v3-detail-dialog::backdrop { background: rgba(0,0,0,.45); }
.v3-detail-sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--v3-bg, #f5f0eb);
}
.v3-detail-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: var(--v3-bg, #f5f0eb);
}
.v3-detail-back {
  font-size: 20px;
  background: none;
  border: 0;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--v3-ink, #1a1009);
}
.v3-detail-title {
  font-weight: 600;
  font-size: 16px;
}
.v3-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 8px;
}
.v3-detail-post .v3-moment-card {
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(0,0,0,.08);
  cursor: default;
}
.v3-comments-section {
  padding: 8px 16px 0;
}
.v3-comments-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--v3-muted, #8a7060);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.v3-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.v3-comment-delete {
  flex-shrink: 0;
  margin-left: auto;
  background: none;
  border: 0;
  font-size: 18px;
  color: var(--v3-muted, #8a7060);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.6;
}
.v3-comment-delete:hover { opacity: 1; color: var(--v3-red, #a80f19); }
.v3-comment-reply-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--v3-muted);
  cursor: pointer;
  margin-top: 3px;
}
.v3-comment-reply-btn:hover { color: var(--v3-ink); }
.v3-comment-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--v3-primary, #a80f19);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.v3-comment-body b { font-size: 13px; display: block; }
.v3-comment-body small { font-size: 11px; color: var(--v3-muted, #8a7060); }
.v3-comment-body p { font-size: 14px; margin: 2px 0 0; }
.v3-no-comments, .v3-comments-loading, .v3-detail-loading {
  text-align: center;
  color: var(--v3-muted, #8a7060);
  font-size: 14px;
  padding: 24px 0;
}
.v3-detail-comment-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(0,0,0,.1);
  background: var(--v3-bg, #f5f0eb);
}

/* Mention autocomplete dropdown */
.v3-mention-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--v3-line, #e8e2dc);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 24px rgba(20,14,12,.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 10;
}
.v3-mention-dropdown.is-open { display: block; }
.v3-mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
}
.v3-mention-item:active { background: var(--v3-red-soft, #fdf0f0); }
.v3-mention-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--v3-red, #a80f19);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.v3-mention-label { display: flex; flex-direction: column; line-height: 1.3; }
.v3-mention-label b { font-size: 13px; }
.v3-mention-label small { font-size: 11px; color: var(--v3-muted); }

/* @mention highlight in comments */
.v3-at-mention {
  color: var(--v3-red, #a80f19);
  font-weight: 600;
}
.v3-comment-input {
  flex: 1;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 16px;
  background: #fff;
  outline: none;
}
.v3-comment-input:focus { border-color: var(--v3-primary, #a80f19); }
.v3-comment-send {
  background: var(--v3-primary, #a80f19);
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.v3-comment-send:disabled { opacity: .5; }
.v3-comment-btn {
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px 4px 0;
  color: var(--v3-ink, #1a1009);
}

/* ── Guide page (panduan.html) ── */
.v3-guide-list {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.v3-guide-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--v3-line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--v3-shadow-soft);
}

.v3-guide-num {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--v3-red-soft);
  color: var(--v3-red);
  font-size: 15px;
  font-weight: 900;
}

.v3-guide-body h2 {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.v3-guide-body p {
  margin: 0;
  color: var(--v3-muted);
  font-size: 12px;
  line-height: 1.65;
}

.v3-guide-cta {
  display: grid;
  gap: 9px;
  margin-top: 30px;
  margin-bottom: 10px;
}

.v3-guide-cta-btn {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 17px;
  background: var(--v3-red);
  color: white;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
}

.v3-guide-cta-ghost {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--v3-line);
  border-radius: 17px;
  background: transparent;
  color: var(--v3-muted);
  font-size: 12px;
  font-weight: 900;
}

/* ── Account page (akun.html) ── */
.v3-akun-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 22px;
}

.v3-akun-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 17px;
  background: var(--v3-ink);
  color: white;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.v3-akun-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.v3-akun-meta {
  display: block;
  margin-top: 5px;
  color: var(--v3-muted);
  font-size: 10px;
  font-weight: 700;
}

.v3-akun-section {
  border: 1px solid var(--v3-line);
  border-radius: 27px;
  padding: 21px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--v3-shadow-soft);
  margin-bottom: 12px;
}

.v3-akun-section-heading {
  margin-bottom: 16px;
}

.v3-akun-section-heading h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.v3-akun-section-heading p {
  margin: 0;
  color: var(--v3-muted);
  font-size: 11px;
}

.v3-akun-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}

.v3-photo-slot {
  position: relative;
  aspect-ratio: 3 / 4;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  border: 1.5px dashed var(--v3-line);
  background: #f2efec;
  transition: border-color .2s ease;
}

.v3-photo-slot:hover,
.v3-photo-slot:focus-within {
  border-color: rgba(168, 15, 25, .4);
}

.v3-photo-slot.is-uploading {
  opacity: .6;
  pointer-events: none;
}

.v3-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v3-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--v3-muted);
}

.v3-photo-placeholder > span {
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  color: #c4bfba;
}

.v3-photo-placeholder small {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.v3-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 13px;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, .58));
  color: white;
}

.v3-photo-slot input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.v3-photo-overlay small {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.v3-akun-email-row {
  display: grid;
  gap: 5px;
  border: 1px solid var(--v3-line);
  border-radius: 15px;
  padding: 13px 14px;
  background: #f7f4f1;
  margin-bottom: 12px;
}

.v3-akun-email-row small {
  color: var(--v3-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.v3-akun-email-row b {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
}

.v3-akun-nota {
  margin: 12px 0 0;
  color: #a09690;
  font-size: 10px;
  line-height: 1.55;
}

/* ── Benefit Coming Soon ── */
.v3-benefit-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px 64px;
  gap: 16px;
}

.v3-bcs-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--v3-red-soft);
  display: grid;
  place-items: center;
  color: var(--v3-red);
}

.v3-bcs-icon svg {
  width: 28px;
  height: 28px;
}

.v3-benefit-coming-soon h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--v3-ink);
}

.v3-benefit-coming-soon p {
  font-size: 14px;
  color: var(--v3-muted);
  line-height: 1.55;
  max-width: 280px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ── Auth flash guard ──
   Script di <head> baca session sinkron dan set data-v3-auth di <html>.
   CSS ini menyembunyikan elemen yang salah sebelum JS sempat jalan. */
html[data-v3-auth] [data-v3-auth-panel]   { display: none !important; }
html:not([data-v3-auth]) [data-v3-profile-actions],
html:not([data-v3-auth]) [data-v3-claim-panel] { display: none !important; }
/* Agenda: locked state tidak pernah muncul jika ada session */
html[data-v3-auth] [data-ag-locked]      { display: none !important; }
html[data-v3-auth] .v3-guest-card       { display: none !important; }
html:not([data-v3-auth]) .v3-compose-card { display: none !important; }

/* ── Sebaran map ── */
.v3-map-wrap {
  margin: 0 0 8px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
}
#v3-map { height: 280px; width: 100%; background: #f0ede8; }
.v3-map-popup { font-family: var(--sans); }
.v3-map-popup b { display: block; font-size: 13px; font-weight: 800; color: #1a1a1a; margin-bottom: 2px; }
.v3-map-popup span { display: block; font-size: 10px; color: #888; margin-bottom: 6px; }
.v3-map-names { margin: 0; padding: 0 0 0 14px; max-height: 140px; overflow-y: auto; }
.v3-map-names li { font-size: 10px; color: #444; line-height: 1.7; }
.v3-map-login { margin: 4px 0 0; font-size: 10px; color: #a80f19; font-style: italic; }
.leaflet-container { font-family: var(--sans) !important; }

/* ── Titik hari ini ── */
.v3-titik-card {
  margin: 8px 0 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--v3-red);
  color: #fff;
  min-height: 0;
}
.v3-titik-card:empty { display: none; }
.v3-titik-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 4px;
}
.v3-titik-city {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 4px;
}
.v3-titik-desc {
  font-size: 13px;
  opacity: .85;
  margin: 0 0 14px;
  line-height: 1.5;
}
.v3-titik-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.38);
  color: #fff;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

/* ── Drawer kota ── */
.v3-drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
}
.v3-drawer.is-open { pointer-events: auto; }
.v3-drawer-shade {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, .45);
  opacity: 0;
  transition: opacity .25s;
}
.v3-drawer.is-open .v3-drawer-shade { opacity: 1; }
.v3-drawer-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 75dvh;
  background: var(--v3-cream);
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 80px);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
}
.v3-drawer.is-open .v3-drawer-panel { transform: translateY(0); }
.v3-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--v3-line);
  position: sticky;
  top: 0;
  background: var(--v3-cream);
  z-index: 1;
}
.v3-drawer-head h2 { font-size: 18px; font-weight: 800; margin: 0; }
.v3-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--v3-paper);
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--v3-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
[data-v3-drawer-list] { padding: 12px 20px 24px; }
.v3-drawer-mini {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--v3-line);
}
.v3-drawer-mini:last-child { border-bottom: none; }
.v3-drawer-mini b { font-size: 15px; font-weight: 700; }
.v3-drawer-mini small { font-size: 12px; color: var(--v3-muted); }
.v3-drawer-lock {
  padding: 24px 0;
  text-align: center;
}
.v3-drawer-lock p { font-size: 14px; color: var(--v3-muted); margin: 0 0 16px; }

/* ── Spotlight direktori ── */
.v3-spotlight {
  margin: 0 0 20px;
  padding: 18px;
  border-radius: 18px;
  background: var(--v3-red);
  color: #fff;
}
.v3-spotlight-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 8px;
}
.v3-spotlight-person {
  cursor: pointer;
  margin-bottom: 14px;
}
.v3-spotlight-person b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 2px;
}
.v3-spotlight-nick { font-size: .55em; opacity: .8; }
.v3-spotlight-person span {
  font-size: 13px;
  opacity: .8;
}
.v3-spotlight-refresh {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.38);
  color: #fff;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ── Guest card (beranda feed, belum login) ── */
.v3-guest-card {
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px solid var(--v3-line);
  border-radius: 28px;
  padding: 36px 24px 28px;
  background: rgba(255,255,255,.82);
  text-align: center;
  margin-top: 4px;
}
.v3-guest-card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(168,15,25,.07);
  color: var(--v3-red);
  margin-bottom: 4px;
}
.v3-guest-card-icon svg { width: 26px; height: 26px; }
.v3-guest-card h3 { margin: 0; font: 700 24px/1.1 var(--serif); letter-spacing: -.02em; }
.v3-guest-card p { margin: 0; max-width: 280px; color: var(--v3-muted, #756f69); font-size: 12px; line-height: 1.55; }
.v3-guest-card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.v3-guest-btn-primary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border-radius: 14px;
  padding: 0 22px;
  background: var(--v3-red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.v3-guest-btn-secondary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border-radius: 14px;
  padding: 0 22px;
  border: 1.5px solid var(--v3-line);
  background: transparent;
  color: var(--v3-ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.v3-guest-link {
  color: var(--v3-muted, #756f69);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Push notification banner ── */
.v3-push-banner {
  position: fixed;
  z-index: 9000;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(480px, calc(100vw - 24px));
  border-radius: 18px;
  padding: 12px 14px;
  background: #1b1815;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.v3-push-banner.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.v3-push-text { flex: 1; min-width: 0; }
.v3-push-text b { display: block; font-size: 11px; font-weight: 900; }
.v3-push-text span { display: block; margin-top: 2px; color: rgba(255,255,255,.55); font-size: 9px; }
.v3-push-btn { flex-shrink: 0; border: 0; border-radius: 12px; padding: 8px 14px; background: var(--v3-red); color: #fff; font-size: 10px; font-weight: 900; cursor: pointer; }
.v3-push-dismiss { flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); font-size: 16px; cursor: pointer; }
