/* ===== WoLuWa Design Tokens ===== */
:root {
  --pink:       #ff2d55;
  --pink-dark:  #ff4c90;
  --purple:     #ff375f;
  --deep:       #03060f;
  --ink:        #f2f6ff;
  --muted:      #b5c0d6;
  --line:       rgba(255,255,255,.14);
  --soft:       rgba(10, 16, 28, .8);
  --surface:    #050912;
  --shadow:     0 18px 48px rgba(0,0,0,.35);
  --radius-card: 20px;
  --radius-btn:  14px;
  --app-height: 100dvh;
  --app-max-width: none;
  --top-banner-offset: 0px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
/* ป้องกัน iOS auto-zoom ตอน focus input (ต้อง font-size >= 16px) */
input, select, textarea { font-size: 16px; }

/* ===== App Shell ===== */
body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 45, 85, 0.15), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(255, 159, 67, 0.1), transparent 40%),
    #000;
  display: flex;
  flex-direction: column;
}

.woluwa-app {
  height: 100vh;            /* fallback */
  height: 100dvh;           /* mobile-safe ไม่รวม URL bar */
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--app-height);
  max-width: var(--app-max-width);
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, #070c19 0%, #050912 100%);
  box-shadow: none;
  overflow: hidden;          /* ล็อค layout ไม่ให้ bounce */
}

.woluwa-app.chat-room-app {
  height: var(--chat-viewport-height, 100dvh);
}

/* ===== Page Wrapper ===== */
.woluwa-page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top, 0px) + 20px + var(--top-banner-offset, 0px)) 20px calc(env(safe-area-inset-bottom, 0px) + 100px);
}

.woluwa-page.no-nav {
  padding-bottom: 28px;
}

/* ===== Bottom Navigation ===== */
.woluwa-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
  border-top: 1px solid rgba(255,255,255,.14);
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(7, 12, 24, .9), rgba(3, 7, 15, .96));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 -18px 44px rgba(0,0,0,.38);
  z-index: 100;
}

.woluwa-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px 0 0;
  border-radius: 18px;
  color: rgba(233, 240, 255, .72);
  text-decoration: none;
  font-size: 9px;
  font-weight: 700;
  transition: color .15s ease, transform .15s ease;
}

.woluwa-bottom-nav .nav-item i {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}
.woluwa-bottom-nav .nav-theme-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.nav-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.woluwa-bottom-nav .nav-item:hover .nav-icon-wrap {
  transform: translateY(-1px);
}
.woluwa-bottom-nav .nav-item.active .nav-icon-wrap {
  background: radial-gradient(circle at 50% 10%, rgba(255, 96, 164, .32), rgba(255, 45, 85, .08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255, 78, 151, .28), 0 0 18px rgba(255, 45, 85, .2);
}
.nav-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #ff2d55;
  color: #fff;
  font-size: 8px; font-weight: 800;
  line-height: 14px;
  padding: 0;
  border: 1.5px solid #000;
  pointer-events: none;
  text-align: center;
}

.woluwa-bottom-nav .nav-item.active {
  color: #ff4c90;
  background: transparent;
}

.notify-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff2d55;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 45, 85, .38);
}

/* ===== Buttons ===== */
.btn-woluwa {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: var(--radius-btn);
  font-weight: 800;
  font-size: 16px;
  transition: opacity .15s, transform .1s;
}
.btn-woluwa:active { transform: scale(.97); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 22px rgba(201,47,124,.25);
}

.btn-outline {
  color: var(--purple);
  background: #fff;
  border: 1.5px solid var(--purple);
}

.btn-ghost {
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.65);
}

.btn-text {
  background: transparent;
  border: 0;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.btn-sm-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

/* ===== Chip / Tags ===== */
.chip-group, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-section { margin: 16px 0; }
.chip-section h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--ink); }

.chip {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #594366;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}
.chip.selected, .chip:hover {
  color: var(--pink-dark);
  border-color: #f5b5d1;
  background: #fff0f7;
}
.chip.small { font-size: 12px; padding: 5px 10px; }

/* ===== Segmented Control ===== */
.woluwa-segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #f4edf9;
  margin-bottom: 16px;
}
.woluwa-segmented button {
  min-height: 32px;
  border: 0;
  border-radius: 11px;
  color: #806b91;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}
.woluwa-segmented button.active {
  color: #fff;
  background: var(--purple);
}

/* ===== Card ===== */
.woluwa-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 6px 18px rgba(67,27,91,.07);
  padding: 16px;
  margin-bottom: 14px;
}

/* ===== Page Header ===== */
.page-header {
  padding: 14px 0 8px;
}
.page-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}
.page-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.top-bar h1, .top-bar h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  min-width: 0;
}

.icon-btn {
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  color: var(--purple);
  background: #f7efff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.chat-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #ede9fe;
  border-radius: 50%;
}
.chat-logo i {
  color: #8b5cf6;
  font-size: 25px;
  line-height: 1;
}
.chat-logo .logo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

