:root {
  --vq-mobile-nav-height: 74px;
}

.login-page {
  background: #fff !important;
}

.login-hero {
  color: #24151b !important;
  background: #fff !important;
  position: relative;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(34, 20, 29, 0.06);
  border-radius: 24px;
  pointer-events: none;
}

.login-hero img {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.login-hero h1 {
  color: #21131a;
}

.login-hero p {
  color: #775863 !important;
}

.login-hero .hint {
  color: #9b405d !important;
}

.social-login-btn,
.google-login-render {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-login-btn {
  border: 0;
  cursor: pointer;
}

.facebook-login-btn {
  background: #1877f2;
  color: #fff;
}

.google-login-render {
  overflow: hidden;
  padding: 0;
}

.google-login-render > div,
.google-login-render iframe {
  width: 100% !important;
  margin: 0 !important;
}

.facebook-login-btn {
  min-height: 48px;
}

.phone-login-card {
  margin-top: 12px;
  border: 1px solid #ffd8e4;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #fff8fb, #fff);
}

.phone-login-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.phone-login-card p {
  margin: 0 0 10px;
  color: var(--subtext);
  font-size: 13px;
}

.login-form .field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-form .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 59, 92, 0.12);
}

.login-form .field select[multiple] {
  min-height: 118px;
  padding: 8px 10px;
}

.login-form .field input,
.login-form .field select,
.phone-code-row input,
.profile-form textarea,
.profile-form-grid .field input,
.profile-form-grid .field select,
.profile-form-grid .field textarea {
  background: #fff !important;
}

.checkbox-group {
  display: grid;
  gap: 8px;
}

.checkbox-group label {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  font-weight: 650;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.checkbox-group span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.login-form .field-help {
  color: #8d6a79;
  font-size: 12px;
  line-height: 1.35;
}

.phone-code-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  margin-top: 10px;
}

