:root {
  --outer-bg: #050608;
  --bg: #0b0d12;
  --surface: #141720;
  --surface-elevated: #1b1f2b;
  --surface-glass: rgba(20, 23, 32, 0.82);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --ink: #f8fafc;
  --ink-secondary: #94a3b8;
  --ink-muted: #64748b;
  --white: #ffffff;
  --black: #090b10;
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.14);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --whatsapp: #22c55e;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: var(--outer-bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

/* ==================== MOBILE APP SHELL (ALWAYS MOBILE-FIRST) ==================== */
.mobile-frame {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

@media (min-width: 500px) {
  .mobile-frame {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.75);
  }
}

.ambient-glow {
  position: absolute;
  top: -40px;
  left: -40px;
  right: -40px;
  height: 360px;
  background-size: cover;
  background-position: center;
  filter: blur(55px) saturate(1.35);
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.frame-content {
  position: relative;
  z-index: 1;
}

/* ==================== BUTTONS & PILLS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: #e2e8f0;
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
  padding: 7px 10px;
}

.btn-ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #052e16;
}

.btn-danger {
  background: var(--danger);
  color: #1f0707;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

.btn-lg {
  width: 100%;
  padding: 15px 20px;
  font-size: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pill.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-secondary);
}

.tag.doing {
  background: var(--green-soft);
  color: var(--green);
}

.tag.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.tag.white {
  background: var(--white);
  color: var(--black);
}

/* ==================== AVATARS ==================== */
.avatar-stack {
  display: inline-flex;
  align-items: center;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #272d3d;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--bg);
  margin-left: -12px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

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

.avatar.lg {
  width: 72px;
  height: 72px;
  font-size: 24px;
  margin-left: 0;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar.sm {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.avatar-clickable {
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.avatar-clickable:hover {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.avatar-clickable:active {
  transform: scale(0.95);
}

.avatar-picker-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 6px;
  scrollbar-width: none;
}

.avatar-picker-row::-webkit-scrollbar {
  display: none;
}

.avatar-choice {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  background: var(--surface-elevated);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.avatar-choice.active {
  border-color: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}

/* ==================== LUMA DARK ONBOARDING ==================== */
.onboard-pad {
  padding: 20px 18px 36px;
}

.hero-cover-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  position: relative;
  margin-bottom: 18px;
  background: var(--surface);
}

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

.hero-cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.serif-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 44px;
  line-height: 1.02;
  font-weight: 400;
  color: var(--white);
}

.invite-meta-line {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  font-weight: 500;
}

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.wizard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.step-bars {
  display: flex;
  gap: 5px;
}

.step-bar {
  width: 24px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
}

.step-bar.active {
  background: var(--white);
}

.wizard-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.wizard-sub {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  color: var(--ink);
  outline: none;
}

.text-input:focus {
  border-color: var(--white);
}

textarea.text-input {
  min-height: 74px;
  resize: vertical;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
}

.person-chip button {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

/* Alta Dark Range Calendar */
.range-cal-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--surface);
}

.range-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cal-weekdays, .cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-weekdays span {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  padding-bottom: 6px;
}

.cal-day-cell {
  height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface-elevated);
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day-cell.core-hint {
  border-color: var(--border-strong);
  color: var(--ink);
}

.cal-day-cell.in-range {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-radius: 6px;
}

.cal-day-cell.endpoint {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-weight: 700;
}

.time-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.check-circle {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 24px auto 16px;
}

/* ==================== MOBILE APP HEADER & FLOATING GLASS DOCK ==================== */
.mobile-top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 16px;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.floating-dock-wrap {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 396px;
  z-index: 50;
}

.floating-dock {
  background: rgba(20, 23, 32, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.58);
}

.dock-btn {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  padding: 7px 2px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1.1;
}

.dock-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dock-btn.active {
  background: var(--white);
  color: var(--black);
}

.main-pad {
  padding: 14px 16px 24px;
}

/* Full-width inline banners */
.banner-bar {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}

.banner-bar.success {
  background: var(--green-soft);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--green);
}

.banner-bar.danger {
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, 0.3);
  color: var(--danger);
}

.banner-bar.amber {
  background: var(--amber-soft);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--amber);
}