/* ===== Avatar ===== */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, #f08bbb, #7a35c8);
  flex-shrink: 0;
}
.avatar-lg { width: 82px; height: 82px; font-size: 28px; border: 4px solid #fff; box-shadow: 0 8px 18px rgba(50,20,80,.18); }
.avatar-md { width: 52px; height: 52px; font-size: 18px; }
.avatar-sm { width: 40px; height: 40px; font-size: 15px; }
.avatar-xs { width: 30px; height: 30px; font-size: 12px; }
.avatar-mint { background: linear-gradient(135deg, #f15e9d, #fac84a 55%, #67c7ba); }
.avatar-jade { background: linear-gradient(135deg, #2bc0b4, #7a35c8); }
.avatar-amber { background: linear-gradient(135deg, #f6a03b, #e83e8c); }

/* ===== Welcome Page ===== */
.welcome-page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 12%, rgba(232,62,140,.16), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(122,53,200,.13), transparent 24%),
    linear-gradient(135deg, #fff8fc 0%, #fbf5ff 48%, #fff 100%);
}

.brand-mark {
  width: 88px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  border: 6px solid var(--pink);
  border-top-color: var(--purple);
  border-radius: 44% 44% 48% 48%;
  color: var(--purple);
  font-size: 34px; font-weight: 900;
}

.welcome-title {
  color: var(--pink-dark);
  font-size: 42px; font-weight: 900; margin: 0;
}
.welcome-tagline {
  color: var(--muted);
  font-size: 16px; margin: 6px 0 28px;
}

.people-art {
  width: 260px; height: 160px;
  border-radius: 34px;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 8px; padding: 20px;
  background: linear-gradient(135deg, #ffe0f0, #efe3ff);
  margin: 0 auto 32px;
}
.people-art span {
  width: 42px; border-radius: 24px 24px 12px 12px;
  background: var(--pink);
}
.people-art span:nth-child(1) { height: 86px; }
.people-art span:nth-child(2) { height: 104px; background: #f6a03b; }
.people-art span:nth-child(3) { height: 120px; background: #7a35c8; }
.people-art span:nth-child(4) { height: 96px; background: #5dc0b4; }
.people-art span:nth-child(5) { height: 80px; background: #5832a8; }

.welcome-actions { display: grid; gap: 12px; width: 100%; max-width: 320px; }
.welcome-actions .btn-woluwa {
  gap: 8px;
}
.welcome-actions .btn-woluwa i {
  flex: 0 0 auto;
  margin: 0 !important;
}
.welcome-actions .btn-woluwa .btn-label {
  text-align: center;
}
.welcome-safe-note { color: var(--purple); font-size: 12px; margin-top: 4px; }

/* ===== Discover Card Stack ===== */
#matchCardStack {
  position: relative;
  min-height: 520px;
  padding-bottom: 24px;
}
#nextCard {
  display: none !important;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 440px;
  transform: scale(0.94) translateY(12px);
  transform-origin: bottom center;
  z-index: 0;
  pointer-events: none;
  transition: transform .15s ease;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
#nextCard .match-info { pointer-events: none; }

/* ===== Discover / Match Card ===== */
.match-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eee;
  min-height: 440px;
  user-select: none;
  cursor: grab;
  will-change: transform;
  z-index: 1;
}
.match-card:active { cursor: grabbing; }

/* Swipe overlay labels */
.swipe-label {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  transition: opacity .1s;
  text-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.swipe-label i { font-size: 80px; line-height: 1; }
.swipe-label-like {
  color: #e83e8c;
}
.swipe-label-nope {
  color: #fff;
}

.match-portrait {
  position: relative;
  width: 100%; height: 440px;
  background: linear-gradient(135deg, #f15e9d, #fac84a 55%, #67c7ba);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.match-portrait-placeholder {
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 60px 0 20px rgba(255,255,255,.38);
}
.demo-profile-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 24;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 18, 26, .8);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  pointer-events: none;
}
.profile-hero .demo-profile-badge,
.liker-avatar .demo-profile-badge {
  right: -6px;
  bottom: -2px;
  font-size: 9px;
  padding: 4px 7px;
}

.match-info {
  position: absolute;
  inset: auto 16px 16px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.match-info h2 { font-size: 28px; font-weight: 900; margin: 0; }
.match-info p { margin: 3px 0 10px; font-weight: 700; font-size: 14px; }
.match-info .online-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: #31d391; margin-right: 4px;
}
.match-tag {
  display: inline-block;
  padding: 5px 10px; margin-right: 5px;
  border-radius: 999px;
  background: rgba(37,18,60,.65);
  font-size: 12px; font-weight: 700;
}

.swipe-actions {
  display: flex; justify-content: center;
  gap: 22px; margin-top: 18px;
}
.swipe-btn {
  width: 60px; height: 60px;
  border: 0; border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(67,27,91,.16);
  font-size: 24px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  transition: transform .1s;
}
.swipe-btn:active { transform: scale(.92); }
.swipe-btn.reject { color: #8d7b96; }
.swipe-btn.back        { color: #7a35c8; }
.swipe-btn.star        { color: #ffb22c; }
.swipe-btn.like        { color: #fff; background: var(--pink); box-shadow: 0 8px 20px rgba(232,62,140,.35); }
.swipe-btn.star.acted  { background: #fff8e6; box-shadow: 0 0 0 3px #ffb22c; }
.swipe-btn.like.acted  { box-shadow: 0 0 0 3px var(--pink), 0 8px 20px rgba(232,62,140,.35); }

/* ===== Card Detail ===== */
.card-detail {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 10px;
  box-shadow: 0 2px 12px rgba(50,20,80,.07);
}
.card-detail-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f3e6f8;
  font-size: 14px;
}
.card-detail-row:last-child { border-bottom: none; }
.card-detail-label {
  min-width: 90px; font-weight: 700;
  color: var(--purple); flex-shrink: 0;
}
.card-detail-val { color: #333; line-height: 1.4; }

/* ===== Discover (Reference Theme) ===== */
.discover-page {
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  background: 
    radial-gradient(circle at 0% 0%, rgba(255, 45, 85, 0.15), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(255, 159, 67, 0.1), transparent 40%),
    #000;
  color: #eef3ff;
  min-height: 100vh;
}

@keyframes sound-wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(2); }
}

.discover-page #matchCardStack {
  min-height: 580px;
  padding-bottom: 22px;
  position: relative;
}
.discover-page .match-card,
.discover-page #nextCard {
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .8);
  overflow: hidden;
  position: absolute;
  width: calc(100% - 32px);
  left: 16px;
}
.discover-page .match-portrait,
.discover-page #nextCard {
  height: 600px;
  position: relative;
}
.discover-page .match-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.discover-page .match-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}
.discover-page .match-info {
  position: absolute;
  z-index: 20;
  width: 100%;
}
.discover-page .match-info h2 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 4px;
}
.discover-page .match-info p {
  color: #fff;
  margin-bottom: 12px;
}
.discover-page .match-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.compatibility-badge {
  position: absolute;
  z-index: 25;
  text-align: center;
}
.compatibility-ring {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  font-weight: 800;
  color: #fff;
}

.swipe-btn {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.swipe-btn:active {
  transform: scale(0.9);
}

.swipe-btn i {
  line-height: 1;
}

.discover-music-card .sound-bars .bar {
  transform-origin: bottom;
}
.discover-music-card {
  margin-top: 16px;
  border-radius: 22px;
  padding: 14px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(6, 11, 22, .66);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.music-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4b93;
  background: rgba(255, 75, 147, .18);
}
.music-copy strong {
  display: block;
  color: #ff5da1;
  font-size: 22px;
  line-height: 1;
}
.music-copy p {
  margin: 5px 0 0;
  color: #f4f8ff;
  font-size: 15px;
}
.music-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #edf3ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255,255,255,.12);
}
.discover-page .card-detail {
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(7, 14, 26, .7);
}
.discover-page .card-detail-label,
.discover-page .card-detail-val {
  color: #e8f0fb;
}
.discover-page .card-detail-row {
  border-bottom-color: rgba(255, 255, 255, .12);
}
.discover-page ~ .woluwa-bottom-nav,
.woluwa-app:has(.discover-page) .woluwa-bottom-nav {
  border-top-color: rgba(255, 255, 255, .16);
  background: rgba(6, 10, 18, .88);
}
.woluwa-app:has(.discover-page) .woluwa-bottom-nav .nav-item {
  color: #c9d6ee;
}
.woluwa-app:has(.discover-page) .woluwa-bottom-nav .nav-item.active {
  color: #ff4e97;
}
@media (max-width: 480px) {
  .discover-page .top-bar h1 {
    font-size: 40px;
  }
  .discover-page .match-portrait,
  .discover-page #nextCard {
    height: 456px;
  }
  .discover-page .match-info h2 {
    font-size: 34px;
  }
  .compatibility-ring {
    width: 78px;
    height: 78px;
  }
  .compatibility-ring span {
    font-size: 20px;
  }
  .discover-page .swipe-btn {
    width: 58px;
    height: 58px;
  }
  .discover-page .swipe-btn.like {
    width: 72px;
    height: 72px;
  }
}

/* ===== Match Success ===== */
.match-success-page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,202,40,.25), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(232,62,140,.32), transparent 20%),
    linear-gradient(165deg, #28114c 0%, #38165f 58%, #211038 100%);
}
.match-confetti {
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, #ffcc3d 2px, transparent 3px),
    radial-gradient(circle, #ff4ca3 2px, transparent 3px),
    radial-gradient(circle, #4ed0c3 2px, transparent 3px);
  background-size: 42px 42px, 58px 58px, 70px 70px;
  animation: confetti-fall 3s linear infinite;
  opacity: .6;
}
@keyframes confetti-fall {
  from { background-position: 0 -100px, 0 -60px, 0 -80px; }
  to   { background-position: 0 100vh, 0 100vh, 0 100vh; }
}
.match-pair {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 32px 0;
}
.match-pair .heart-badge {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
}
.match-success-title { font-size: 32px; font-weight: 900; margin: 0; }
.match-success-sub { font-size: 16px; margin: 8px 0 0; opacity: .85; }

/* ===== Chat List ===== */
.chat-page {
  --chat-text-scale: .8;
  padding-top: calc(env(safe-area-inset-top, 0px) + 18px + var(--top-banner-offset, 0px));
}
.chat-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.chat-hero-top h1 {
  margin: 0;
  font-size: calc(34px * var(--chat-text-scale));
  font-weight: 800;
  letter-spacing: -.03em;
}
.chat-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chat-top-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5f8ff;
  text-decoration: none;
  font-size: 22px;
  border: 0;
  background: transparent;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.chat-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(14, 22, 38, .9), rgba(7, 12, 23, .82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.chat-search-wrap i {
  color: rgba(223, 232, 248, .62);
  font-size: 18px;
}
.chat-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #f4f7ff;
  background: transparent;
  font-size: calc(16px * var(--chat-text-scale));
}
.chat-search-wrap input::placeholder {
  color: rgba(197, 208, 229, .62);
}
.chat-filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chat-filter-row::-webkit-scrollbar {
  display: none;
}
.chat-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(13, 20, 34, .82);
  color: rgba(234, 239, 248, .86);
  font-size: calc(14px * var(--chat-text-scale));
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.chat-filter-pill i {
  font-size: 14px;
  line-height: 1;
}
.chat-filter-pill span {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: calc(11px * var(--chat-text-scale));
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,.12);
}
.chat-filter-pill.active {
  color: #fff;
  border-color: rgba(255, 78, 151, .4);
  background: linear-gradient(135deg, rgba(255, 45, 85, .96), rgba(255, 75, 135, .92));
  box-shadow: 0 9px 22px rgba(255, 45, 85, .22);
}
.chat-feature-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 24%),
    radial-gradient(circle at 88% 22%, rgba(255, 45, 85, .22), transparent 18%),
    linear-gradient(135deg, rgba(48, 14, 45, .96), rgba(16, 11, 33, .96) 55%, rgba(37, 8, 32, .96));
  border: 1px solid rgba(255, 97, 161, .72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 0 2px rgba(255, 45, 85, .12), 0 20px 45px rgba(0,0,0,.38);
}
.chat-feature-avatar,
.chat-thread-avatar {
  position: relative;
  flex-shrink: 0;
}
.chat-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-feature-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff5da1);
  border: 2px solid rgba(6, 8, 14, .92);
  box-shadow: 0 10px 20px rgba(255, 45, 85, .34);
}
.chat-feature-copy {
  min-width: 0;
}
.chat-feature-copy strong {
  display: block;
  font-size: calc(16px * var(--chat-text-scale));
  line-height: 1.25;
}
.chat-feature-copy p {
  margin: 6px 0 0;
  color: rgba(238, 242, 251, .72);
  font-size: calc(14px * var(--chat-text-scale));
}
.chat-feature-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2d55, #ff5d9f);
  color: #fff;
  font-size: calc(16px * var(--chat-text-scale));
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 45, 85, .24);
}
.chat-thread-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-thread-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(10, 17, 29, .88), rgba(6, 11, 20, .82));
  box-shadow: 0 18px 42px rgba(0,0,0,.26);
}
.chat-thread-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 98px;
  padding: 16px 18px;
  color: inherit;
}
.chat-thread-body {
  min-width: 0;
}
.chat-thread-body h3 {
  margin: 0;
  font-size: calc(18px * var(--chat-text-scale));
  font-weight: 800;
  color: #f8fbff;
}
.chat-thread-body p {
  margin: 6px 0 0;
  color: rgba(213, 222, 239, .7);
  font-size: calc(14px * var(--chat-text-scale));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-thread-meta {
  min-width: 54px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.chat-thread-time {
  color: rgba(208, 217, 234, .68);
  font-size: calc(13px * var(--chat-text-scale));
}
.chat-online-dot {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #51d55f;
  border: 2px solid rgba(6, 11, 20, .94);
  box-shadow: 0 0 0 3px rgba(81, 213, 95, .16);
}
.chat-badge {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), #ff5da1);
  color: #fff;
  font-size: calc(13px * var(--chat-text-scale));
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(255, 45, 85, .28);
}
.chat-delete-btn.chat-thread-delete {
  right: 14px;
  width: 36px;
  height: 36px;
}
.chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 34px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(10, 17, 29, .9), rgba(6, 11, 20, .82));
}
.chat-empty-state strong {
  font-size: calc(18px * var(--chat-text-scale));
}
.chat-empty-state p {
  margin: 0;
  color: rgba(213, 222, 239, .72);
  font-size: calc(14px * var(--chat-text-scale));
}
.chat-empty-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 45, 85, .14);
  color: #ff5a9d;
  font-size: 28px;
}
.chat-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: calc(16px * var(--chat-text-scale));
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), #ff5da1);
}
.chat-empty-state-inline {
  margin-top: 4px;
}
.chat-start-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  margin-top: 2px;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff1367 0%, #ff2d86 45%, #f20e73 100%);
  color: #fff;
  box-shadow: 0 16px 32px rgba(242, 14, 115, .24);
}
.chat-start-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff2d76;
  background: rgba(255,255,255,.92);
  font-size: 22px;
}
.chat-start-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-start-copy strong {
  font-size: calc(18px * var(--chat-text-scale));
  line-height: 1.1;
}
.chat-start-copy small {
  color: rgba(255,255,255,.86);
  font-size: calc(13px * var(--chat-text-scale));
}
.chat-start-arrow {
  font-size: 22px;
  line-height: 1;
}
.chat-list-item:hover,
.chat-thread-card:hover {
  background: var(--glass-hover);
}