.phone-code-row input {
  border: 1px solid #ffcddc;
  border-radius: 999px;
  padding: 11px 12px;
  font-size: 14px;
  background: #fff8fb;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-rows: auto 1fr;
    padding-bottom: var(--vq-mobile-nav-height);
  }

  .topbar {
    display: none !important;
  }

  .brand-wrap img {
    width: 132px;
  }

  .search-wrap {
    grid-column: 1 / -1;
    order: 3;
    padding: 7px 10px;
  }

  .search-wrap input {
    font-size: 13px;
  }

  .search-wrap .btn {
    padding: 7px 10px !important;
    font-size: 12px;
  }

  .top-actions {
    gap: 6px;
  }

  .top-create-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0 !important;
    overflow: hidden;
    color: transparent !important;
    position: relative;
  }

  .top-create-btn::before {
    content: "+";
    color: #fff;
    font-size: 22px;
    line-height: 1;
  }

  .icon-btn,
  .avatar-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 80;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 7px 6px 8px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #f5cddd;
    box-shadow: 0 -8px 28px rgba(80, 18, 43, 0.08);
    backdrop-filter: blur(10px);
  }

  .nav-item {
    justify-content: center;
    font-size: 0;
    padding: 7px 4px;
    border-radius: 12px;
    flex-direction: column;
    gap: 2px;
  }

  .nav-item::after {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    color: inherit;
    line-height: 1.1;
  }

  .nav-item .icon {
    font-size: 19px;
  }

  .badge {
    display: none;
  }

  .right-rail {
    display: none;
  }

  .section-title {
    align-items: flex-start;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .card {
    border-radius: 18px;
  }

  .stories,
  .post,
  .card[style*="padding:18px"] {
    padding: 14px !important;
  }

  .composer {
    grid-template-columns: 44px 1fr;
  }

  .mini-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .circle-user {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }

  .post-head,
  .post-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-meta strong {
    font-size: 18px;
  }

  .post-media-image {
    height: min(74vw, 420px);
  }

  .map-canvas,
  .map-frame {
    min-height: 64vh;
  }

  .login-wrap {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .login-page {
    padding: 12px;
    align-items: start;
  }

  .login-hero {
    padding: 22px;
  }

  .login-hero img {
    width: 190px;
  }

  .login-hero h1 {
    font-size: 30px;
  }

  .login-form {
    padding: 22px 16px;
  }

  .login-form h2 {
    font-size: 30px;
  }

  .login-actions {
    display: grid;
  }

  .phone-code-row {
    grid-template-columns: 1fr;
  }

  .profile-grid,
  .messages-layout,
  .profile-view-layout,
  .search-inline,
  .live-create,
  .chat-composer {
    grid-template-columns: 1fr !important;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .live-video-stage {
    grid-template-columns: 1fr;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: space-between;
  }

  .brand-wrap {
    justify-content: center;
  }

  .story {
    min-width: 76px;
  }

  .story .avatar {
    width: 64px;
    height: 64px;
  }

  .profile-head {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .profile-modal {
    padding: 8px;
  }

  .profile-modal-card {
    max-height: 94vh;
    border-radius: 16px;
  }
}

.icon-btn svg,
.nav-item svg,
.search-wrap svg,
.top-create-btn svg,
.mini-actions svg,
.post-type-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.35;
}

.top-create-btn {
  gap: 6px;
}

.post-type-icon {
  color: #ff3b5c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 920px) {
  :root {
    --vq-mobile-nav-height: 76px;
  }

  html,
  body {
    background: #fff;
  }

  body {
    color: #2a1a22;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
    padding-bottom: calc(var(--vq-mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    background: #fff;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px 14px 8px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #f7c7d4;
    box-shadow: none;
    backdrop-filter: blur(10px);
  }

  .brand-wrap {
    justify-content: flex-start;
    min-width: 0;
  }

  .brand-wrap img {
    width: min(66vw, 250px);
    height: 64px;
    object-fit: contain;
    object-position: left center;
  }

  .search-wrap {
    grid-column: 1 / -1;
    order: 3;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border-color: #f7c7d4;
    background: #fff7fa;
    box-shadow: none;
  }

  .search-wrap svg {
    width: 18px;
    height: 18px;
    color: #ff3b5c;
  }

  .search-wrap input {
    min-width: 0;
    font-size: 14px;
    background: transparent;
  }

  .search-wrap .btn {
    min-height: 30px;
    padding: 0 12px !important;
    font-size: 12px;
  }

  .top-actions {
    gap: 6px;
  }

  .top-create-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0 !important;
    border-radius: 19px;
    color: #fff !important;
    overflow: hidden;
  }

  .top-create-btn::before {
    content: none !important;
  }

  .top-create-btn span {
    display: none;
  }

  .top-create-btn svg {
    width: 21px;
    height: 21px;
  }

  .icon-btn,
  .avatar-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 19px;
    background: #fff;
    border-color: #f7c7d4;
    color: #2a1a22;
    box-shadow: 0 4px 14px rgba(255, 59, 92, 0.08);
  }

  .avatar-btn {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #ff3b5c, #ff8e53);
  }

  .layout {
    display: block;
    padding: 0;
  }

  .main {
    display: block;
  }

  .page.active {
    display: block;
  }

  .right-rail {
    display: none !important;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 100;
    height: calc(var(--vq-mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    align-items: start;
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #ece8eb;
    box-shadow: 0 -2px 12px rgba(42, 26, 34, 0.08);
    backdrop-filter: blur(12px);
  }

  .nav-item {
    position: relative;
    min-width: 0;
    height: 60px;
    padding: 5px 2px 3px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #7a7378;
    display: grid;
    grid-template-rows: 28px 18px;
    place-items: center;
    gap: 1px;
    font-size: 0 !important;
    line-height: 1;
  }

  .nav-item::after {
    content: none !important;
  }

  .nav-item .nav-text {
    display: block;
    max-width: 100%;
    color: inherit;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-item svg.icon,
  .nav-item .icon {
    width: 25px;
    height: 25px;
    color: currentColor;
    stroke-width: 2.7;
  }

  .nav-item.active {
    color: #ff3b5c;
  }

  .nav-item.active svg.icon {
    fill: rgba(255, 59, 92, 0.12);
  }

  .nav-item .badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 20px);
    display: inline-flex;
    min-width: 9px;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ff3b5c;
    color: transparent;
    overflow: hidden;
  }

  .card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .stories {
    padding: 18px 0 12px !important;
    border-top: 0;
  }

  .stories .section-title {
    padding: 0 16px;
    margin-bottom: 12px;
    align-items: center;
  }

  .stories .section-title h2 {
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: 0;
  }

  .stories .section-title p {
    font-size: 13px;
  }

  .stories .brand-gradient {
    font-size: 13px;
    font-weight: 800;
  }

  .story-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px 6px;
    scroll-snap-type: x proximity;
  }

  .story {
    width: 92px;
    min-width: 92px;
    scroll-snap-align: start;
  }

  .story .avatar {
    width: 86px;
    height: 86px;
    margin-bottom: 8px;
    border: 2px solid #f7c7d4;
    background: #fff;
    box-shadow: 0 4px 16px rgba(255, 59, 92, 0.12);
  }

  .story strong {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .story .muted {
    margin-top: 2px;
    font-size: 10.5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .avatar-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 16px 10px !important;
    border-top: 0;
    border-bottom: 0;
    background: #fff;
  }

  .chip {
    padding: 8px 14px;
    font-size: 12px;
    border-color: #f7c7d4;
  }

  .composer {
    margin: 2px 16px 12px;
    padding: 12px !important;
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    gap: 9px;
    border: 1px solid #f7c7d4;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(255, 59, 92, 0.08);
  }

  .circle-user {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .composer input {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .mini-actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  .mini-actions button {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background: #fff0f5;
    color: #ff3b5c;
    display: inline-grid;
    place-items: center;
  }

  #composer-feedback {
    padding: 0 16px;
  }

  .feed-list {
    gap: 12px;
    padding: 0 0 16px;
  }

  .post {
    margin: 0 16px;
    padding: 12px !important;
    border: 1px solid #f7c7d4;
    border-radius: 16px;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(255, 59, 92, 0.08);
  }

  .post-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    align-items: center;
    gap: 8px;
  }

  .post-user {
    min-width: 0;
    gap: 9px;
  }

  .post-avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-width: 1px;
  }

  .post-meta {
    min-width: 0;
  }

  .post-meta strong {
    display: block;
    font-size: 15px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .post-meta p {
    font-size: 11.5px;
  }

  .post-media-image {
    height: min(58vw, 300px);
    border-radius: 12px;
  }

  .post > div:not(.post-head):not(.post-actions) {
    font-size: 14px;
    line-height: 1.45;
  }

  .post-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }

  .post-actions .left {
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11.5px;
  }

  .post-actions .list-actions {
    gap: 6px;
  }

  .post-actions .btn {
    padding: 8px 10px !important;
    font-size: 12px;
  }

  .page:not([data-id="explorar"]) .card[style*="padding:18px"],
  .profile-head,
  .profile-grid > .card {
    margin: 0 16px 12px;
    padding: 14px !important;
    border: 1px solid #f7c7d4;
    border-radius: 16px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .section-title p {
    font-size: 13px;
  }

  .map-canvas,
  .map-frame,
  [data-id="mapa"] {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .top-actions {
    justify-content: flex-end;
  }

  .icon-btn[title="Sair"] {
    display: none;
  }

  .brand-wrap {
    justify-content: flex-start;
  }

  .brand-wrap img {
    width: min(64vw, 230px);
    height: 58px;
  }

  .search-wrap {
    display: none;
  }

  .stories {
    padding-top: 14px !important;
  }

  .story {
    width: 88px;
    min-width: 88px;
  }

  .story .avatar {
    width: 80px;
    height: 80px;
  }

  .post-media-image {
    height: min(54vw, 260px);
  }
}

.feed-title-card {
  box-shadow: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(135deg, #fff7fa 0%, #fff 48%, #fff0f5 100%);
  border: 1px solid #ffd6e4;
}

.is-temporarily-hidden,
[hidden].is-temporarily-hidden {
  display: none !important;
}

.feed-title-card .section-title h2 {
  color: #2a1a22;
}

.feed-title-card .section-title p {
  max-width: 560px;
}

[data-id="explorar"] .filters {
  background: #fff;
  border: 1px solid #ffd6e4;
  box-shadow: 0 6px 18px rgba(255, 59, 92, 0.08);
}

.discover-grid {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.discover-card {
  position: relative;
  width: min(100%, 430px);
  min-height: 620px;
  aspect-ratio: 0.62;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff0f5;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(42, 26, 34, 0.12);
}

.discover-photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff3b5c, #ff8e53);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.discover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.04) 34%, rgba(0, 0, 0, 0.58) 100%);
  pointer-events: none;
}

.discover-online {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.discover-online span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.discover-info {
  position: absolute;
  top: 38px;
  left: 36px;
  right: 72px;
  color: #fff;
}

.discover-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.discover-info strong,
.discover-info small,
.discover-status-pill {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discover-info strong {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
}

.discover-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ccf32;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.discover-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f171b;
  font-size: 18px;
  font-weight: 850;
}

.discover-status-pill svg {
  width: 18px;
  height: 18px;
}

.discover-info small {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.discover-more {
  position: absolute;
  top: 38px;
  right: 34px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.discover-more svg {
  width: 34px;
  height: 34px;
  stroke-width: 3;
}

.discover-progress {
  position: absolute;
  right: 24px;
  top: 42%;
  width: 5px;
  height: 110px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.discover-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.discover-action {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #0f0f12;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.discover-action.primary {
  background: #fff;
  color: #111;
}

.discover-action.reject {
  color: #111;
}

.discover-action svg,
.discover-action i {
  width: 36px;
  height: 36px;
  stroke-width: 3.4;
}

.chat-back-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

.chat-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.chat-back-btn {
  display: none;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid #ffd0dd;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #2a1a22;
  user-select: none;
  transition: background .15s, border-color .15s, color .15s;
}
.checkbox-pill input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #ff3b5c;
  cursor: pointer;
}
.checkbox-pill:has(input:checked) {
  background: #fff0f3;
  border-color: #ff3b5c;
  color: #ff3b5c;
  font-weight: 600;
}

/* Avatar do perfil: forca circulo perfeito + botao de trocar foto */
.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
}
.profile-head .avatar,
.avatar-wrap > #profile-avatar.avatar {
  position: relative;
  width: 92px !important;
  height: 92px !important;
  min-width: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}
/* Imagem posicionada absoluta preenchendo o circulo: ignora o display:grid do
   container (que quebrava o height:100% e deixava a foto oval). */
.profile-head .avatar .avatar-image,
#profile-avatar .avatar-image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  border-radius: 50%;
}
.avatar-change-btn {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #ff3b5c;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 6px rgba(42, 26, 34, 0.25);
  z-index: 2;
}
.avatar-change-btn svg,
.avatar-change-btn .icon {
  width: 16px;
  height: 16px;
}

/* ── Página "Por Perto" (grade estilo Badoo) ── */
.nearby-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 14px;
}
.nearby-topbar h2 { margin: 0; font-size: 28px; font-weight: 800; color: #2a1a22; }
.nearby-filter-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #ffd0dd; background: #fff;
  display: grid; place-items: center; cursor: pointer; color: #2a1a22;
}
.nearby-filter-btn i { width: 20px; height: 20px; }
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
  margin-top: 4px;
}
.nearby-card { display: block; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.nearby-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #f3d4de, #e3aebf);
}
.nearby-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nearby-thumb i { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; color: #c98aa1; }
.nearby-name {
  display: flex; align-items: center; gap: 6px;
  margin-top: 7px; font-size: 14px; font-weight: 700; color: #2a1a22;
  line-height: 1.2;
}
.nearby-name .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: 0 0 auto; }
.nearby-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nearby-thumb .nearby-dist {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(0, 0, 0, 0.62); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}

/* Modal de filtro (bottom sheet) */
.filter-sheet { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.filter-sheet.hidden { display: none; }
.filter-sheet-card {
  background: #fff; width: 100%; max-width: 520px;
  border-radius: 22px 22px 0 0;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  max-height: 88vh; overflow-y: auto; position: relative;
}
.filter-sheet-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; cursor: pointer; color: #2a1a22; }
.filter-sheet-close i { width: 22px; height: 22px; }
.filter-sheet-card h3 { margin: 0 0 8px; font-size: 20px; color: #2a1a22; }
.filter-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid #ffe2eb; }
.filter-field > span { font-size: 15px; font-weight: 700; color: #2a1a22; }
.filter-field select, .filter-field input[type="text"] { border: 1px solid #ffd0dd; border-radius: 10px; padding: 9px 11px; font-size: 14px; color: #2a1a22; background: #fff; }
.filter-age { display: inline-flex; align-items: center; gap: 6px; color: #6b5862; }
.filter-age input { width: 62px; border: 1px solid #ffd0dd; border-radius: 10px; padding: 9px; text-align: center; font-size: 14px; }
.filter-check input[type="checkbox"] { width: 24px; height: 24px; accent-color: #ff3b5c; cursor: pointer; }
.filter-apply { width: 100%; margin-top: 18px; padding: 14px; font-size: 16px; border-radius: 14px; }

/* ── Topo do perfil (print 03) ── */
.profile-head-card { padding: 18px; }
.profile-head-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.profile-head-bar h2 { margin: 0; font-size: 30px; font-weight: 800; color: #2a1a22; }
.profile-head-actions { display: flex; gap: 10px; }
.phead-icon { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff0f5; color: #2a1a22; display: grid; place-items: center; cursor: pointer; }
.phead-icon i { width: 22px; height: 22px; }
.profile-head-main { display: flex; align-items: center; gap: 18px; }
.profile-ring {
  position: relative;
  width: 106px; height: 106px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: 0 0 auto;
  background: conic-gradient(#ff3b5c calc(var(--pct, 0) * 1%), #f0e0e8 0);
}
.profile-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.profile-ring .avatar-wrap { position: relative; z-index: 1; }
.profile-pct {
  position: absolute; left: -3px; bottom: -3px; z-index: 3;
  background: #e11d48; color: #fff; font-size: 12px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px; border: 2px solid #fff;
}
.profile-head-info { min-width: 0; }
.profile-head-info h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; color: #2a1a22; }
.profile-looking {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 10px; padding: 8px 14px;
  background: #fff0f5; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #2a1a22;
}
.profile-looking i { width: 16px; height: 16px; color: #ff3b5c; }
.profile-looking.hidden { display: none; }
.settings-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 15px 2px; border: 0; border-bottom: 1px solid #ffe2eb;
  background: none; cursor: pointer; font-size: 15px; font-weight: 600; color: #2a1a22; text-align: left;
}
.settings-row > span { flex: 1; }
.settings-row > i:first-child { width: 20px; height: 20px; color: #ff3b5c; }
.settings-row .chev { width: 18px; height: 18px; color: #c9b3bd; }
.settings-row.danger, .settings-row.danger > i:first-child { color: #e11d48; }

/* ── Conversas (print 04) ── */
.conversas-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.conversas-head h2 { margin: 0; font-size: 30px; font-weight: 800; color: #2a1a22; }
.conversas-bell { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff0f5; color: #2a1a22; display: grid; place-items: center; cursor: pointer; }
.conversas-bell i { width: 22px; height: 22px; }
.conexoes-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: #2a1a22; }
.likes-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.like-circle { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; flex: 0 0 auto; width: 72px; padding: 0; }
.like-thumb { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #f0e0ea; display: grid; place-items: center; }
.like-thumb img { width: 100%; height: 100%; object-fit: cover; }
.like-thumb i { width: 28px; height: 28px; color: #c98aa1; }
.like-thumb-heart { background: #efe3fb; }
.like-thumb-heart i { color: #2a1a22; width: 30px; height: 30px; }
.like-name { font-size: 12px; color: #2a1a22; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mensagens-bar { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; }
.mensagens-bar h4 { margin: 0; font-size: 18px; font-weight: 800; color: #2a1a22; }
.conversas-sort { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 700; color: #2a1a22; }
.conversas-sort i { width: 18px; height: 18px; }
.ad-slot:empty { display: none; }
.sort-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px; margin-bottom: 8px; border: 0; border-radius: 14px; background: #f4f1f3; cursor: pointer; font-size: 15px; font-weight: 700; color: #2a1a22; text-align: left; }
.sort-opt.selected { background: #efe3fb; }
.sort-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9b3bd; flex: 0 0 auto; }
.sort-opt.selected .sort-radio { border-color: #2a1a22; background: radial-gradient(circle, #2a1a22 0 42%, #fff 46%); }

/* Modal "Você fala" (idiomas) */
.langs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; max-height: 52vh; overflow-y: auto; margin: 4px 0 8px; }
.lang-opt { display: flex; align-items: center; gap: 8px; padding: 9px 4px; font-size: 14px; color: #2a1a22; cursor: pointer; }
.lang-opt input[type="checkbox"] { width: 18px; height: 18px; accent-color: #ff3b5c; flex: 0 0 auto; }

@media (max-width: 920px) {
  :root {
    --vq-mobile-nav-height: 78px;
  }

  .sidebar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-left: 2px;
    padding-right: 2px;
  }

  .nav-item {
    height: 61px;
    grid-template-rows: 26px 18px;
    padding: 5px 1px 3px !important;
  }

  .nav-item .nav-text {
    font-size: 10.5px;
    font-weight: 650;
  }

  .nav-item svg.icon,
  .nav-item .icon {
    width: 23px;
    height: 23px;
  }

  .nav-item .badge {
    top: 7px;
    right: calc(50% - 17px);
  }

  .feed-title-card {
    margin: 0 16px 12px;
    border: 0;
    border-bottom: 1px solid #f7c7d4;
    border-radius: 0;
    padding: 16px 0 10px !important;
  }

  .feed-title-card .section-title {
    margin-bottom: 0;
  }

  .discover-section {
    padding: 18px 16px 10px !important;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .discover-section .section-title {
    margin-bottom: 18px;
  }

  .discover-section .section-title h2 {
    font-size: 32px;
    line-height: 1.1;
  }

  #discovery-summary {
    display: none;
  }

  .discover-grid {
    display: flex;
    grid-template-columns: none;
    justify-content: center;
    overflow: visible;
    padding: 0 0 8px;
  }

  .discover-card {
    flex: 0 1 100%;
    width: 100%;
    max-width: 430px;
    min-height: min(72vh, 670px);
    aspect-ratio: 0.61;
    border-radius: 22px;
    box-shadow: none;
  }

  .discover-info {
    top: 38px;
    left: 36px;
    right: 72px;
  }

  .discover-info strong {
    font-size: 34px;
  }

  .discover-info small {
    display: none;
  }

  .messages-layout {
    display: block;
  }

  .messages-layout:not(.chat-open) .conversation-pane {
    display: block;
  }

  .messages-layout:not(.chat-open) .chat-pane {
    display: none;
  }

  .messages-layout.chat-open .conversation-pane {
    display: none;
  }

  .messages-layout.chat-open .chat-pane {
    display: block;
  }

  .chat-header-row {
    margin-bottom: 12px;
  }

  .chat-back-btn {
    display: inline-grid;
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 18px;
    box-shadow: none;
  }

  .chat-messages {
    height: calc(100vh - 290px);
    min-height: 320px;
    border-radius: 16px;
    background: #fff;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center;
  }

  .chat-composer .btn {
    padding: 12px 14px !important;
  }
}

@media (max-width: 520px) {
  .nav-item .nav-text {
    font-size: 10px;
  }

  .discover-grid {
    gap: 10px;
  }

  .discover-card {
    min-height: min(72vh, 620px);
    border-radius: 20px;
  }

  .discover-info {
    top: 30px;
    left: 28px;
    right: 64px;
  }

  .discover-info strong {
    font-size: 30px;
  }

  .discover-status-pill {
    font-size: 16px;
    padding: 9px 14px;
  }

  .discover-more {
    top: 30px;
    right: 24px;
  }

  .discover-progress {
    right: 18px;
    height: 94px;
  }

  .discover-actions {
    bottom: 34px;
    gap: 26px;
  }

  .discover-action {
    width: 72px;
    height: 72px;
  }
}

/* ── Filtros PRO/VIP no "Por perto" (paridade com o app nativo) ── */
.filter-tier {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ffe2eb;
}
.filter-tier-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.filter-tier-head i {
  width: 16px;
  height: 16px;
}
.filter-tier-head-pro { color: #ff3b5c; }
.filter-tier-head-vip { color: #e8a93c; }
.filter-tier-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-tier-lock {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  color: #2a1a22;
  background: #fff6f9;
  border: 1px solid #ffd3e0;
}
.filter-tier-vip .filter-tier-lock {
  background: #fff8ec;
  border-color: #f3dca6;
}
.filter-tier-lock i:first-child {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #ff3b5c;
}
.filter-tier-vip .filter-tier-lock i:first-child { color: #e8a93c; }
.filter-tier-lock span { flex: 1; }
.filter-tier-lock i:last-child {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #b58a9a;
}

/* ── "Quem te curtiu" = VIP (paridade com o app nativo) ── */
.like-thumb-locked img { filter: blur(7px); }
.likes-vip-lock {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #2a1a22;
  background: #fff8ec;
  border: 1px solid #f3dca6;
}
.likes-vip-lock i:first-child { flex: 0 0 auto; width: 22px; height: 22px; color: #e8a93c; }
.likes-vip-lock span { flex: 1; line-height: 1.4; }
.likes-vip-lock strong { color: #b07d12; }
.likes-vip-lock i:last-child { flex: 0 0 auto; width: 18px; height: 18px; color: #c9a86a; }
.likes-locked-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.likes-locked-mini {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffe3ec;
}
.likes-locked-mini img { width: 100%; height: 100%; object-fit: cover; }