/* ==================== STAY CARD (AIRBNB DARK) ==================== */
.stay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.stay-photo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ==================== MINDTRIP PHOTO IDEAS SHELF ==================== */
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.section-title-btn {
  border: none;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.ideas-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.ideas-filter-row::-webkit-scrollbar {
  display: none;
}

.ideas-shelf {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ideas-shelf::-webkit-scrollbar {
  display: none;
}

.photo-idea-card {
  flex: 0 0 228px;
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.idea-photo-wrap {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: var(--surface-elevated);
  flex-shrink: 0;
}

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

.photo-idea-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glass-circle-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 11, 16, 0.68);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.glass-circle-btn.voted {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.idea-card-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
}

.photo-idea-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.photo-idea-meta {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.photo-idea-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  gap: 6px;
}

/* ==================== RODEO 7-DAY WEEK STRIP (WITH THUMBNAIL BADGES) ==================== */
.week-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 16px 0 10px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  scrollbar-width: none;
}

.week-strip::-webkit-scrollbar {
  display: none;
}

.week-tile {
  min-width: 56px;
  padding: 7px 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.week-tile.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.week-tile .w-dow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.7;
}

.week-tile .w-num {
  font-size: 15px;
  font-weight: 700;
}

.week-thumb-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.week-thumb-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.week-thumb-check {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 99px;
  background: var(--green);
  color: var(--black);
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== AIRBNB RAIL + MINDTRIP PHOTO TIMELINE CARDS ==================== */
.day-rail-group {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding-top: 12px;
}

.rail-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rail-day-badge {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}

.rail-day-badge .r-dow {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rail-day-badge .r-num {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
}

.rail-spine {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 6px;
  min-height: 20px;
}

.rail-content {
  padding-bottom: 20px;
  min-width: 0;
}

.fco-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.fco-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.itin-card {
  display: flex;
  gap: 11px;
  padding: 11px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 9px;
  align-items: flex-start;
}

.itin-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ==================== CREW & CARDS ==================== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px;
  margin-bottom: 12px;
}

.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.guest-row:last-child {
  border-bottom: none;
}

.overlap-wrap {
  overflow-x: auto;
}

.overlap-row {
  display: grid;
  grid-template-columns: 92px repeat(7, minmax(40px, 1fr));
  gap: 3px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  min-width: 380px;
  font-size: 11.5px;
}

.overlap-cell {
  height: 22px;
  border-radius: 6px;
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  color: var(--ink-muted);
}

.overlap-cell.on {
  background: var(--white);
  color: var(--black);
  font-weight: 700;
}

/* ==================== BOTTOM ACTION SHEET (NO CLIPPING) ==================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
}

.bottom-sheet {
  width: 100%;
  max-width: 406px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.sheet-title {
  padding: 10px 14px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-btn {
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border: none;
  background: transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-btn:hover, .sheet-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.sheet-btn.danger {
  color: var(--danger);
}

.sheet-cancel {
  margin-top: 6px;
  border-top: 1px solid var(--border);
  padding-top: 13px;
  justify-content: center;
  color: var(--ink-secondary);
}
.menu-anchor {
  position: relative;
  display: inline-flex;
}

.dot-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dot-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.menu-sheet {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 192px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  padding: 5px;
  z-index: 90;
}

.menu-row {
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-row.danger {
  color: var(--danger);
}

.wa-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  color: var(--ink-secondary);
  margin: 10px 0 12px;
}

/* ==================== ROME LIVE MAP & CREW PINS ==================== */
.rome-map-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0f131c;
  margin-bottom: 12px;
  position: relative;
}

.rome-map-canvas {
  width: 100%;
  height: 365px;
  background: #0f131c;
  z-index: 1;
}

.rome-map-canvas .leaflet-tile-pane {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(92%);
}

.rome-map-card.sat-mode .rome-map-canvas .leaflet-tile-pane {
  filter: none;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface-elevated) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65) !important;
}