/* ===== Chat Room ===== */
.chat-room-header {
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  flex-shrink: 0; z-index: 10;
}
.chat-room-header h2 { margin: 0; font-size: 17px; font-weight: 800; }
.chat-room-header .online { color: #1cae75; font-size: 12px; font-weight: 700; }

.chat-messages {
  flex: 1; min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  touch-action: pan-y;
}
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(122, 53, 200, .28);
}
.chat-messages {
  scrollbar-color: rgba(122, 53, 200, .35) transparent;
  scrollbar-width: thin;
}
.chat-date-label {
  align-self: center; padding: 6px 14px;
  border-radius: 999px; background: #f5eef9;
  color: #806b91; font-size: 12px;
}
.bubble {
  max-width: 80%; padding: 11px 14px;
  border-radius: 17px 17px 17px 5px;
  color: #54415f; background: #f6f2f9;
  font-size: 14px; line-height: 1.5;
  align-self: flex-start;
}
.bubble.me {
  align-self: flex-end;
  color: #fff;
  border-radius: 17px 17px 5px 17px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}
.voice-message {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}
.voice-message i {
  flex-shrink: 0;
  font-size: 20px;
}
.voice-message audio {
  width: 190px;
  max-width: 56vw;
  height: 34px;
}

.chat-composer {
  position: relative; flex-shrink: 0;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
  gap: 8px; align-items: center;
  padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); z-index: 50;
}
.chat-composer input {
  height: 44px; border: 1px solid var(--line);
  border-radius: 999px; padding: 0 16px; font-size: 14px;
  width: 100%; min-width: 0; background: #fff;
}
.chat-composer input:focus { outline: none; border-color: var(--purple); }
.chat-composer .send-btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--purple); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.chat-composer .emoji-btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #f3eafb; color: var(--purple); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.chat-composer .emoji-btn:hover { background: #e9dcf6; }
.chat-composer .record-btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #f3eafb; color: var(--purple); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; flex-shrink: 0;
  box-shadow: none;
}
.chat-composer .record-btn.is-recording {
  color: #fff;
  background: #e33b60;
  animation: record-pulse 1s ease-in-out infinite;
}
@media (max-width: 380px) {
  .chat-composer {
    grid-template-columns: 40px minmax(0, 1fr) 40px 40px;
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .chat-composer .emoji-btn,
  .chat-composer .record-btn,
  .chat-composer .send-btn {
    width: 40px;
    height: 40px;
  }
  .chat-composer input {
    height: 40px;
    padding: 0 12px;
  }
}
@keyframes record-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 59, 96, .35); }
  50% { box-shadow: 0 0 0 7px rgba(227, 59, 96, 0); }
}
.emoji-panel {
  position: absolute; bottom: calc(100% + 4px); left: 12px; right: 12px;
  max-height: 220px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(89,33,138,.12);
  padding: 10px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
  z-index: 60;
}
.emoji-panel .emoji-item {
  border: 0; background: transparent; font-size: 22px; line-height: 1;
  padding: 6px 0; border-radius: 8px; cursor: pointer;
}
.emoji-panel .emoji-item:hover { background: #f3eafb; }

.prompt-chips { padding: 8px 16px; display: flex; gap: 8px; overflow-x: auto; flex-shrink: 0; }
.prompt-chips button {
  white-space: nowrap; padding: 7px 12px; border: 0;
  border-radius: 999px; color: var(--purple); background: #f3eafb;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.voice-call-panel {
  flex-shrink: 0;
  padding: 10px 16px 0;
  background: rgba(255,255,255,.96);
  z-index: 20;
}
.voice-call-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(122, 53, 200, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 22px rgba(55, 21, 86, .12);
  backdrop-filter: blur(14px);
}
.voice-call-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.voice-call-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.voice-call-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.voice-call-copy strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}
.voice-call-copy span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.voice-call-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.voice-call-action {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.voice-call-action.accept { background: #16a76c; }
.voice-call-action.end { background: #e33b60; }
.voice-call-action.speaker,
.voice-call-action.mute {
  color: var(--purple);
  background: #f3eafb;
}
.voice-call-action.is-off,
.voice-call-action.is-muted {
  color: #fff;
  background: #6c5b7d;
}

/* ===== Community ===== */
.group-card {
  display: grid; grid-template-columns: 52px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  margin-bottom: 10px;
}
.group-thumb {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, #783bd2, #eb3d91);
}
.group-card h3 { margin: 0; font-size: 14px; font-weight: 900; }
.group-card p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.group-card .arrow { color: var(--purple); font-size: 20px; font-weight: 900; }

.event-card {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 14px; padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fff0f7);
  border: 1px solid var(--line); margin-bottom: 14px;
}
.event-thumb {
  border-radius: 12px; min-height: 120px;
  background: linear-gradient(135deg, #2b105e, #eb3d91 58%, #f7c845);
}
.event-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 900; }
.event-card p { color: var(--muted); font-size: 12px; margin: 0 0 10px; }

/* ===== Safety ===== */
.verified-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, #f0fff8, #e8f7ff);
  border: 1px solid #b8eedd; margin-bottom: 16px;
}
.verified-card .check-badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: #1cae75; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.verified-card strong { font-size: 15px; }
.verified-card span { color: var(--muted); font-size: 12px; }

.settings-card {
  border-radius: 18px; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(67,27,91,.06);
  margin-bottom: 14px; overflow: hidden;
}
.settings-card .settings-title {
  padding: 12px 16px 4px;
  font-size: 13px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-top: 1px solid #f0e7f5;
  font-size: 14px; color: #4c3a59; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left;
}
.settings-row:first-of-type { border-top: 0; }
.settings-row .row-value { color: var(--muted); font-size: 12px; }
.settings-row .row-arrow { color: var(--purple); }

/* ===== Dual Range Slider ===== */
.dual-range-slider {
  position: relative;
  height: 24px;
  margin: 8px 0;
}
.dual-range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  transform: translateY(-50%);
  overflow: hidden;
}
.dual-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 3px;
}
.dual-range-input {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 24px;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
}
.dual-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.1s;
}
.dual-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
.dual-range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.1s;
}
.dual-range-input::-moz-range-thumb:hover {
  transform: scale(1.1);
}
.dual-range-input.dual-range-min::-webkit-slider-thumb {
  background: #6c757d;
}
.dual-range-input.dual-range-min::-moz-range-thumb {
  background: #6c757d;
}
.dual-range-input.dual-range-max::-webkit-slider-thumb {
  background: var(--pink);
}
.dual-range-input.dual-range-max::-moz-range-thumb {
  background: var(--pink);
}

/* ===== Notifications ===== */
.notif-item {
  display: grid; grid-template-columns: 46px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  margin-bottom: 10px;
}
.notif-item.unread { background: #fff8fd; border-color: #f5c9e5; }
.notif-item h3 { margin: 0; font-size: 14px; font-weight: 800; }
.notif-item p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.notif-icon { font-size: 22px; }

/* ===== Account / Profile ===== */
.profile-hero {
  text-align: center; padding: 24px 0 16px;
}
.profile-hero h2 { font-size: 22px; font-weight: 900; margin: 12px 0 4px; }
.profile-hero .online-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 999px; background: #e6faf2;
  color: #1cae75; font-size: 12px; font-weight: 700;
}

.install-banner {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, #fff0f7, #f3e8ff);
  border: 1px solid var(--line); margin-bottom: 14px;
}
.install-banner .install-text { flex: 1; }
.install-banner strong { font-size: 14px; }
.install-banner p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.is-standalone .install-banner { display: none !important; }
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  .install-banner { display: none !important; }
}
.woluwa-install-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  flex-shrink: 0;
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px 16px;
  box-shadow: 0 8px 18px rgba(67,27,91,.08);
  z-index: 110;
}
.account-install-banner { display: none; }
.hidden-account-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 !important;
  border-radius: 0 !important;
  z-index: 111;
}
.install-close-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hidden-account-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 12px 18px;
  background: linear-gradient(135deg, #fff0f7, #f3e8ff);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(67,27,91,.08);
  z-index: 111;
}
.hidden-account-copy {
  flex: 1;
  min-width: 0;
  color: #21172d;
}
.hidden-account-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}
.hidden-account-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #6b6077;
  background: rgba(255,255,255,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

/* ===== Form ===== */
.woluwa-form label {
  display: block; color: #5f536b; font-size: 12px; font-weight: 700; margin-bottom: 4px;
}
.woluwa-form .form-control,
.woluwa-form .form-select {
  min-height: 46px; border-color: var(--line);
  border-radius: 12px; font-size: 14px;
}
.woluwa-form .form-control:focus,
.woluwa-form .form-select:focus {
  border-color: var(--purple); box-shadow: 0 0 0 3px rgba(122,53,200,.1);
}

.location-picker-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
}
.location-picker-field .form-control {
  min-width: 0;
}
.location-map-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.location-map-modal .modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}
.location-map-modal .modal-header,
.location-map-modal .modal-footer {
  border-color: var(--line);
}
.profile-location-map {
  width: 100%;
  height: min(62vh, 460px);
  min-height: 320px;
  border-radius: 12px;
  background: #f7f2fa;
}
.location-map-status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.location-current-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--purple);
  font-weight: 800;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.location-confirm-btn {
  width: auto;
  min-width: 148px;
  min-height: 44px;
  padding: 0 18px;
}