.leaflet-popup-close-button {
  color: var(--ink-muted) !important;
}

.leaflet-control-attribution {
  background: rgba(11, 13, 18, 0.72) !important;
  color: var(--ink-muted) !important;
  font-size: 9px !important;
}

.leaflet-control-attribution a {
  color: var(--ink-secondary) !important;
}

.map-crew-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -85%);
}

.gmap-crew-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.gmap-info {
  color: #111827;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.4;
  min-width: 150px;
}

.map-crew-ring {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 3px solid var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  background: #272d3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-crew-ring.live {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.28), 0 4px 14px rgba(0, 0, 0, 0.75);
}

.map-crew-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-crew-label {
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.map-spot-pin {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 2px solid var(--amber);
  color: var(--white);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
}

.map-hotel-pin {
  border-color: #60a5fa;
  background: #172554;
}

/* ==================== EXPLORE RECOMMENDATIONS GRID ==================== */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.explore-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.explore-card-img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
}

.explore-card-body {
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 6px;
}

.autocomplete-wrap {
  position: relative;
  margin-bottom: 8px;
}

.autocomplete-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  z-index: 80;
}

.autocomplete-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item:active {
  background: rgba(255, 255, 255, 0.08);
}

.autocomplete-main {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.autocomplete-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== AI AVATAR STUDIO & PORTRAIT BUILDER ==================== */
.avatar-studio {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 12px;
}

.avatar-studio-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar.xl {
  width: 96px;
  height: 96px;
  font-size: 32px;
  margin-left: 0;
  border-color: var(--white);
}

.avatar-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 2px;
  scrollbar-width: none;
}

.avatar-gallery::-webkit-scrollbar {
  display: none;
}

.avatar-thumb-card {
  flex: 0 0 90px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  background: var(--surface-elevated);
  color: var(--ink-secondary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.avatar-thumb-card.active {
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.avatar-thumb-card img {
  width: 78px;
  height: 78px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}

.avatar-thumb-label {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 64px;
}

.portrait-controls {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.swatch-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
}

.swatch-dot.active {
  border-color: var(--white);
  transform: scale(1.12);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* ==================== SOCIAL MEMORIES FEED (MOBBIN INSTAGRAM + LOCKET) ==================== */
.feed-composer-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.feed-pick-btn {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  color: var(--ink);
  padding: 12px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.feed-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 14px;
}

.feed-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.feed-media-wrap {
  width: 100%;
  background: #06070a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 490px;
  overflow: hidden;
}

.feed-media-wrap img,
.feed-media-wrap video {
  width: 100%;
  max-height: 490px;
  object-fit: cover;
  display: block;
}

.feed-video-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--white);
}

.feed-body {
  padding: 10px 12px 12px;
}

.feed-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.feed-caption {
  font-size: 13.5px;
  line-height: 1.42;
  color: var(--ink);
}

.feed-loc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-top: 1px;
}

.feed-comments {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feed-comment-line {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.35;
}

/* ==================== INSTAGRAM SWIPE-UP + CAROUSEL MEMORIES ==================== */
.feed-snap-viewport {
  height: calc(100dvh - 188px);
  min-height: 495px;
  max-height: 760px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 18px;
}

.feed-snap-viewport::-webkit-scrollbar {
  display: none;
}

.feed-reel-slide {
  height: calc(100dvh - 188px);
  min-height: 495px;
  max-height: 760px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #06070a;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.feed-carousel-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #050608;
}

.feed-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-carousel::-webkit-scrollbar {
  display: none;
}

.feed-carousel-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050608;
}

.feed-carousel-item img,
.feed-carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 12px 26px;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.82) 0%, rgba(6, 7, 10, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 6;
  pointer-events: none;
}

.feed-top-overlay > * {
  pointer-events: auto;
}

.feed-counter-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.feed-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.55);
  backdrop-filter: blur(6px);
  z-index: 6;
}

.feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.18s ease, background 0.18s ease;
}

.feed-dot.active {
  width: 14px;
  background: var(--white);
}

.feed-mute-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
}

.feed-reel-foot {
  padding: 10px 12px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.feed-composer-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}

.feed-composer-strip::-webkit-scrollbar {
  display: none;
}

.feed-composer-thumb {
  position: relative;
  flex: 0 0 88px;
  height: 112px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #06070a;
}

.feed-composer-thumb img,
.feed-composer-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-composer-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: rgba(11, 13, 18, 0.85);
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== MULTI-TRIP SWITCHER & MULTI-RESULT SEARCH ==================== */
.trip-switcher-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  max-width: 155px;
}

.trip-switcher-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-drawer {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.trip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--ink);
  margin-bottom: 6px;
}

.trip-row.active {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.trip-row img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.place-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.place-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.place-result-row.active {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
}

/* ==================== 3-STEP ONBOARDING RSVP CARDS & COMEDY ==================== */
.rsvp-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.rsvp-choice-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  padding: 16px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.rsvp-choice-card:active {
  transform: scale(0.98);
}

.rsvp-choice-card.yes.active {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.rsvp-choice-card.no.active {
  border-color: var(--amber);
  background: rgba(251, 191, 36, 0.1);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

.joke-card {
  border: 1px dashed var(--amber);
  border-radius: var(--radius-md);
  background: rgba(251, 191, 36, 0.08);
  padding: 16px 14px;
  text-align: center;
}

/* ==================== MOBBIN 4-STEP ONBOARDING ==================== */
.ob-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
}

.ob-hero-bleed {
  position: relative;
  width: 100%;
  height: min(430px, 56dvh);
  min-height: 330px;
  max-height: 440px;
  overflow: hidden;
  background: #0b0d12 url('/images/ahl-el-7ayy-intro.jpg') center center / cover no-repeat;
}

.ob-hero-bleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.ob-loop-slide {
  opacity: 0;
  will-change: opacity, transform;
  animation: obTwilightLoop 30s infinite ease-in-out;
}

@keyframes obTwilightLoop {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  6% {
    opacity: 1;
    transform: scale(1.015);
  }
  17% {
    opacity: 1;
    transform: scale(1.045);
  }
  24% {
    opacity: 0;
    transform: scale(1.06);
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

.ob-arabic-wordmark {
  display: block;
  width: min(215px, 60vw);
  height: auto;
  margin: 4px auto 0;
  user-select: none;
  pointer-events: none;
}

.ob-sound-btn {
  position: absolute;
  bottom: 16px;
  right: 14px;
  z-index: 9;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(11, 13, 18, 0.62);
  backdrop-filter: blur(10px);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.ob-sound-btn svg {
  width: 18px;
  height: 18px;
}

.ob-sound-btn.playing {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.16);
}

.ob-phrase-stage {
  position: relative;
  height: 46px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ob-phrase-item {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-secondary);
  opacity: 0;
  animation: obPhraseRoll 32s infinite ease-in-out;
}

@keyframes obPhraseRoll {
  0% {
    opacity: 0;
    transform: translateY(7px);
  }
  2.5% {
    opacity: 1;
    transform: translateY(0);
  }
  10.5% {
    opacity: 1;
    transform: translateY(0);
  }
  13.5% {
    opacity: 0;
    transform: translateY(-7px);
  }
  100% {
    opacity: 0;
    transform: translateY(-7px);
  }
}

.ob-hero-bleed::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background: linear-gradient(180deg, rgba(11, 13, 18, 0) 0%, var(--bg) 100%);
  pointer-events: none;
  z-index: 6;
}

.ob-welcome-copy {
  padding: 6px 24px 0;
  text-align: center;
}

.ob-welcome-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 36px;
  line-height: 1.06;
  font-weight: 400;
  color: var(--white);
  margin: 0;
}

.ob-welcome-sub {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.ob-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.ob-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.ob-dot.active {
  width: 18px;
  background: var(--white);
}

.ob-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 6px;
}

.ob-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.ob-progress-track {
  flex: 1;
  max-width: 170px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin: 0 auto;
}

.ob-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--white);
  transition: width 0.25s ease;
}