@media (max-width: 575.98px) {
  .location-map-modal .modal-content {
    min-height: 100dvh;
    border-radius: 0;
  }
  .location-map-modal .modal-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .profile-location-map {
    flex: 1;
    min-height: 420px;
    height: auto;
  }
  .location-map-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
  }
  .location-current-btn,
  .location-confirm-btn {
    width: 100%;
  }
}

.avatar-upload-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  margin: 12px 0; position: relative;
}
.camera-overlay {
  position: absolute; top: 52px; left: calc(50% + 22px);
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid #fff;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer;
}
.avatar-upload-wrap span { color: var(--muted); font-size: 12px; }

/* ===== Offline Page ===== */
.offline-page {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
}
.offline-page h2 { font-size: 24px; font-weight: 900; margin: 16px 0 8px; }
.offline-page p { color: var(--muted); }

/* ===== Utilities ===== */
.text-pink { color: var(--pink); }
.text-purple { color: var(--purple); }
.text-muted-soft { color: var(--muted); }
.bg-soft { background: var(--soft); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ===== Animations ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .35s ease both; }

@keyframes pop-in {
  0%   { opacity: 0; transform: scale(.88); }
  70%  { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
.pop-in { animation: pop-in .4s ease both; }

/* ===== Story Indicator ===== */
.story-indicator {
  position: absolute;
  top: 10px; left: 8px; right: 8px;
  display: flex; gap: 4px;
  z-index: 10; pointer-events: none;
}
.story-bar {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.38);
  transition: background .2s;
}
.story-bar.active { background: rgba(255,255,255,.95); }
.story-tap-left,
.story-tap-right {
  position: absolute; top: 0; bottom: 0; width: 45%;
  z-index: 9; cursor: pointer;
  touch-action: pan-y;
}
.story-tap-left  { left: 0; }
.story-tap-right { right: 0; }

/* ===== Swipe Card Animation ===== */
.match-card.swipe-left  { animation: swipe-left  .35s ease forwards; }
.match-card.swipe-right { animation: swipe-right .35s ease forwards; }
@keyframes swipe-left  { to { opacity: 0; transform: translateX(-120%) rotate(-18deg); } }
@keyframes swipe-right { to { opacity: 0; transform: translateX(120%)  rotate(18deg);  } }

/* ===== Chat Delete Button ===== */
.chat-delete-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: #f3e6f8; color: #8d7b96; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.chat-delete-btn:hover { background: #fce4ef; color: var(--pink); }

/* ===== Likes Received Page ===== */
.like-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; border-radius: 999px;
  background: var(--pink); color: #fff;
  font-size: 12px; font-weight: 700; padding: 0 6px;
  vertical-align: middle; margin-left: 8px;
}
.liker-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f3e6f8;
}
.liker-card:last-child { border-bottom: none; }
.liker-avatar {
  position: relative; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%; overflow: visible;
}
.liker-avatar img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
}
.liker-star-badge {
  position: absolute; bottom: -2px; right: -4px;
  font-size: 14px; line-height: 1;
}
.liker-info { flex: 1; min-width: 0; }
.liker-info h3 { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.liker-remove-btn {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: #f3e6f8; color: #8d7b96; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.liker-remove-btn:hover { background: #fce4ef; color: var(--pink); }

/* ===== Super Like Animation ===== */
@keyframes superPop {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.6); }
  40%  { opacity: 1; transform: translate(-50%,-50%) scale(1.15); }
  70%  { transform: translate(-50%,-50%) scale(.95); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.1); }
}

/* ===== Step Indicator ===== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 0;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  transition: all .2s;
}
.step-item.active .step-circle {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 4px 12px rgba(232,62,140,.3);
}
.step-item.completed .step-circle {
  background: var(--purple);
  color: #fff;
}
.step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  transition: color .2s;
}
.step-item.active .step-label,
.step-item.completed .step-label {
  color: var(--purple);
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 4px;
  transition: background .2s;
}
.step-item.completed + .step-line {
  background: var(--purple);
}

/* ===== Step Content ===== */
.step-content {
  animation: fade-up .3s ease;
}

/* ===== MBTI Chip ===== */
.mbti-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.mbti-chip {
  display: inline-block;
  padding: 8px 14px;
  background: #f3e6f8;
  color: var(--purple);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all .2s;
}
.mbti-radio:checked + .mbti-chip {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 4px 12px rgba(232,62,140,.3);
}

/* ===== Responsive ===== */
@media (min-width: 1025px) {
  :root { --app-height: calc(100dvh - 40px); --app-max-width: 480px; }
  .woluwa-app { border-radius: 32px; margin-top: 20px; margin-bottom: 20px; min-height: calc(100vh - 40px); box-shadow: var(--shadow); }
}
@media (max-width: 360px) {
  .woluwa-page { padding-left: 14px; padding-right: 14px; }
  .event-card { grid-template-columns: 1fr; }
}

/* ===== Community Page ===== */
.community-card {
  display: block;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(67,27,91,.06);
  transition: box-shadow .15s;
}
.community-card:hover {
  box-shadow: 0 6px 20px rgba(67,27,91,.12);
}
.community-thumb {
  width: 100%;
  height: 140px;
  background-size: cover !important;
  background-position: center !important;
}
.community-info {
  padding: 14px 16px;
}
.community-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}
.community-info p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.community-info .btn-sm-pill {
  margin-top: 4px;
}

/* ===== Discover Theme Everywhere ===== */
:root {
  --deep: #03060f;
  --ink: #f2f6ff;
  --muted: #b5c0d6;
  --line: rgba(255,255,255,.14);
  --soft: rgba(10, 16, 28, .78);
  --surface: rgba(7, 14, 26, .72);
  --surface-strong: rgba(9, 16, 30, .9);
  --glass: rgba(255,255,255,.075);
  --glass-hover: rgba(255,255,255,.11);
  --shadow: 0 20px 60px rgba(0,0,0,.56);
}

body,
.woluwa-app,
.woluwa-page {
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 45, 85, .15), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(255, 159, 67, .1), transparent 40%),
    #000;
}

.woluwa-page {
  background-attachment: local;
}

.page-header h1,
.top-bar h1,
.top-bar h2,
.profile-hero h2,
.community-info h3,
.settings-row,
.chat-list-item,
.event-card,
.group-card,
.notif-item,
.woluwa-card {
  color: var(--ink);
}

.page-header p,
.event-card p,
.group-card p,
.community-info p,
.settings-row .row-value,
.chat-list-item p,
.notif-item p {
  color: var(--muted);
}

.woluwa-card,
.settings-card,
.event-card,
.group-card,
.community-card,
.chat-list-item,
.notif-item,
.card-detail,
.install-banner,
.verified-card,
.matches-empty,
.discover-music-card {
  border: 1px solid rgba(255,255,255,.14);
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(0,0,0,.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.woluwa-card,
.settings-card,
.event-card,
.community-card,
.chat-list-item,
.notif-item,
.card-detail {
  color: var(--ink);
}

.chat-list-item:hover,
.community-card:hover {
  background: var(--glass-hover);
  box-shadow: 0 22px 56px rgba(0,0,0,.42);
}

.card-detail-row,
.liker-card,
.settings-row {
  border-color: rgba(255,255,255,.12);
}

.card-detail-label,
.card-detail-val {
  color: #e8f0fb;
}

.settings-card .settings-title {
  color: #ff5da1;
}

.settings-row {
  background: transparent;
}

.settings-row:hover {
  background: rgba(255,255,255,.06);
}

.icon-btn,
.location-map-btn,
.location-current-btn,
.liker-remove-btn,
.chat-delete-btn {
  color: #edf3ff;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.icon-btn:hover,
.location-map-btn:hover,
.location-current-btn:hover,
.liker-remove-btn:hover,
.chat-delete-btn:hover {
  color: #fff;
  background: rgba(255, 78, 151, .18);
}

.chip,
.mbti-chip,
.prompt-chips button,
.woluwa-segmented,
.woluwa-segmented button,
.chat-date-label,
.voice-call-action.speaker,
.voice-call-action.mute {
  color: #e8f0fb;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
}

.chip.selected,
.chip:hover,
.mbti-radio:checked + .mbti-chip,
.woluwa-segmented button.active {
  color: #fff;
  border-color: rgba(255, 78, 151, .45);
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.woluwa-form label {
  color: #d7e0f6;
}

.woluwa-form .form-control,
.woluwa-form .form-select,
.chat-composer input,
.adm-search-input,
.adm-select {
  color: var(--ink);
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
}

.woluwa-form .form-control::placeholder,
.chat-composer input::placeholder {
  color: rgba(213, 224, 244, .58);
}

.woluwa-form .form-control:focus,
.woluwa-form .form-select:focus,
.chat-composer input:focus {
  color: #fff;
  border-color: rgba(255, 78, 151, .72);
  background: rgba(255,255,255,.11);
  box-shadow: 0 0 0 3px rgba(255, 78, 151, .14);
}

.chat-room-header,
.chat-composer,
.voice-call-panel {
  color: var(--ink);
  border-color: rgba(255,255,255,.14);
  background: rgba(6,10,18,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bubble {
  color: #edf3ff;
  background: rgba(255,255,255,.1);
}

.bubble.me {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.emoji-panel,
.voice-call-card,
.location-map-modal .modal-content {
  color: var(--ink);
  border-color: rgba(255,255,255,.14);
  background: rgba(7,14,26,.94);
}

.emoji-panel .emoji-item:hover {
  background: rgba(255,255,255,.08);
}

.install-banner,
.hidden-account-banner {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255,45,85,.16), rgba(255,159,67,.1)), rgba(7,14,26,.82);
}

.hidden-account-copy {
  color: var(--ink);
}

.install-close-btn,
.hidden-account-close {
  color: #d7e0f6;
  background: rgba(255,255,255,.1);
}

.verified-card {
  background: linear-gradient(135deg, rgba(22,167,108,.18), rgba(255,255,255,.07));
}

.notif-item.unread {
  background: linear-gradient(135deg, rgba(255,45,85,.16), rgba(255,255,255,.07));
  border-color: rgba(255, 78, 151, .35);
}

.profile-hero {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 18px 46px rgba(0,0,0,.3);
}

.profile-hero .online-badge {
  color: #7dffbf;
  background: rgba(22,167,108,.18);
}

.event-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,45,85,.08)),
    var(--surface);
}

.event-thumb,
.group-thumb,
.community-thumb {
  box-shadow: inset 0 -40px 80px rgba(0,0,0,.24);
}

.welcome-page {
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(255,45,85,.18), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(255,159,67,.12), transparent 40%),
    #000;
}

.people-art {
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,45,85,.18), rgba(255,255,255,.08));
  box-shadow: var(--shadow);
}

.welcome-title {
  color: #ff5da1;
}

.welcome-safe-note,
.text-purple {
  color: #ff7ab3 !important;
}

.text-pink {
  color: #ff4e97 !important;
}

.alert-danger {
  color: #ffd6e7 !important;
  border: 1px solid rgba(255,78,151,.32) !important;
  background: rgba(255,45,85,.14) !important;
}

.my-profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.my-profile-top h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.03em;
  min-width: 0;
}
.my-profile-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}
.my-profile-heart-btn {
  position: relative;
}
.my-profile-heart-btn .nav-icon-wrap {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.my-profile-heart-btn .nav-badge {
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  font-size: 11px;
  line-height: 22px;
  border-width: 2px;
}

.my-profile-hero-card {
  padding: 18px;
}
.my-profile-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}
.my-profile-avatar-ring {
  width: 96px;
  height: 96px;
  padding: 3px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), #ff6aa7, #7c3aed);
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}
.my-profile-avatar-ring img,
.my-profile-avatar-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.my-profile-avatar-ring img {
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,.08);
}
.my-profile-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.12);
}
.my-profile-avatar-camera {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border: 2px solid rgba(0,0,0,.75);
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}