.ob-skip-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.ob-nav-spacer {
  width: 38px;
  flex-shrink: 0;
}

.ob-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 12px;
}

.ob-body.centered {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 42px;
}

.ob-step-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--white);
  margin: 0 0 8px;
}

.ob-step-sub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-secondary);
  margin: 0 0 22px;
}

.ob-name-pill {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ob-name-pill:focus {
  border-color: var(--white);
  background: var(--surface-elevated);
}

.ob-avatar-stage {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 4px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ob-avatar-glow {
  position: absolute;
  inset: -16px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.ob-avatar-circle {
  width: 154px;
  height: 154px;
  border-radius: 999px;
  background: #232734;
  border: 2.5px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.ob-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ob-cam-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  border: 3px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}

.ob-foot {
  padding: 12px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-cta {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.ob-cta:active {
  transform: scale(0.985);
}

.ob-cta.muted {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
}

.ob-returning-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px 0;
  cursor: pointer;
  align-self: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ob-returning-tray {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 12px 14px;
}

.ob-returning-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.ob-returning-chip:active {
  transform: scale(0.97);
}

.ob-match-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ob-chip-del {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 2px;
}

/* ==================== AVATAR SHOWCASE MODAL ==================== */
.avatar-showcase-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.avatar-showcase-card {
  width: 100%;
  max-width: 340px;
  background: rgba(24, 27, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
  animation: avatarShowcasePop 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes avatarShowcasePop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.avatar-showcase-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-showcase-stage {
  position: relative;
  width: 246px;
  height: 246px;
  margin: 6px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-showcase-circle {
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: #232734;
  border: 3px solid rgba(255, 255, 255, 0.88);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.avatar-showcase-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-showcase-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 32px;
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 6px;
}

.avatar-showcase-sub {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 0 0 18px;
}

/* ==================== MODULE HEADERS & DEST PILL ==================== */
.module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.module-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.module-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.module-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-top: 3px;
}

.dest-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.dest-pill:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

/* ==================== CREW 4-DIGIT PIN AUTH ==================== */
.ob-pin-pill {
  width: 100%;
  max-width: 240px;
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  outline: none;
}

.ob-pin-pill::placeholder {
  letter-spacing: 0.4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.ob-pin-pill:focus {
  border-color: var(--white);
  background: var(--surface-elevated);
}

.ob-pin-hint {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 8px;
  max-width: 280px;
  line-height: 1.4;
}

/* ==================== INSTAGRAM / TIKTOK FULL-SCREEN POST COMPOSER ==================== */
.post-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(7, 9, 13, 0.96);
  display: flex;
  justify-content: center;
  overflow-y: auto;
}

.post-modal-sheet {
  width: 100%;
  max-width: 430px;
  min-height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.post-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(11, 13, 18, 0.94);
  backdrop-filter: blur(12px);
}

.post-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-stage-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 410px;
  background: #0d1017;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.post-stage-box img,
.post-stage-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-empty-picker {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 24px;
  text-align: center;
  color: var(--ink-secondary);
}

.post-empty-icon {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 4px;
}

.post-thumb-rail {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.post-thumb-rail::-webkit-scrollbar {
  display: none;
}

.post-thumb-tile {
  position: relative;
  flex: 0 0 60px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #141821;
  cursor: pointer;
  padding: 0;
}

.post-thumb-tile.active {
  border-color: var(--white);
}

.post-thumb-tile img,
.post-thumb-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-thumb-add {
  flex: 0 0 60px;
  height: 72px;
  border-radius: 10px;
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-secondary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.post-caption-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.post-caption-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  line-height: 1.4;
  resize: none;
  outline: none;
  font-family: inherit;
  padding: 2px 0;
}

.post-caption-input::placeholder {
  color: var(--ink-muted);
}

.post-loc-row {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