.my-profile-hero-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.my-profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.my-profile-name-row h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}
.my-profile-verified {
  color: #ff5da1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.my-profile-subline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.my-profile-subline i {
  color: rgba(223, 232, 248, .7);
}
.my-profile-bio {
  color: rgba(213, 222, 239, .78);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.my-profile-bio.is-empty {
  color: rgba(213, 222, 239, .62);
}
.my-profile-edit-btn {
  min-height: 44px;
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.my-profile-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.my-profile-card-title-row strong {
  font-size: 14px;
  font-weight: 900;
}
.my-profile-card-value {
  font-size: 14px;
  font-weight: 900;
  color: #ff5da1;
}
.my-profile-card-hint {
  margin-top: 0;
  font-size: 13px;
  color: rgba(213, 222, 239, .72);
}
.my-profile-progress-hint-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.my-profile-progress-arrow {
  color: rgba(233, 240, 255, .64);
  font-size: 18px;
  flex-shrink: 0;
}

.my-profile-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.my-profile-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 22px rgba(255, 45, 85, .2);
}

.my-profile-premium-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.14), transparent 30%),
    radial-gradient(circle at 85% 22%, rgba(255, 45, 85, .2), transparent 26%),
    linear-gradient(135deg, rgba(48, 14, 45, .92), rgba(16, 11, 33, .92) 55%, rgba(37, 8, 32, .92));
  border-color: rgba(255, 97, 161, .55);
}
.my-profile-premium-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.my-profile-premium-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff6aa7;
  background: rgba(255, 75, 147, .18);
}
.my-profile-premium-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.my-profile-premium-text strong {
  font-size: 15px;
  font-weight: 900;
}
.my-profile-premium-text span {
  font-size: 12px;
  color: rgba(213, 222, 239, .72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-profile-premium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--pink), #ff5da1);
  box-shadow: 0 10px 22px rgba(255, 45, 85, .22);
}

.upgrade-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.upgrade-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.upgrade-top h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}
.upgrade-top p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.upgrade-current-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-color: rgba(255,255,255,.12);
}
.upgrade-current-card strong,
.upgrade-current-card small {
  display: block;
}
.upgrade-current-card strong {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 900;
}
.upgrade-current-card small {
  margin-top: 2px;
  color: var(--muted);
}
.upgrade-eyebrow {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.upgrade-coin-balance {
  min-width: 88px;
  min-height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff4bd;
  font-weight: 900;
  background: rgba(255, 179, 44, .16);
  border: 1px solid rgba(255, 196, 82, .26);
}
.upgrade-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.upgrade-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.upgrade-section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}
.upgrade-section-head span {
  color: var(--muted);
  font-size: 12px;
}
.upgrade-package-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.upgrade-package-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-color: rgba(255,255,255,.11);
}
.upgrade-package-card.is-current {
  border-color: rgba(69, 211, 153, .45);
  background:
    linear-gradient(135deg, rgba(69, 211, 153, .13), rgba(16, 20, 37, .94)),
    var(--card);
}
.upgrade-package-main {
  display: flex;
  gap: 12px;
}
.upgrade-package-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff75ad;
  background: rgba(255, 75, 147, .14);
}
.upgrade-package-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.upgrade-package-title-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}
.upgrade-package-title-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #78f0b6;
  background: rgba(69, 211, 153, .14);
  font-size: 11px;
  font-weight: 900;
}
.upgrade-package-card p,
.upgrade-coin-card p {
  margin: 6px 0 0;
  color: rgba(226, 233, 245, .72);
  font-size: 12px;
  line-height: 1.45;
}
.upgrade-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.upgrade-meta-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(235, 241, 255, .88);
  background: rgba(255,255,255,.08);
  font-size: 11px;
  font-weight: 800;
}
.upgrade-buy-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), #ff5da1);
  box-shadow: 0 10px 22px rgba(255, 45, 85, .2);
}
.upgrade-buy-btn:disabled {
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.12);
  box-shadow: none;
}
.upgrade-coin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.upgrade-coin-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.upgrade-coin-card-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #ffd36b;
}
.upgrade-coin-card-top i {
  font-size: 18px;
}
.upgrade-coin-card-top strong {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}
.upgrade-coin-card-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.my-profile-stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.my-profile-stat {
  text-align: center;
  padding: 14px 10px;
  background: transparent;
  border: 0;
}
.my-profile-stat:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,.12);
}
.my-profile-stat-icon {
  font-size: 18px;
}
.my-profile-stat--heart .my-profile-stat-icon { color: #ff4e97; }
.my-profile-stat--eye .my-profile-stat-icon { color: #4aa3ff; }
.my-profile-stat--star .my-profile-stat-icon { color: #ffb22c; }
.my-profile-stat-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
}
.my-profile-stat-label {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(213, 222, 239, .72);
}

.my-profile-link-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 16px;
}
.my-profile-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.my-profile-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff6aa7;
  background: rgba(255, 75, 147, .14);
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.my-profile-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.my-profile-link-text strong {
  font-size: 14px;
  font-weight: 900;
}
.my-profile-link-text span {
  font-size: 12px;
  color: rgba(213, 222, 239, .72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-profile-link-arrow {
  color: rgba(233, 240, 255, .72);
  font-size: 18px;
}

.my-profile-photos-card .my-profile-card-title-row {
  margin-bottom: 12px;
}
.my-profile-card-action {
  color: #ff5da1;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.my-profile-photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.my-profile-photo-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}
.my-profile-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.my-profile-photo-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  background: rgba(0,0,0,.55);
}
.my-profile-photo-empty {
  grid-column: 1 / -1;
  min-height: 86px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.22);
  color: rgba(233, 240, 255, .78);
  background: rgba(255,255,255,.04);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
}
.my-profile-photo-empty i {
  font-size: 20px;
  color: #ff6aa7;
}

.my-profile-edit-panel {
  margin-top: 18px;
}
.my-profile-form-card {
  padding: 16px;
}
.my-profile-form-card .chip-section:last-child {
  margin-bottom: 0;
}
.my-profile-form-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.my-profile-form-card-head strong {
  font-size: 14px;
  font-weight: 900;
}

.my-profile-mbti-card {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,45,85,.08));
  margin-top: -4px;
  margin-bottom: 16px;
}
.my-profile-mbti-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.my-profile-mbti-badge {
  min-width: 62px;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.my-profile-mbti-copy h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}
.my-profile-mbti-copy p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(213, 222, 239, .72);
}
.my-profile-mbti-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
  color: rgba(233, 240, 255, .86);
}
.my-profile-mbti-row:first-of-type {
  border-top: 0;
}
.my-profile-mbti-row strong {
  color: rgba(233, 240, 255, .92);
  font-weight: 900;
}

@media (max-width: 420px) {
  .my-profile-top h1 {
    font-size: 28px;
  }
  .my-profile-hero-grid {
    grid-template-columns: 1fr;
  }
  .my-profile-avatar-ring {
    margin: 0 auto;
  }
  .my-profile-hero-info {
    align-items: flex-start;
  }
  .my-profile-premium-card {
    flex-direction: column;
    align-items: stretch;
  }
  .my-profile-stats-card {
    gap: 8px;
  }
  .my-profile-mbti-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1025px) {
  .woluwa-app {
    border: 1px solid rgba(255,255,255,.12);
    background:
      radial-gradient(circle at 0% 0%, rgba(255,45,85,.15), transparent 40%),
      radial-gradient(circle at 100% 0%, rgba(255,159,67,.1), transparent 40%),
      #000;
  }
}

/* ===== Repair Pass: legal, nearby, notifications, media fallbacks ===== */
.top-bar-spacer {
  width: 42px;
  flex: 0 0 42px;
}

.legal-page,
.nearby-page,
.notifications-page {
  overflow-x: hidden;
}

.legal-card {
  display: grid;
  gap: 12px;
  line-height: 1.6;
}

.legal-card h2,
.legal-card h3 {
  margin: 0;
  color: rgba(255, 112, 168, .96);
  font-weight: 900;
}

.legal-card h2 {
  font-size: 18px;
}

.legal-card h3 {
  margin-top: 6px;
  font-size: 15px;
}

.legal-card p {
  margin: 0;
  color: rgba(226, 233, 245, .78);
  font-size: 14px;
}

.notifications-page .page-header h1,
.notifications-page .page-header p {
  opacity: 1;
}

.notifications-empty {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: rgba(238, 243, 252, .9);
}

.notifications-empty-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ff5c9e;
  background: rgba(255, 45, 85, .14);
  border: 1px solid rgba(255, 115, 164, .22);
  font-size: 30px;
}

.nearby-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.nearby-hero-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff2d55, #ff6aa6);
  font-size: 24px;
  box-shadow: 0 10px 22px rgba(255, 45, 85, .22);
}

.nearby-hero h2,
.nearby-card h2,
.nearby-empty strong {
  margin: 0;
  color: rgba(247, 250, 255, .94);
  font-weight: 900;
}

.nearby-hero h2 {
  font-size: 17px;
}

.nearby-hero p,
.nearby-card p,
.nearby-empty p,
.nearby-address {
  margin: 4px 0 0;
  color: rgba(223, 231, 244, .74);
  font-size: 13px;
  line-height: 1.5;
}

.nearby-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.nearby-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(10, 17, 29, .9), rgba(6, 11, 20, .82));
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.nearby-thumb {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  overflow: hidden;
}

.nearby-thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff70a9;
  background: rgba(255, 45, 85, .12);
  border: 1px solid rgba(255, 115, 164, .18);
  font-size: 28px;
}

.nearby-body {
  min-width: 0;
}

.nearby-meta span,
.nearby-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nearby-meta span {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ff87b6;
  background: rgba(255, 45, 85, .12);
  font-size: 12px;
  font-weight: 800;
}

.nearby-card h2 {
  margin-top: 8px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.nearby-address {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.nearby-map-link {
  margin-top: 10px;
  color: #ff6ea8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.nearby-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.nearby-empty > i {
  color: #ff70a9;
  font-size: 42px;
}

.my-profile-photo-thumb.is-missing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(233, 240, 255, .72);
  background: rgba(255,255,255,.06);
}

.woluwa-page,
.discover-screen,
.matches-page .discover-screen,
.community-shell {
  max-width: 100%;
  width: 100%;
}

.top-bar,
.matches-page .top-bar,
.community-hero-top {
  min-width: 0;
}

.top-bar h1,
.top-bar h2,
.matches-page .title-wrap,
.community-hero-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.matches-page .title-wrap {
  max-width: calc(100% - 68px);
}

.community-hero-copy {
  max-width: calc(100% - 62px);
}

.top-bar h1,
.top-bar h2,
.community-hero-copy h1 {
  overflow-wrap: anywhere;
}

.matches-page .actions,
.community-hero-actions,
.discover-page .top-bar .actions {
  flex: 0 0 auto;
  min-width: 0;
}

.matches-page .actions {
  gap: 8px;
  padding-top: 8px;
}

.matches-page .icon-btn {
  width: 28px;
  height: 28px;
  font-size: 22px;
}

.matches-page .title-wrap h1 {
  font-size: clamp(
    calc(28px * var(--matches-font-scale)),
    calc(8vw * var(--matches-font-scale)),
    calc(38px * var(--matches-font-scale))
  );
}

.matches-page .top-bar {
  gap: 8px;
}

.community-hero-top {
  gap: 8px;
}

.community-hero-actions {
  gap: 8px;
}

.community-top-icon {
  width: 26px;
  height: 26px;
  font-size: 21px;
}

@media (max-width: 420px) {
  .matches-page .top-bar,
  .community-hero-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
  }

  .matches-page .actions,
  .community-hero-actions {
    justify-self: end !important;
  }

  .matches-page .title-wrap,
  .community-hero-copy {
    max-width: none;
  }

  .avatar-page #photoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.matches-toolbar {
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  overflow-x: hidden;
}

.matches-sort {
  display: none;
}

.match-photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 23%, rgba(255,255,255,.22), transparent 22%),
    linear-gradient(145deg, rgba(255,45,85,.26), rgba(35,199,255,.14) 45%, rgba(0,0,0,.38));
}

.fallback-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .72;
}

.fallback-glow.one {
  width: 180px;
  height: 180px;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.12);
}

.fallback-glow.two {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,45,85,.16);
}

.fallback-avatar {
  position: relative;
  width: min(52vw, 190px);
  height: min(52vw, 190px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.32);
  color: rgba(255,255,255,.9);
  background: rgba(6, 10, 18, .34);
  font-size: clamp(58px, 22vw, 104px);
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
  box-shadow: 0 22px 70px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.16);
}

.matches-page .match-placeholder {
  position: relative;
  isolation: isolate;
  font-size: calc(74px * var(--matches-font-scale));
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,.18), transparent 22%),
    linear-gradient(145deg, #17223d, #442449 52%, #0a0f1d);
}

.matches-page .match-placeholder::before {
  content: "";
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  bottom: -18%;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  z-index: -1;
}

.matches-page .matches-grid,
.community-discovery-page,
.community-shell,
.avatar-page #photoGrid {
  overflow-x: hidden;
}

.matches-page .matches-grid > *,
.community-group-card,
.avatar-page #photoGrid > * {
  min-width: 0;
}

html,
body,
.woluwa-app,
.woluwa-page {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.woluwa-app,
.woluwa-page {
  width: 100vw !important;
}

@media (min-width: 1025px) {
  :root {
    --app-height: calc(100dvh - 40px);
    --app-max-width: 480px;
  }

  body {
    align-items: center;
  }

  .woluwa-app {
    width: min(480px, calc(100vw - 40px)) !important;
    max-width: var(--app-max-width) !important;
    height: var(--app-height);
    min-height: calc(100vh - 40px);
    margin: 20px auto !important;
    border-radius: 32px;
    box-shadow: var(--shadow);
  }

  .woluwa-page {
    width: 100% !important;
  }
}

@media (max-width: 380px) {
  .nearby-card {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .nearby-thumb {
    width: 80px;
    height: 80px;
  }
}
