/* Coordinates follow the 400pt artboards supplied for the new identity. */
:root {
  --identity-width: min(100vw, 440px);
  --nav-width: min(92vw, 520px);
  --nav-height: calc(var(--nav-width) * .1382);
  --nav-bottom: max(6.3dvh, env(safe-area-inset-bottom));
}

.map-glow-top, .map-glow-green { display: none; }
.scan-bottom-wrapper {
  width: var(--nav-width);
  max-width: none;
  height: var(--nav-height);
  bottom: var(--nav-bottom);
  border-radius: 999px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility 0s linear .24s;
}
.scan-bottom-wrapper.is-ready {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
body.map-search-focused .scan-bottom-wrapper {
  bottom:max(12px,env(safe-area-inset-bottom));
  transition:opacity .24s ease,visibility 0s,bottom .26s cubic-bezier(.2,.8,.2,1);
}
.scan-bottom-bg { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.scan-bottom-content { display: block; padding: 0; transition: opacity .2s; }
.bottom-nav-action, .map-search-toggle.bottom-nav-action {
  position: absolute;
  top: 0;
  width: var(--nav-height);
  height: var(--nav-height);
  transform: none;
}
#nav-btn-scan { left: calc(50% - var(--nav-height) / 2); }
#map-search-toggle { left: calc(78.8% - var(--nav-height) / 2); }
#nav-btn-profile-footer { right: 0; }
.scan-bottom-wrapper:not(.is-profile) #nav-btn-map { display:none; }
.scan-bottom-wrapper:not(.is-profile) #nav-btn-add-pin { display:none; }
body:has(#screen-map.active-screen) .scan-bottom-wrapper:not(.is-profile) #nav-btn-add-pin { display:grid; left:0; }
.scan-bottom-wrapper.is-profile { width: calc(var(--nav-height) * 3.64); }
.scan-bottom-wrapper.is-profile #nav-btn-map { left: 0; }
.scan-bottom-wrapper.is-profile #nav-btn-add-pin { right: 0; }
.scan-bottom-wrapper.is-profile #map-search-toggle,
.scan-bottom-wrapper.is-profile #nav-btn-profile-footer { display: none; }
.scan-bottom-wrapper.search-active .scan-bottom-content { opacity: 0; pointer-events: none; }
.scan-bottom-wrapper.search-active .bottom-nav-action { pointer-events: none; }
.footer-profile-indicator {
  position: absolute; inset: 0; width: 100%; height: 100%; transform: none;
  border: 0; background: none !important; box-shadow: none; pointer-events: none;
}
.footer-profile-indicator.has-profile-notification::after {
  content: ''; position: absolute; top: 6%; right: 8%; width: 9px; height: 9px;
  border: 2px solid white; border-radius: 50%; background: #ff3e59;
}
.footer-profile-indicator.has-message-notification::after { background: #30bfea; }

.scan-bottom-wrapper .map-search-form {
  position: absolute; inset: 0; width: 100%; height: 100%; transform: none;
  opacity: 1; visibility: hidden; pointer-events: none; transition: visibility 0s .4s;
}
.scan-bottom-wrapper .map-search-form.is-open { left: 0; right: 18%; }
.scan-bottom-wrapper .map-search-form::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px; background: #fffef6;
  clip-path: inset(0 14.3% 0 71.9% round 999px);
  transition: clip-path .4s cubic-bezier(.2,.8,.2,1);
}
.scan-bottom-wrapper .map-search-form.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; transform: none; }
.scan-bottom-wrapper .map-search-form.is-open::before { clip-path: inset(0 0 0 0 round 999px); }
.scan-bottom-wrapper .map-search-form input {
  position: relative; height: 100%; padding: 0 52px 0 20px; border: 0;
  background: transparent; box-shadow: none; backdrop-filter: none; font-size: 14px;
  opacity: 0; transition: opacity .15s; animation: none;
}
.scan-bottom-wrapper .map-search-form.is-open input { opacity: 1; transition-delay: .2s; }
#map-search-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff;
  color: #ff3e79; font-size: 23px; cursor: pointer; opacity: 0;
}
.map-search-form.is-open #map-search-close { opacity: 1; }
.scan-bottom-wrapper .map-search-suggestions {
  position: absolute; bottom: calc(100% + 12px); left: 0; width: 100%;
  max-height: min(55dvh, 420px); overflow-y: auto; margin: 0;
}
body.map-search-focused .scan-bottom-wrapper .map-search-suggestions {
  max-height:min(42dvh,calc(var(--app-height) - var(--nav-height) - 34px));
  overscroll-behavior:contain;
}

#screen-profile .profile-background { display: none; }
#screen-profile .profile-content {
  width: var(--identity-width); margin: 0 auto;
  padding: calc(var(--identity-width) * .28) 0 calc(var(--nav-height) + var(--nav-bottom) + 32px);
  background: #fff url('assets/identity/profile-gradient.webp') center top / 100% auto no-repeat local;
}
#screen-profile .profile-content > *:not(.profile-photo-actions) { max-width: none; }
#screen-profile .profile-header { width: 100%; margin: 0 auto 22px; }
#screen-profile .profile-avatar {
  display: block; flex: none; width: 46.5%; height: auto; aspect-ratio: 1;
  margin: 0 auto calc(var(--identity-width) * .155); padding: 0;
  border: 0; border-radius: 32%; box-shadow: none;
  background-color: #fffef6; background-size: 75%; cursor: pointer;
  box-shadow: 0 0 34px 15px rgba(206,255,0,.78), 0 0 72px 24px rgba(255,233,78,.5);
  isolation: isolate;
}
#screen-profile .profile-avatar::before { content:''; position:absolute; inset:-20%; z-index:-1; border-radius:40%; background:radial-gradient(circle,#fff14a 0%,#ceff00 38%,rgba(206,255,0,0) 72%); filter:blur(18px); pointer-events:none; }
#screen-profile .profile-avatar::after { display: none; }
#screen-profile .profile-avatar:disabled { cursor: default; opacity: 1; }
#screen-profile .profile-title { max-width: 84%; }
#screen-profile .profile-title br { display: none; }
#screen-profile .profile-title .user-name {
  min-width: 154px; max-width: 100%; min-height: 34px; padding: 4px 16px;
  border: 2px solid #ceff00; border-radius: 8px; box-sizing: border-box;
  background: transparent; color: white; font-size: 20px; line-height: 24px;
  text-shadow: none; overflow-wrap: anywhere;
}
#screen-profile .level-badge { display: none; }
#screen-profile .profile-social-actions:not(:has(button:not([hidden]))) { display: none; }
.profile-network-stats {
  display:flex;
  justify-content:center;
  gap:28px;
  width:84%;
  margin:4px auto 10px;
  color:#54142c;
  font:500 12px/1.2 'IBM Plex Mono',monospace;
}
.profile-network-stats button { display:flex; align-items:baseline; gap:5px; padding:4px; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.profile-network-stats strong {
  color:#54142c;
  font-size:16px;
  font-weight:700;
}
#screen-profile .profile-photo-actions {
  top: calc(var(--identity-width) * .19); right: 8%; gap: 7px;
}
#screen-profile .profile-bg-btn { display: none !important; }
#screen-profile .profile-name-edit-btn,
#screen-profile .profile-qr-btn { width: 32px; min-width: 32px; height: 32px; flex: 0 0 32px; box-sizing: border-box; padding: 0; border: 0; box-shadow: none; }
#screen-profile .profile-name-edit-btn { width:32px; min-width:32px; height:32px; border-radius:50%; background:#fffef6 url('assets/identity/edit-icon.webp') center/72% no-repeat; box-shadow:none; }
#screen-profile .profile-qr-btn { background: #fffef6 url('assets/identity/send-icon.webp') center / cover no-repeat; }
#screen-profile .profile-qr-btn span { display: none; }
#screen-profile .friend-requests-panel {
  width: 84.25%; min-height: calc(var(--identity-width) * .28); margin: 0 auto;
  padding: 12px 20px 10px; border: 0; border-radius: 30px;
  background: rgba(255,254,246,.94); box-shadow: none;
}
.friend-requests-header { justify-content: flex-start; gap: 8px; margin: 0 0 10px; font-size: 16px; }
.profile-network-tab { padding: 2px 5px; border:0; border-radius:4px; background:transparent; color:#54142c; font:500 16px/1 'IBM Plex Mono',monospace; cursor:pointer; }
.profile-network-tab.is-active:first-child { background:#ff83bd; color:#54142c; }
.profile-network-tab.is-active:nth-child(2) { background:#ceff00; color:#54142c; }
#friend-request-count { margin-left: auto; font-size: 11px; }
.friend-requests-list { gap: 14px; padding: 0; }
.friend-circle { width: 56px; min-width: 56px; gap: 0; }
.friend-circle-avatar { width: 56px; height: 56px; border-radius: 30%; border: 0; }
.friend-circle-name { display: none; }
#screen-profile .profile-tabs { width: 88%; height: 34px; margin: 10px auto 0; border: 0; }
.profile-tab { min-height: 34px; font-size: 16px; line-height: 22px; font-weight: 400; border-bottom: 2px solid #ffb7df; }
.profile-tab.is-active { border-bottom-color: #54142c; font-weight: 400; }
#screen-profile .profile-tab-panel { width: 88%; padding-top: 33px; }
#profile-posts-panel { display: flex; flex-direction: column; }
.profile-posts-grid { order: 1; columns: 3; column-gap: 8px; }
.profile-posts-grid .profile-post { margin-bottom: 10px; border-radius: 4px; }
.profile-posts-empty { width: 100%; margin: 52px auto 0; text-align: center; }
.profile-posts-empty strong { display: inline; border: 1px solid #ceff00; border-radius: 5px; padding: 0 3px; color: #ceff00; font-size: 15px; font-weight: 400; line-height: 22px; }
.profile-posts-empty p { margin: 7px 0 0; color: rgba(84,20,44,.62); font-size: 10px; line-height: 12px; }
.profile-new-post { order: 2; width: 30px; height: 30px; margin: 45px auto; padding: 0; border: 0; background: transparent; }
.profile-new-post img { width: 100%; height: 100%; object-fit: contain; }
.has-posts .profile-new-post { display: none; }
.profile-reaction-notifications { order: 0; }
#screen-profile #profile-coupons-panel { width: 84%; }
#profile-coupons-panel .glass-cards-grid { gap: 15%; margin-bottom: 18px; }
#profile-coupons-panel .glass-card { display: flex; flex-direction: column; aspect-ratio: 1; padding: 9px; border-radius: 14px; background: #f3f3f3; }
#profile-coupons-panel .glass-card br { display: none; }
#profile-coupons-panel .card-label { order: 0; align-self: flex-start; padding: 2px 4px; max-width: 100%; border-radius: 4px; background: #08c8ee; color: #54142c; font-size: 15px; line-height: 15px; }
#profile-coupons-panel .card-num { order: 1; margin-top: auto; font-size: 68px; line-height: 1; font-weight: 400; color: #ff7ab8; }
#profile-coupons-panel .profile-partners { margin-bottom: 20px; }
.profile-partners { margin-top: 0; }
.profile-partners .partners-header { display: none; }
#profile-coupons-panel .partner-directory-controls { gap: 8px; margin-bottom: 0; }
#profile-coupons-panel .partner-directory-controls input { height: 30px; min-height: 30px; padding: 0 36px 0 18px; border: 1px solid #08c8ee; color: #555; font-size: 14px; background: #f5f5f5 url('assets/identity/search-icon.png') right center / 28px 28px no-repeat; }
#profile-coupons-panel .partner-directory-controls select,
#profile-coupons-panel .partner-directory-list { display: none; }
#profile-coupons-panel .profile-partners:focus-within select,
#profile-coupons-panel .profile-partners:focus-within .partner-directory-list,
#profile-coupons-panel .profile-partners:has(input:not(:placeholder-shown)) select,
#profile-coupons-panel .profile-partners:has(input:not(:placeholder-shown)) .partner-directory-list { display: block; }
#profile-coupons-panel .profile-coupons { min-height: 255px; padding: 18px 20px; border-radius: 30px; background: #f3f3f3; }
.coupons-header > span:first-child { padding: 1px 4px; border-radius: 3px; background: #04c5eb; color: #17121b; }
#profile-coupons-panel .coupon-progress { color: #665561; }
#profile-coupons-panel .partner-directory-item { color: #352830; background: #fffef6; }
#profile-coupons-panel .partner-directory-empty, #profile-coupons-panel .partner-directory-type { color: #6d5a65; }

.map-event-popup { bottom: calc(var(--nav-bottom) + var(--nav-height) + 12px); width: var(--nav-width); max-width: none; height: 51px; gap: 9px; }
.event-popup-main:not(.is-expanded) { flex: 0 0 35.5%; width: 35.5%; min-width: 0; height: 51px; padding: 6px 10px; display: block; border-radius: 17px; background: var(--event-accent, #ceff00); box-shadow: none; }
.event-popup-main::before { display: none; }
.event-popup-main:not(.is-expanded) .event-popup-kicker { padding: 1px 3px; width: max-content; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid #ff3761; border-radius: 3px; background: transparent; color: #ff3761; text-transform: none; font-size: 6px; line-height: 9px; }
.event-popup-tags { display: flex; align-items: center; gap: 4px; min-width: 0; }
.event-popup-category { padding: 2px 3px; background: #ff80bf; border-radius: 2px; color: #fff; font-size: 6px; line-height: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-popup-main:not(.is-expanded) .event-popup-copy strong { margin-top: 3px; color: #fff; font-size: 14px; line-height: 15px; }
.event-popup-main:not(.is-expanded) .event-popup-copy small { margin-top: 2px; color: #fff; font-size: 6px; line-height: 7px; }
.event-popup-main:not(.is-expanded) .event-attend-btn,
.event-popup-main:not(.is-expanded) .event-friend-row { display: none; }
.event-popup-main:not(.is-expanded) .event-close-btn { top: 3px; right: 3px; width: 15px; height: 15px; background: rgba(255,255,255,.8); font-size: 11px; }
.map-event-popup.has-expanded-event { bottom: calc(var(--nav-bottom) + var(--nav-height) + 16px); width: var(--nav-width); max-width: none; }
.event-popup-main.is-expanded { background: var(--event-accent, #ceff00); }

.chat-card { grid-template-rows: auto auto minmax(0,1fr); }
.chat-conversation { min-height: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 12px; padding: 14px; border-radius: 24px; background: rgba(255,254,246,.94); }
.chat-conversation .chat-messages { min-height: 160px; border: 0; border-radius: 0; background: transparent !important; padding: 12px 0; gap: 24px; }
.chat-modal.is-event-chat { background: transparent; align-items: start; }
.chat-modal.is-event-chat .chat-card { position: absolute; top: 25.5%; width: min(92.5vw, 440px); height: 49.6%; min-height: 340px; max-height: calc(100% - var(--nav-height) - var(--nav-bottom) - 85px); margin: 0; padding: 24px; border: 0; border-radius: 30px; box-shadow: none; backdrop-filter: none; }
.chat-kicker { width: max-content; max-width: calc(100% - 24px); padding: 1px 4px; border-radius: 4px; background: #ceff00; color: #54142c; font-size: 16px; }
.chat-card h2 { color: #54142c; font-size: 20px; line-height: 24px; }
.chat-message-bubble, .chat-message.is-mine .chat-message-bubble { background: #fff; color: #201727; border: 1px solid #ffd940; border-radius: 20px; padding: 9px 15px 14px; }
.chat-message strong { color: #ff7ab8; font-size: 16px; line-height: 20px; margin-bottom: 8px; }
.chat-message.is-mine strong { color: #ceff00; }
.chat-message { font-size: 12px; }
.chat-form input { height: 42px; background: #fff; border: 1px solid #ceff00; color: #54142c; font-size: 12px; }
.chat-close { top: 10px; right: 10px; }

.profile-qr-modal { position: fixed; z-index: 900; background: rgba(255,255,255,.96); padding: 0 4%; overflow-y: auto; backdrop-filter: none; }
.profile-qr-card { width: min(92vw, 400px); min-height: min(74dvh, 640px); margin: 35px auto calc(var(--nav-height) + var(--nav-bottom) + 25px); padding: 50px 25px 60px; gap: 26px; box-sizing: border-box; border: 0; border-radius: 30px; background:
  radial-gradient(ellipse at 50% 100%, rgba(217,255,0,.98) 0%, rgba(118,225,0,.9) 31%, rgba(118,225,0,0) 62%),
  radial-gradient(ellipse at 50% 68%, rgba(255,224,74,.98) 0%, rgba(255,128,42,.94) 27%, rgba(255,20,31,.92) 52%, rgba(255,20,31,0) 74%),
  linear-gradient(180deg, #ff62b5 0%, #ff2c72 20%, #ff1221 43%, #ff6b25 63%, #d8f000 100%); box-shadow: 0 22px 46px rgba(178,245,0,.3), 0 10px 34px rgba(255,30,75,.3), 0 0 44px rgba(255,92,185,.34); }
.profile-qr-kicker { display: none; }
.profile-qr-avatar { width: 56%; aspect-ratio: 1; border-radius: 30%; background: #fffef6 url('assets/identity/profile-icon.png') center / cover no-repeat; box-shadow: 0 0 0 8px rgba(255,251,185,.48), 0 0 25px rgba(255,244,101,.9); }
.profile-qr-card strong { color: white; border: 2px solid #ceff00; border-radius: 8px; padding: 4px 25px; font-size: 20px; }
.profile-qr-card img { width: 61%; padding: 10px; border: 2px solid #e8fa45; border-radius: 22px; background: #83cc00; box-shadow: none; }
.profile-qr-card small { color: white; font-size: 9px; }

#profile-post-view { z-index: 900; background: #fff; padding: 6.9dvh 4% calc(var(--nav-bottom) + var(--nav-height) + 15px); overflow-y: auto; align-items: start; }
body:has(#profile-qr-modal.is-visible) .scan-bottom-wrapper,
body:has(#profile-post-view:not([hidden])) .scan-bottom-wrapper { width: var(--nav-width); }
body:has(#profile-qr-modal.is-visible) .scan-bottom-wrapper #nav-btn-map,
body:has(#profile-qr-modal.is-visible) .scan-bottom-wrapper #nav-btn-add-pin,
body:has(#profile-post-view:not([hidden])) .scan-bottom-wrapper #nav-btn-map,
body:has(#profile-post-view:not([hidden])) .scan-bottom-wrapper #nav-btn-add-pin { display: none; }
body:has(#profile-qr-modal.is-visible) .scan-bottom-wrapper #map-search-toggle,
body:has(#profile-qr-modal.is-visible) .scan-bottom-wrapper #nav-btn-profile-footer,
body:has(#profile-post-view:not([hidden])) .scan-bottom-wrapper #map-search-toggle,
body:has(#profile-post-view:not([hidden])) .scan-bottom-wrapper #nav-btn-profile-footer { display: grid; }
.profile-post-detail { width: min(92vw,440px); max-height: none; min-height: 0; display: block; padding: 0; overflow: hidden; border: 1px solid #ff64ac; border-radius: 36px; background: #f2f2f2; }
.profile-post-detail > #profile-post-view-image { display: block; width: 100%; height: auto; min-height: 0; max-height: min(calc(100dvh - 180px), 1920px); object-fit: contain; }
.profile-post-detail::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.5)); pointer-events: none; }
.profile-post-caption-overlay { position: absolute; bottom: 18px; left: 7%; width: 70%; z-index: 2; color: white; }
.profile-post-caption-overlay h2,#profile-post-view-title { margin:0 0 7px; color:#fff; font-size:clamp(13px,4.2vw,20px); line-height:1.12; overflow-wrap:anywhere; text-shadow:0 1px 6px rgba(0,0,0,.65); }
.profile-post-caption-overlay p { font-size: 10px; line-height: 1.2; max-height: 110px; overflow-y: auto; }
.profile-post-caption-overlay .profile-post-private-counts { display: block; margin-top: 8px; color: white; text-align: left; }
.profile-post-caption-overlay .profile-post-private-counts[hidden] { display: none; }
.profile-post-detail .profile-post-actions { position: absolute; right: 6%; bottom: 20px; z-index: 3; flex-direction: column; gap: 12px; }
.profile-post-detail .profile-post-action { width: 42px; height: 42px; }
.profile-post-detail .profile-post-close { z-index: 4; }
#profile-open-events { padding: 1px 4px; border: 0; border-radius: 3px; background: #ceff00; color: #54142c; font-size: 16px; cursor: pointer; }
.nav-add-menu { position: absolute; bottom: calc(100% + 12px); right: 0; width: 220px; padding: 6px; border: 1px solid #ff8cc5; border-radius: 8px; background: #fffef6; pointer-events: auto; }
.nav-add-menu[hidden] { display: none; }
.nav-add-menu button { display: block; width: 100%; padding: 12px; text-align: left; color: #54142c; background: none; border: 0; font-size: 13px; cursor: pointer; }
.nav-add-menu button:hover { background: #f4f4f4; }
#profile-post-action-error { position: relative; z-index: 3; background: #fff; padding: 8px; }
#profile-post-action-error[hidden] { display: none; }

@media (max-height: 650px) {
  .chat-modal.is-event-chat .chat-card { top: 6%; height: 66%; min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-bottom-wrapper .map-search-form::before { transition-duration: .01ms; }
}

/* Login and cadastro use the supplied gradient/card identity. */
.auth-screen { --auth-cyan:#08c8ee; --auth-ink:#54142c; background:#ff1326 url('assets/identity/auth-gradient.webp') center top / cover no-repeat; overflow:hidden; overscroll-behavior:none; font-family:'IBM Plex Mono',monospace; scrollbar-width:none; }
.auth-screen::-webkit-scrollbar { display:none; }
.auth-screen .login-bg { display:none; }
.auth-screen .auth-overlay { position:absolute; inset:0; min-height:1320px; pointer-events:none; }
.auth-brand-copy { position:absolute; z-index:3; top:36.8%; left:13%; padding:5px 11px; border-radius:16px; background:rgba(255,255,255,.92); color:var(--auth-ink); font:700 clamp(17px,5.4vw,24px)/1.15 'IBM Plex Mono',monospace; }
.auth-screen .auth-field { position:absolute; left:8%; width:84%; height:238px; box-sizing:border-box; border-radius:42px; background:rgba(249,249,249,.94); box-shadow:0 12px 24px rgba(122,0,38,.08); pointer-events:auto; }
.auth-screen .auth-field::after { content:''; position:absolute; left:8%; right:8%; bottom:34px; height:4px; border-radius:10px; background:linear-gradient(90deg,#ffe900 0%,#fff9c2 42%,#f4c4db 72%,#f4a5db 100%); }
.auth-screen .auth-field span { position:absolute; top:86px; left:36px; z-index:1; padding:3px 7px; border-radius:5px; background:var(--auth-cyan); color:#54142c; font:700 22px/1.05 'IBM Plex Mono',monospace; }
.auth-screen .auth-field input { position:absolute; z-index:2; left:32px; right:32px; bottom:48px; width:calc(100% - 64px); height:46px; border:0; outline:0; background:transparent; color:var(--auth-ink); font:500 19px/1 'IBM Plex Mono',monospace; }
.auth-screen .auth-field input:focus { box-shadow:0 0 0 3px rgba(8,200,238,.22); }
.auth-screen .login-fields .field-email { top:31%; } .auth-screen .login-fields .field-password { top:64%; }
.auth-screen .register-fields .field-name { top:35%; } .auth-screen .register-fields .field-email { top:72%; } .auth-screen .register-fields .field-phone { top:105%; } .auth-screen .register-fields .field-password { top:138%; }
.auth-screen .auth-submit { position:absolute; left:18%; width:64%; height:68px; border:2px solid rgba(255,255,255,.72); border-radius:999px; background:linear-gradient(110deg,#ff1426,#ff5c95 50%,#ffe96a); color:#fffef6; box-shadow:0 10px 25px rgba(129,0,35,.24),inset 0 2px 8px rgba(255,255,255,.45); font:700 18px 'IBM Plex Mono',monospace; cursor:pointer; pointer-events:auto; }
.auth-screen .btn-login { top:98%; } .auth-screen .btn-register { top:171%; }
.auth-screen .auth-switch-link, .auth-screen .forgot-password-link, .auth-screen .client-area-link { font-family:'IBM Plex Mono',monospace; }
.auth-screen .auth-switch-link { top:110%; right:18%; } .auth-screen .register-switch { top:185%; }
.auth-screen .forgot-password-link { top:109%; color:#fffef6; } .auth-screen .client-area-link { top:117%; }
.auth-screen#screen-login .auth-overlay { min-height:100vh; }
.auth-screen#screen-login .btn-login { top:82%; }
.auth-screen#screen-login .auth-switch-link { top:91%; }
.auth-screen#screen-login .forgot-password-link { top:96%; }
.auth-screen#screen-login .client-area-link { display:none; }
.auth-screen#screen-login .auth-submit { background:#ceff00; color:#142000; box-shadow:0 10px 25px rgba(61,100,0,.24); }
.auth-screen { width:100%; margin:0; }
.auth-screen .auth-overlay { width:min(100%,520px); left:50%; right:auto; transform:translateX(-50%); }
.auth-brand-copy { left:max(13%,calc(50% - 192px)); }
.auth-screen .auth-switch-link { left:calc(50% + 54px); right:auto; }
.auth-screen.auth-step-active .auth-brand-copy { opacity:0; pointer-events:none; transition:opacity .2s ease; }

/* The scan button becomes the camera entrance. */
#scan-entry-burst { position:fixed; inset:0; z-index:9; pointer-events:none; opacity:0; clip-path:circle(7% at 50% calc(100% - var(--nav-bottom))); background:radial-gradient(circle at 22% 72%,#ff4c9e 0 11%,transparent 31%),radial-gradient(circle at 78% 64%,#8bdaFA 0 10%,transparent 29%),radial-gradient(circle at 51% 78%,#ceff00 0 13%,transparent 36%),linear-gradient(145deg,#ff1638 0%,#ff65b6 35%,#ffe94e 66%,#ceff00 100%); }
#scan-entry-burst.is-active { animation:scanEntryBurst .98s cubic-bezier(.12,.8,.18,1) both; }
body.scanner-active #screen-scan .box-info-wrapper { opacity:0; pointer-events:none; }
body.scanner-active #screen-scan .shine-line { opacity:.22; }
@keyframes scanEntryBurst { 0%{opacity:.98;clip-path:circle(7% at 50% calc(100% - var(--nav-bottom)));} 62%{opacity:.96;clip-path:circle(78% at 50% 52%);} 100%{opacity:0;clip-path:circle(150% at 50% 50%);} }

/* Profile refinements. */
.friend-circle-name { text-shadow:none!important; }
.friend-circle-avatar { box-shadow:none!important; }
.profile-events-inline { margin-top:14px; padding-top:12px; border-top:2px solid rgba(84,20,44,.42); }
.profile-events-inline .events-header { margin-bottom:8px; }
.profile-events-inline .profile-events-list { display:flex; gap:8px; max-height:none; overflow-x:auto; overflow-y:hidden; }
.profile-event-item { position:relative; min-width:190px; min-height:58px; grid-template-columns:42px 1fr; align-items:center; padding:8px; border-radius:12px; background:rgba(255,254,246,.72); color:#54142c; }
.profile-event-thumb { width:42px; height:42px; border-radius:8px; background:#ceff00 center/cover no-repeat; }
.profile-event-copy { min-width:0; display:grid; gap:2px; }
.profile-event-item span, .profile-event-item small { color:#54142c; font-size:9px; }
.profile-event-item strong { color:#54142c; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-tab-enter { animation:profileTabEnter .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes profileTabEnter { 0% { opacity:0; transform:translateY(12px); clip-path:inset(0 0 100% 0); } 55% { opacity:1; clip-path:inset(0 0 0 0); } 100% { transform:translateY(0); } }
.profile-post-modal.has-photo #profile-post-file,
.profile-post-modal.has-photo label[for="profile-post-file"] { display:none; }
.profile-post-modal.has-photo .profile-post-form { background:#fffef6; }

/* Search grows leftward from the magnifier and preserves the profile button. */
.scan-bottom-wrapper .map-search-form { left:7%; right:18%; width:auto; inset-block:0; }
.scan-bottom-wrapper .map-search-form::before { clip-path:inset(0 0 0 100% round 999px); }
.scan-bottom-wrapper .map-search-form.is-open::before { clip-path:inset(0 0 0 0 round 999px); }
.scan-bottom-wrapper.search-active .scan-bottom-content { opacity:1; pointer-events:auto; }
.scan-bottom-wrapper.search-active #nav-btn-scan,
.scan-bottom-wrapper.search-active #map-search-toggle { opacity:0; pointer-events:none; }
.scan-bottom-wrapper.search-active #nav-btn-profile-footer {
  opacity:1;
  pointer-events:auto;
  position:absolute;
  top:0;
  right:0;
  z-index:4;
}

/* MindAR does not need device orientation for image targets. Its generic
   immersive-site dialog only blocks the camera flow on iOS. */
.a-dialog,
.a-dialog-container,
.a-dialog-allow-button,
.a-dialog-deny-button,
.a-orientation-modal { display:none !important; }

/* Coupons and partner search: PDF identity only, without the legacy blue/gray treatment. */
#profile-coupons-panel { color:#54142c; font-family:'IBM Plex Mono',monospace; }
#profile-coupons-panel .glass-cards-grid { gap:14px; margin-bottom:20px; }
#profile-coupons-panel .glass-card { background:#f2f2f2; border:0; box-shadow:none; }
#profile-coupons-panel .card-label { background:#ceff00; color:#10170c; font-family:'IBM Plex Mono',monospace; }
#profile-coupons-panel .card-num { color:#ff73b7; font-family:'IBM Plex Mono',monospace; }
#profile-coupons-panel .profile-partners { padding:0; margin:0 0 28px; background:transparent; }
#profile-coupons-panel .partner-directory-controls { display:block; margin:0; }
#profile-coupons-panel .partner-directory-controls input { display:block; width:100%; height:40px; min-height:40px; box-sizing:border-box; border:1.5px solid #08c8ee; border-radius:999px; background:#fff url('assets/identity/search-icon.png') right 10px center/24px 24px no-repeat; color:#54142c; font:400 14px 'IBM Plex Mono',monospace; }
#profile-coupons-panel .partner-directory-controls input::placeholder { color:#aaa; opacity:1; }
#profile-coupons-panel .partner-directory-controls select { display:none; }
#profile-coupons-panel .partner-directory-list { margin-top:10px; color:#54142c; font-family:'IBM Plex Mono',monospace; }
#profile-coupons-panel .profile-coupons { min-height:255px; padding:18px 20px; border:0; border-radius:30px; background:#f2f2f2; box-shadow:none; }
#profile-coupons-panel .coupons-header > span:first-child { padding:3px 6px; border-radius:5px; background:#08c8ee; color:#54142c; font:500 16px 'IBM Plex Mono',monospace; }
#profile-coupons-panel .coupon-count { color:#54142c; }
#profile-coupons-panel .coupon-progress { color:#777; font-family:'IBM Plex Mono',monospace; }
#profile-coupons-panel .coupon-card { display:flex; flex-wrap:wrap; gap:10px; min-height:0; padding:0; border:0; background:transparent; }
#profile-coupons-panel .coupon-card.is-empty { display:block; }
#profile-coupons-panel .coupon-wallet-entry { min-width:0; flex:1 1 42%; padding:10px 12px; border-radius:6px; background:#eef1f2; color:#54142c; }
#profile-coupons-panel .coupon-wallet-entry:nth-child(2n) { background:#ff741c; }
#profile-coupons-panel .coupon-partner, #profile-coupons-panel .coupon-title, #profile-coupons-panel .coupon-detail { color:#54142c; font-family:'IBM Plex Mono',monospace; }

/* Perfil: moldura quadrada fornecida na nova identidade. */
#screen-profile .profile-avatar {
  position: relative;
  border-radius: 30%;
  overflow: hidden;
  background-image: url('assets/identity/profile-photo-gradient.png'), url('assets/identity/profile-icon.png');
  background-position: center;
  background-repeat: no-repeat;
  /* A moldura e a foto compartilham exatamente o mesmo quadrado; cover
     recortava as extremidades do asset em telas mais estreitas. */
  background-size: 100% 100%, 76%;
  box-shadow: none;
}
#screen-profile .profile-avatar::before { display:none; }
#screen-profile .profile-avatar::after {
  content: '';
  display: block;
  position: absolute;
  inset: -32%;
  z-index: 2;
  border-radius: inherit;
  background: url('assets/identity/profile-photo-gradient.png') center / 100% 100% no-repeat;
  pointer-events: none;
}

/* A área visual nunca deve revelar a página branca atrás do app. */
html, body, #ui-layer, #screens-container { background: #f1f2ec; }
#screen-map, #screen-map .real-map, #screen-map .map-bg { background-color: #f1f2ec; }

/* O fundo do perfil também preenche a área segura superior do navegador. */
body:has(#screen-profile.active-screen),
body:has(#screen-profile.active-screen) #ui-layer,
body:has(#screen-profile.active-screen) #screens-container,
body:has(#screen-profile.active-screen) #screen-profile {
  background: #fff url('assets/identity/profile-gradient.webp') center top / 100% auto no-repeat;
}

/* Na timeline o globo já é a tela atual; perfil, busca e scanner continuam
   disponíveis no menu inferior. */
body.timeline-open .scan-bottom-wrapper #nav-btn-map { display: none !important; }

/* O avatar pode ser atualizado pelo JS com um style inline. */
#screen-profile .profile-avatar[style] {
  background-size: cover !important;
}

/* Halo localizado na foto: a luz acompanha o quadrado e nao invade o perfil inteiro. */
#screen-profile .profile-avatar {
  overflow: visible;
  filter: none;
  box-shadow:
    0 0 28px 8px rgba(255,238,70,.45) !important;
}
#screen-profile .profile-avatar::before {
  display: none !important;
  content: none;
}

/* Eventos voltam ao bloco compacto do PDF, junto dos amigos. */
#screen-profile .profile-events-inline {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid rgba(84,20,44,.2);
}
#screen-profile .profile-events-inline .events-header {
  margin-bottom: 8px;
  color: #54142c;
  font: 500 16px/1 'IBM Plex Mono', monospace;
}
#screen-profile .profile-events-inline .events-header > span:first-child {
  padding: 2px 5px;
  border-radius: 4px;
  background: #ceff00;
  color: #54142c;
}
#screen-profile .profile-events-list {
  display:flex;
  gap:8px;
  max-height:none;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom: 2px;
  scrollbar-width:none;
}
#screen-profile .profile-events-list::-webkit-scrollbar { display:none; }
#screen-profile .profile-event-item {
  flex: 0 0 190px;
  min-height: 58px;
  grid-template-columns: 42px minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding:8px;
  border:0;
  border-radius:12px;
  background:#f2f2f2;
  color:#54142c;
}
#screen-profile .profile-event-thumb { width:42px; height:42px; border-radius:30%; background:#ceff00 center/cover no-repeat; }
#screen-profile .profile-event-copy { min-width:0; display:grid; gap:2px; }
#screen-profile .profile-event-item span,
#screen-profile .profile-event-item small { color:#777; font:400 8px/1.1 'IBM Plex Mono',monospace; }
#screen-profile .profile-event-item strong { color:#54142c; font:500 11px/1.1 'IBM Plex Mono',monospace; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Chat e publicação seguem o cartão claro, compacto e arredondado do PDF. */
.chat-modal { background:rgba(79,7,31,.18); }
.chat-card {
  width:min(88vw,400px);
  max-height:min(78dvh,620px);
  padding:24px 22px 20px;
  border:0;
  border-radius:30px;
  background:#f2f2f2;
  box-shadow:0 18px 50px rgba(79,7,31,.22);
}
.chat-card h2 { margin:6px 0 0; font:500 20px/1.1 'IBM Plex Mono',monospace; color:#54142c; }
.chat-conversation { padding:14px; border-radius:20px; background:#fffef6; }
.chat-message-avatar { width:42px; min-width:42px; height:42px; border-radius:30%; }
.chat-form input { border:1px solid #08c8ee; border-radius:8px; font-family:'IBM Plex Mono',monospace; }
.chat-form button { width:42px; min-width:42px; height:42px; border:0; border-radius:30%; background:#ceff00; }
.chat-modal.is-event-chat .chat-card { top:50%; left:50%; transform:translate(-50%,-50%); width:min(88vw,400px); height:auto; max-height:78dvh; padding:24px 22px 20px; border-radius:30px; }

.profile-post-modal { background:rgba(79,7,31,.18); }
.profile-post-form {
  width:min(88vw,400px);
  max-height:min(82dvh,680px);
  padding:24px 22px 22px;
  border:0;
  border-radius:30px;
  background:#f2f2f2;
  color:#54142c;
  box-shadow:0 18px 50px rgba(79,7,31,.22);
}
.profile-post-form h2 { font:500 20px/1.1 'IBM Plex Mono',monospace; color:#54142c; }
.profile-post-form label { font:500 11px/1 'IBM Plex Mono',monospace; color:#54142c; }
.profile-post-form input, .profile-post-form textarea { border:1px solid #08c8ee; border-radius:8px; background:#fffef6; color:#54142c; font-family:'IBM Plex Mono',monospace; }
.profile-post-form button[type='submit'] { border:0; border-radius:999px; background:#08c8ee; color:#54142c; font:500 14px 'IBM Plex Mono',monospace; box-shadow:none; }
.profile-post-form input[type='file']::file-selector-button { border:0; border-radius:6px; background:#08c8ee; color:#54142c; font-family:'IBM Plex Mono',monospace; }
.profile-post-close { border:0; background:#fffef6; color:#54142c; }
.profile-post-preview-strip { display:flex; gap:6px; overflow-x:auto; min-height:0; }
.profile-post-preview-strip img { width:54px; height:54px; flex:0 0 54px; object-fit:cover; border-radius:8px; border:1px solid #08c8ee; }
.profile-post-media { position:relative; touch-action:pan-y; overflow:hidden; }
.profile-post-media > img,#profile-post-view-image { will-change:transform; backface-visibility:hidden; }
.profile-post-carousel-count { position:absolute; top:10px; right:10px; padding:3px 7px; border-radius:999px; background:rgba(84,20,44,.72); color:#fffef6; font:500 10px 'IBM Plex Mono',monospace; }
.profile-post-carousel-controls { position:absolute; inset:50% 8px auto; transform:translateY(-50%); display:flex; justify-content:space-between; pointer-events:none; }
.profile-post-carousel-controls button, .profile-post-carousel-btn { display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:rgba(255,254,246,.84); color:#54142c; font:400 26px/1 'IBM Plex Mono',monospace; cursor:pointer; pointer-events:auto; }
.profile-post-carousel-dots { position:absolute; left:50%; bottom:12px; transform:translateX(-50%); display:flex; gap:5px; z-index:3; }
.profile-post-carousel-dots span { width:6px; height:6px; border-radius:50%; background:rgba(255,254,246,.58); }
.profile-post-carousel-dots span.is-active { background:#ceff00; }
.profile-post-detail { position:relative; }
.profile-post-carousel-btn { position:absolute; top:50%; transform:translateY(-50%); z-index:4; }
.profile-post-carousel-prev { left:10px; }
.profile-post-carousel-next { right:10px; }

/* Caixa de mensagem do mapa, fiel ao cartão do PDF. */
.chat-modal.is-event-chat { align-items:center; justify-content:center; }
.chat-modal.is-event-chat .chat-card {
  position:relative;
  inset:auto;
  transform:none;
  width:min(92vw,420px);
  height:auto;
  min-height:0;
  max-height:68dvh;
  padding:26px 6% 22px;
  border-radius:36px;
  background:#73e000;
}
.chat-modal.is-event-chat .chat-kicker { margin-bottom:10px; background:#ceff00; color:#54142c; font:500 16px/1 'IBM Plex Mono',monospace; }
.chat-modal.is-event-chat .chat-card h2 { margin:0 0 12px; font:500 22px/1.1 'IBM Plex Mono',monospace; }
.chat-modal.is-event-chat .chat-conversation { min-height:300px; padding:18px 16px 14px; border-radius:28px; background:rgba(255,254,246,.92); }
.chat-modal.is-event-chat .chat-message-bubble { border-color:#ffb7df; border-radius:20px; }
.chat-modal.is-event-chat .chat-form input { height:44px; border:2px solid #ceff00; border-radius:999px; }
.chat-modal.is-event-chat #chat-send { width:46px; min-width:46px; height:46px; border:2px solid #ceff00; border-radius:50%; background:#fffef6; }

/* Mapa em tela cheia: elimina a faixa superior do viewport e mantém a UI sobre o mapa. */
html, body { background:var(--app-surface, #f1f2ec); overscroll-behavior:none; }
img, video, canvas, a-scene, #nav-btn-scan { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
html:has(#screen-profile.active-screen) { background:#d5ef00; }
button {
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  transition:background-color .18s ease, opacity .18s ease, scale .18s ease;
}
button:active:not(:disabled) { scale:.96; }
button:focus-visible { outline:2px solid #08c8ee; outline-offset:3px; }
button:disabled { cursor:default; opacity:.5; }
@media (prefers-reduced-motion:reduce) {
  button { transition:none; }
  button:active:not(:disabled) { scale:1; }
}
#ui-layer { top:0; left:0; width:100vw; height:100dvh; }
#screens-container { width:100%; height:100dvh; }
#screen-map { position:fixed; inset:0; width:100vw; height:100dvh; min-height:100dvh; background:#f1f2ec; }
#screen-map .map-bg, #screen-map .real-map { top:0; height:100dvh; min-height:100%; }

/* Event chat follows the PDF: fluorescent green outer card, cream message box and circular send asset. */
.chat-message-avatar { width:38px; height:38px; min-width:38px; border:0; border-radius:11px; box-shadow:none; }
#chat-send img { display:block; width:100%; height:100%; object-fit:contain; }
.chat-modal.is-event-chat { background:transparent; }
.chat-modal.is-event-chat .chat-card { top:33%; width:min(92.5vw,440px); height:64%; min-height:0; max-height:none; margin:0; padding:28px 6% 22px; border:0; border-radius:38px; background:var(--event-accent,#ceff00); box-shadow:none; }
.chat-modal.is-event-chat .chat-kicker { background:#ceff00; color:#54142c; }
.chat-modal.is-event-chat .chat-card h2 { color:#54142c; }
.chat-modal.is-event-chat .chat-conversation { min-height:0; padding:20px 18px 14px; border-radius:28px; background:rgba(255,254,246,.93); }
.chat-modal.is-event-chat .chat-messages { min-height:0; padding:12px 8px; border:0; background:transparent!important; }
.chat-modal.is-event-chat .chat-message-avatar { border:0; border-radius:10px; }
.chat-modal.is-event-chat .chat-form { gap:10px; }
.chat-modal.is-event-chat .chat-form input { height:44px; border:2px solid #ceff00; background:#fff; }
.chat-modal.is-event-chat #chat-send { width:46px; min-width:46px; height:46px; padding:5px; border:2px solid #ceff00; border-radius:50%; background:#fff; font-size:0; }

/* O envio usa apenas o icone circular, sem o bloco verde herdado do formulario. */
.chat-modal #chat-send {
  width:44px !important;
  min-width:44px !important;
  height:44px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:#fffef6 url('assets/identity/send-icon.webp') center / contain no-repeat !important;
  box-shadow:none !important;
}
.chat-modal #chat-send img { display:none !important; }

/* O popup de evento e o chat precisam permanecer usaveis em alturas menores. */
.event-chat-btn {
  border:1px solid #08c8ee !important;
  border-radius:30px !important;
  background:#fffef6 !important;
  color:#54142c !important;
  font:500 12px/1 'IBM Plex Mono',monospace !important;
  box-shadow:none !important;
}
.chat-modal.is-event-chat {
  align-items:flex-start !important;
  justify-content:center !important;
  overflow-y:auto !important;
  padding:calc(env(safe-area-inset-top) + 16px) 0 calc(var(--nav-height) + var(--nav-bottom) + 24px) !important;
  box-sizing:border-box;
}
.chat-modal.is-event-chat .chat-card {
  position:relative !important;
  top:auto !important;
  left:auto !important;
  width:min(92.5vw,440px) !important;
  height:auto !important;
  max-height:calc(100dvh - 48px) !important;
  margin:auto !important;
  overflow:hidden !important;
}
.chat-modal.is-event-chat .chat-conversation {
  min-height:0 !important;
  max-height:calc(100dvh - 250px) !important;
  overflow-y:auto !important;
}

/* Depois que uma tela funcional abriu, a navegação não pode ficar invisivel. */
body:has(#screen-map.active-screen) .scan-bottom-wrapper,
body:has(#screen-scan.active-screen) .scan-bottom-wrapper {
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}

/* Camera limpa: nenhuma camada clara ou gradiente entre o video e a interface. */
html:has(body.scanner-active),
body.scanner-active,
body.scanner-active #ui-layer,
body.scanner-active #screens-container,
body.scanner-active #screen-scan { background:transparent!important; }
body.scanner-active > video,
body.scanner-active video.mindar-video { position:fixed!important; inset:0!important; z-index:-1!important; display:block!important; width:100vw!important; height:100dvh!important; object-fit:cover!important; background:#000!important; opacity:1!important; visibility:visible!important; }
body.scanner-active #screen-scan::before { content:''; position:absolute; z-index:2; inset:13% 7% 20%; display:block!important; border:2px solid #08c8ee; border-radius:24px; background:transparent!important; opacity:.82!important; pointer-events:none; }
body.scanner-active #screen-scan::after { display:none!important; }
body.scanner-active .mindar-ui-overlay,
body.scanner-active .mindar-ui-loading,
body.scanner-active .mindar-ui-scanning,
body.scanner-active .mindar-ui-error,
body.scanner-active .shine-line { display:none!important; opacity:0!important; }
body.scanner-active #screen-scan .box-info-wrapper { opacity:1; transition:opacity .2s ease; }
body.scanner-active.scanner-camera-ready #screen-scan .box-info-wrapper { opacity:0; pointer-events:none; }
body.scanner-active #screen-scan .glass-box { border:0; background:#eef1f2; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }

/* Feed do perfil: masonry de tres colunas, inspirado no Pinterest e no PDF. */
#profile-posts-panel { width:88%; }
.profile-posts-grid { columns:3; column-gap:9px; display:block; }
.profile-posts-grid .profile-post { position:relative; display:inline-block; width:100%; margin:0 0 9px; overflow:hidden; border:0; border-radius:12px; background:#f2f2f2; break-inside:avoid; vertical-align:top; }
.profile-post-media { position:relative; display:block; width:100%; margin:0; padding:0; border:0; background:#f2f2f2; touch-action:pan-y; overflow:hidden; cursor:pointer; }
.profile-post-media img { display:block; width:100%; height:auto; max-height:1920px; object-fit:cover; }
.profile-post-meta { position:absolute; inset:auto 0 0; display:flex; align-items:flex-end; gap:5px; min-height:46px; padding:20px 6px 6px; background:linear-gradient(transparent,rgba(24,13,20,.7)); color:#fffef6; pointer-events:none; }
.profile-post-meta > strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:500 8px/1.1 'IBM Plex Mono',monospace; }
.profile-post-meta > small { display:none; }
.profile-post-actions { margin-left:auto; display:flex; gap:4px; pointer-events:auto; }
.profile-post-actions .profile-post-action { width:25px; height:25px; padding:3px; }
.profile-post-actions .profile-post-action img { width:100%; height:100%; object-fit:contain; }
.profile-posts-grid .profile-post-meta { display:none; }
.profile-post-carousel-count { top:6px; right:6px; padding:2px 5px; font-size:8px; }
.profile-post-carousel-controls { inset:50% 4px auto; }
.profile-post-carousel-controls button { width:24px; height:24px; font-size:20px; }

/* Timeline: imagem vertical com ações sobrepostas, como no cartão de referência. */
.profile-post-detail { border-radius:16px; background:#f2f2f2; }
.profile-post-detail > #profile-post-view-image { min-height:0; max-height:min(calc(100dvh - 180px), 1920px); object-fit:contain; }
.profile-post-action { border-radius:50%; background:#fff; }
.profile-post-action img { width:100%; height:100%; object-fit:contain; }
.profile-post-like[aria-pressed='true']::after { inset:11px; }

/* Publicacao aberta: a foto ocupa o cartao inteiro, sem encolher a imagem. */
.profile-post-detail {
  width:100%;
  max-width:none;
  border-radius:28px;
}
.profile-post-detail > #profile-post-view-image {
  display:block;
  width:100%;
  height:auto;
  min-width:100%;
  max-width:none;
  margin:0;
  max-height:none;
  object-fit:contain;
}
.profile-post-detail .profile-post-carousel-btn {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid rgba(84,20,44,.12);
  border-radius:50%;
  background:rgba(255,254,246,.92);
  color:#54142c;
  font-size:31px;
  line-height:1;
  box-shadow:0 5px 14px rgba(84,20,44,.16);
  transform:translateY(-50%);
}
.profile-post-detail .profile-post-carousel-prev { left:12px; }
.profile-post-detail .profile-post-carousel-next { right:12px; }
.profile-post-detail .profile-post-carousel-btn:active { transform:translateY(-50%) scale(.94); }
.profile-post-suggestions article { display:grid; min-width:0; gap:5px; }
.profile-post-suggestions article > button:first-child { position:relative; }
.profile-post-suggestions .post-author-link { min-height:24px; padding:3px 5px; overflow:hidden; border-radius:5px; background:#ff72b6; color:#fff; font:600 clamp(8px,2.4vw,10px)/1.15 'IBM Plex Mono',monospace; text-overflow:ellipsis; white-space:nowrap; }

/* Only the active field is interactive; the keyboard never moves a tall artboard. */
.auth-screen { height:var(--auth-visible-height, 100dvh); min-height:0; container:auth / size; }
.auth-screen#screen-login .auth-overlay,
.auth-screen#screen-register .auth-overlay {
  min-height:0; height:100%; pointer-events:auto;
}
.auth-screen .auth-brand-copy {
  top:max(24px, env(safe-area-inset-top)); left:8%;
  font-size:22px; opacity:1; transition:none;
}
.auth-screen .auth-overlay .auth-field {
  top:clamp(100px, 28%, 230px); height:180px;
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translate3d(0,var(--field-offset, 20px),0);
  transition:opacity .2s ease, transform .24s cubic-bezier(.22,.8,.2,1), visibility .24s;
}
.auth-screen .auth-overlay .auth-field.is-current {
  opacity:1; visibility:visible; pointer-events:auto; transform:translate3d(0,0,0);
}
.auth-screen .auth-field span { top:28px; left:24px; font-size:20px; }
.auth-screen .auth-field input { left:24px; right:24px; width:calc(100% - 48px); bottom:38px; font-size:18px; }
.auth-screen .auth-field::after { bottom:24px; }
.auth-screen .auth-overlay .auth-submit,
.auth-screen .auth-overlay .auth-continue {
  position:absolute; top:auto; bottom:calc(112px + env(safe-area-inset-bottom));
  left:calc(8% + 56px); width:calc(84% - 56px); height:52px;
  border:0; border-radius:26px; background:#08c8ee; color:#54142c;
  box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none;
  font:700 17px/1 'IBM Plex Mono',monospace; transform:none;
  cursor:pointer; pointer-events:auto;
}
.auth-screen#screen-login .auth-overlay .auth-submit,
.auth-screen#screen-login .auth-overlay .auth-continue,
.auth-screen#screen-login .auth-back {
  top:auto;
  bottom:calc(132px + env(safe-area-inset-bottom));
}
.auth-screen#screen-login .auth-remember {
  bottom:calc(194px + env(safe-area-inset-bottom));
}
.auth-screen .auth-overlay button[hidden] { display:none; }
.auth-screen .auth-remember { position:absolute; left:9%; bottom:calc(174px + env(safe-area-inset-bottom)); display:flex; align-items:center; gap:9px; color:#54142c; font:500 12px/1.2 'IBM Plex Mono',monospace; cursor:pointer; pointer-events:auto; }
.auth-screen .auth-remember[hidden] { display:none; }
.auth-screen .auth-remember input { width:19px; height:19px; margin:0; accent-color:#08c8ee; }
.auth-screen .auth-back {
  position:absolute; bottom:calc(112px + env(safe-area-inset-bottom)); left:8%;
  width:44px; height:52px; border:1px solid #08c8ee; border-radius:26px;
  background:#fffef6; color:#54142c; font-size:26px; pointer-events:auto;
}
.auth-screen .auth-progress {
  position:absolute; top:calc(clamp(100px, 28%, 230px) + 184px); left:8%;
  margin:8px 0; color:#54142c; background:#fffef6; border-radius:5px; padding:3px 8px;
  font:500 13px/1.2 'IBM Plex Mono',monospace;
}
.auth-screen#screen-register .auth-switch-link,
.auth-screen#screen-login .auth-login-links {
  top:auto; bottom:calc(12px + env(safe-area-inset-bottom)); left:8%; right:8%;
  width:84%; margin:0; transform:none;
}
.auth-screen#screen-login .auth-login-links {
  position:absolute; z-index:4; display:grid; grid-template-columns:1fr 1fr; gap:10px;
}
.auth-screen#screen-login .auth-login-links .auth-switch-link,
.auth-screen#screen-login .auth-login-links .forgot-password-link,
.auth-screen#screen-register .auth-switch-link {
  position:static; inset:auto; width:100%; min-height:44px; margin:0; transform:none; border:0;
  background:#fffef6; color:#54142c; border-radius:22px; font-size:14px;
}
.auth-screen#screen-login .auth-login-links .forgot-password-link { background:rgba(255,254,246,.72); text-decoration:none; }
@container auth (max-height:600px) {
  .auth-screen .auth-brand-copy { top:8px; font-size:17px; }
  .auth-screen .auth-overlay .auth-field { top:56px; height:104px; }
  .auth-screen .auth-field span { top:14px; font-size:17px; }
  .auth-screen .auth-field input { bottom:20px; height:38px; }
  .auth-screen .auth-field::after { bottom:12px; }
  .auth-screen .auth-progress { top:164px; }
  .auth-screen#screen-login .auth-login-links { grid-template-columns:1fr; gap:6px; }
  .auth-screen#screen-login .auth-overlay .auth-submit,
  .auth-screen#screen-login .auth-overlay .auth-continue,
  .auth-screen#screen-login .auth-back { bottom:calc(120px + env(safe-area-inset-bottom)); }
  .auth-screen#screen-login .auth-remember { bottom:calc(178px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) {
  .auth-screen .auth-overlay .auth-field { transition:none; }
}

/* Timeline cards preserve each image's native aspect ratio. */
.timeline-post { min-height:0; height:auto; }
.timeline-post-media { height:auto; min-height:0; }
.timeline-post-media img { display:block; width:100%; height:auto; min-height:0; max-height:1920px; object-fit:contain; }

/* Timeline aberta pelo icone global, seguindo o cartao vertical do PDF. */
.timeline-modal { position:fixed; inset:0; z-index:1400; display:none; padding:0 4% calc(var(--nav-height) + var(--nav-bottom) + 18px); overflow-y:auto; background:#fff; touch-action:pan-y; }
.timeline-modal.is-visible { display:block; }
.timeline-modal.swipe-dragging,
.profile-content.swipe-dragging,
#screen-scan.swipe-dragging,
#profile-post-view.swipe-dragging { transition:none; }
.timeline-modal:not(.swipe-dragging),
.profile-content:not(.swipe-dragging),
#screen-scan:not(.swipe-dragging),
#profile-post-view:not(.swipe-dragging) { transition:transform .34s cubic-bezier(.22,.8,.2,1); }
.timeline-modal[style*="--swipe-x"],
.profile-content[style*="--swipe-x"],
#screen-scan[style*="--swipe-x"],
#profile-post-view[style*="--swipe-x"] { transform:translate3d(var(--swipe-x),0,0); will-change:transform; }
.timeline-modal,
.profile-content { touch-action:pan-y; will-change:transform; }
.pull-refresh-indicator { position:fixed; z-index:1700; top:calc(env(safe-area-inset-top) + 4px); left:50%; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#eef1f2; box-shadow:0 5px 16px rgba(30,32,36,.18); opacity:0; pointer-events:none; transform:translate3d(-50%,calc(var(--pull-distance, 0px) - 48px),0) scale(.75); transition:opacity .18s ease,transform .18s ease; }
.pull-refresh-indicator.is-visible { opacity:1; transform:translate3d(-50%,calc(var(--pull-distance, 0px) - 38px),0) scale(1); }
.pull-refresh-indicator span { width:18px; height:18px; border-radius:50%; background:conic-gradient(from 0deg,#08c8ee 0 20%,#72d900 20% 40%,#fff22b 40% 60%,#ff1f3d 60% 80%,#f55cb0 80% 100%); -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px)); mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px)); transform:rotate(calc(var(--pull-distance, 0px) * 3)); }
.pull-refresh-indicator.is-ready span { filter:saturate(1.15); }
.pull-refresh-indicator.is-refreshing span { animation:ocp-pull-refresh .65s linear infinite; }
@keyframes ocp-pull-refresh { to { transform:rotate(360deg); } }
.timeline-pull-tab { position:fixed; z-index:1450; top:22%; left:0; display:none; align-items:center; justify-content:center; width:38px; height:120px; padding:0; overflow:hidden; border:0; border-radius:0 15px 15px 0; background:#fff; box-shadow:calc(4px + var(--timeline-pull-progress, 0) * 6px) 5px calc(16px + var(--timeline-pull-progress, 0) * 10px) rgba(30,32,36,.18); pointer-events:auto; touch-action:none; transform:translate3d(calc(var(--timeline-pull-x, 0px) - 6px),0,0) scale(calc(1 + var(--timeline-pull-progress, 0) * .035)); transform-origin:left center; transition:transform .38s cubic-bezier(.18,.9,.22,1),box-shadow .24s ease; cursor:grab; }
.timeline-pull-tab img { display:block; width:36px; height:120px; object-fit:cover; pointer-events:none; user-select:none; }
.timeline-pull-tab.is-dragging { transition:none; box-shadow:0 8px 22px rgba(30,32,36,.24); cursor:grabbing; }
.timeline-pull-tab.is-opening { transition:transform .15s ease-in; }
body:has(#screen-map.active-screen):not(.timeline-open) .timeline-pull-tab { display:flex; }
.timeline-modal.is-pull-preview { display:block; pointer-events:none; transform:translate3d(calc(-100% + var(--timeline-drawer-x, 0px)),0,0); transition:transform .34s cubic-bezier(.18,.9,.22,1); animation:none !important; will-change:transform; }
.timeline-modal.is-pull-preview.is-dragging { transition:none; }
.timeline-modal.is-pull-preview.is-completing-pull { transition:transform .38s cubic-bezier(.16,.82,.2,1); }
.timeline-modal.is-visible.from-pull-tab { animation:ocp-timeline-from-left .42s cubic-bezier(.16,.82,.2,1) both !important; }
@keyframes ocp-timeline-from-left { from { opacity:.82; transform:translate3d(-100%,0,0); } to { opacity:1; transform:translate3d(0,0,0); } }
.timeline-shell { position:relative; display:flex; flex-direction:column; width:min(92vw,440px); margin:5dvh auto 0; }
.timeline-mode-tabs { position:sticky; z-index:12; top:calc(env(safe-area-inset-top) + 10px); display:grid; grid-template-columns:1fr 1fr; gap:8px; order:-1; width:min(86%,360px); margin:0 auto 18px; padding:5px; border-radius:999px; background:rgba(255,255,255,.94); }
.timeline-mode-tab { min-width:0; min-height:36px; padding:6px 10px; border:2px solid; border-radius:999px; background:#fff; color:#111; font:500 clamp(12px,3.8vw,16px)/1 'IBM Plex Mono',monospace; cursor:pointer; transition:background-color .2s ease,border-color .2s ease,transform .18s ease; }
.timeline-mode-following { border-color:#ee7ce9; }
.timeline-mode-following.is-active { background:#ee7ce9; }
.timeline-mode-discover { border-color:#cfff00; }
.timeline-mode-discover.is-active { background:#cfff00; }
.timeline-mode-tab.is-active { color:#111; }
.timeline-mode-tab:not(.is-active) { background:#fff; }
.timeline-mode-tab:active { transform:scale(.975); }
.timeline-feed { flex:none; }
.timeline-recommendations { flex:none; order:2; }
@media (prefers-reduced-motion: reduce) {
  .timeline-modal, .profile-content, .profile-tabs::after, .profile-tab-panel { transition:none !important; }
  .timeline-feed.is-revealing::after, .timeline-loading-state { animation:none !important; }
}
.timeline-shell h2 { display:none; }
.timeline-close { display:none; }
.timeline-feed { display:grid; gap:18px; }
.timeline-post { position:relative; overflow:hidden; min-height:0; height:auto; border:1.5px solid #ff64ac; border-radius:28px; background:#f2f2f2; }
.timeline-post-media { display:block; width:100%; height:auto; min-height:0; padding:0; border:0; background:#f2f2f2; cursor:pointer; }
.timeline-post-media img { display:block; width:100%; height:auto; min-height:0; max-height:1920px; object-fit:contain; }
.timeline-post-overlay { position:absolute; inset:auto 0 0; z-index:2; display:flex; align-items:flex-end; justify-content:space-between; gap:12px; padding:32px 18px 18px; background:linear-gradient(transparent,rgba(17,8,15,.78)); color:#fff; pointer-events:none; }
.timeline-post-overlay strong,.timeline-author-link { font:500 20px/1 'IBM Plex Mono',monospace; }
.timeline-post-overlay p { max-width:70%; margin:8px 0 0; font:400 10px/1.15 'IBM Plex Mono',monospace; white-space:pre-wrap; }
.timeline-follow { margin-left:8px; padding:3px 8px; border:0; border-radius:5px; background:#08c8ee; color:#54142c; font:500 14px/1 'IBM Plex Mono',monospace; pointer-events:auto; cursor:pointer; }
.timeline-follow[data-state='following'] { border:1px solid #fffef6; background:rgba(255,254,246,.92); color:#54142c; }
.timeline-follow[data-state='pending'] { background:#ceff00; color:#263300; }
.timeline-post-actions { display:grid; gap:10px; pointer-events:auto; }
.timeline-post-actions button { flex:0 0 44px; width:44px; min-width:44px; max-width:44px; height:44px; min-height:44px; max-height:44px; box-sizing:border-box; padding:7px; border:0; border-radius:50%; background:#fffef6; contain:layout; cursor:pointer; }
.timeline-post-actions img { display:block; width:30px; min-width:30px; max-width:30px; height:30px; min-height:30px; max-height:30px; object-fit:contain; transform-origin:50% 50%; }
.timeline-empty { margin:35vh auto; color:#54142c; text-align:center; font:400 14px 'IBM Plex Mono',monospace; }
.timeline-loading-state { min-height:48vh; display:grid; place-items:center; background:transparent; }
.timeline-loading-state::before,
.profile-posts-grid.is-loading::before { content:''; display:block; width:44px; height:44px; border-radius:50%; background:conic-gradient(from 0deg,#08c8ee 0 20%,#72d900 20% 40%,#fff22b 40% 60%,#ff1f3d 60% 80%,#f55cb0 80% 100%); -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px)); mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px)); animation:ocp-spin .72s linear infinite; }
.timeline-feed.is-revealing { position:relative; }
.timeline-feed.is-revealing::after { display:none; }
.timeline-recommendations { margin:28px 0 24px; padding:18px 16px 16px; border-radius:28px; background:#eef1f2; color:#54142c; }
.timeline-recommendations h3 { display:inline-block; margin:0 0 12px; padding:6px 10px; border-radius:7px; background:#ff72b6; font:600 15px/1 'IBM Plex Mono',monospace; }
.timeline-recommendation-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.timeline-recommendation { min-width:0; padding:0; border:0; background:transparent; color:#54142c; text-align:left; font-family:'IBM Plex Mono',monospace; }
.timeline-recommendation-media { display:block; width:100%; padding:0; border:0; background:transparent; cursor:pointer; }
.timeline-recommendation img { display:block; width:100%; aspect-ratio:1; margin-bottom:7px; border-radius:16px; object-fit:cover; }
.timeline-recommendation span,.timeline-recommendation small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.timeline-recommendation span { font-size:11px; }
.timeline-recommendation small { margin-top:3px; color:#6f6870; font-size:8px; line-height:1.2; }

/* Sugestões continuam centradas nas publicações, com acesso direto ao autor. */
.timeline-recommendation-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.timeline-recommendation { overflow:hidden; border:1px solid #ff72b6; border-radius:14px; background:#fff; }
.timeline-recommendation img { width:100%; height:auto; aspect-ratio:auto; margin:0; border-radius:13px 13px 0 0; object-fit:contain; }
.timeline-recommendation-copy { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 7px; padding:7px 8px 9px; }
.timeline-recommendation-copy .post-author-link { min-width:0; padding:3px 5px; overflow:hidden; border-radius:5px; background:#e9eef0; color:#54142c; font-size:clamp(9px,2.7vw,11px); font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.timeline-recommendation-copy small { grid-column:1/-1; margin:0; padding:0; }
.timeline-recommendation-follow { align-self:center; margin:0; font-size:10px; }
.post-author-link { padding:0; border:0; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.post-author-link:hover,.post-author-link:focus-visible { text-decoration:underline; text-underline-offset:3px; }
.profile-post-caption-overlay [data-open-profile] { cursor:pointer; }

/* Publicação aberta usa o mesmo cartão e a mesma largura da timeline. */
#profile-post-view { display:block; padding:5dvh 4% calc(var(--nav-height) + var(--nav-bottom) + 18px); overflow-y:auto; background:#fff; }
#profile-post-view[hidden] { display:none; }
#profile-post-view .profile-post-detail { width:min(92vw,440px); margin:0 auto; padding:0 !important; border:1.5px solid #ff64ac; border-radius:28px; background:#f2f2f2; }
#profile-post-view .profile-post-detail > #profile-post-view-image { display:block; width:100% !important; height:auto !important; min-width:100%; max-width:none; max-height:none; margin:0 !important; object-fit:contain; }

.profile-network-modal { position:fixed; inset:0; z-index:1800; display:grid; place-items:end center; padding:6dvh 4% calc(env(safe-area-inset-bottom) + 18px); background:rgba(37,29,33,.34); }
.profile-network-modal[hidden] { display:none; }
.profile-network-card { width:min(100%,440px); max-height:82dvh; overflow:hidden; border-radius:30px; background:#fffef6; color:#54142c; box-shadow:0 18px 50px rgba(84,20,44,.2); }
.profile-network-card header { display:grid; grid-template-columns:44px 1fr 44px; align-items:center; padding:16px; border-bottom:1px solid #ffb7df; }
.profile-network-card header button { width:42px; height:42px; border:1px solid #54142c; border-radius:50%; background:#fffef6; color:#54142c; font-size:23px; }
.profile-network-card h2 { grid-column:2; margin:0; text-align:center; font:700 19px/1 'IBM Plex Mono',monospace; }
.profile-network-modal-tabs { display:grid; grid-template-columns:1fr 1fr; padding:12px 16px 0; }
.profile-network-modal-tabs button { min-height:42px; border:0; border-bottom:2px solid #ffb7df; background:transparent; color:#54142c; font:500 14px/1 'IBM Plex Mono',monospace; }
.profile-network-modal-tabs button.is-active { border-bottom-color:#54142c; background:#ff83bd; }
.profile-network-list { max-height:60dvh; overflow-y:auto; padding:12px 16px 20px; }
.profile-network-list > button { display:grid; grid-template-columns:52px 1fr; gap:12px; align-items:center; width:100%; padding:9px 0; border:0; background:transparent; color:#54142c; text-align:left; }
.profile-network-list img { width:52px; height:52px; border-radius:16px; object-fit:cover; }
.profile-network-list span,.profile-network-list strong,.profile-network-list small { display:block; }
.profile-network-list strong { font:600 14px/1.2 'IBM Plex Mono',monospace; }
.profile-network-list small { margin-top:4px; color:#74666d; font:400 11px/1.2 'IBM Plex Mono',monospace; }

/* Motion system: short, consistent transitions using the identity palette. */
::view-transition-old(root) { animation:ocp-screen-out .24s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation:ocp-screen-in .42s cubic-bezier(.16,.8,.2,1) both; }
.app-screen.screen-entering { animation:ocp-screen-in .42s cubic-bezier(.16,.8,.2,1) both; }
.timeline-modal.is-visible { animation:ocp-modal-in .38s cubic-bezier(.16,.8,.2,1) both; }
.profile-post-modal:not([hidden]) .profile-post-form,
.profile-network-modal:not([hidden]) .profile-network-card { animation:ocp-sheet-in .4s cubic-bezier(.16,.8,.2,1) both; }
.timeline-post,.timeline-recommendation,.profile-network-list > button { animation:ocp-content-in .38s cubic-bezier(.16,.8,.2,1) both; }
.timeline-post:nth-child(2n),.timeline-recommendation:nth-child(2n),.profile-network-list > button:nth-child(2n) { animation-delay:.045s; }
.timeline-post:nth-child(3n),.profile-network-list > button:nth-child(3n) { animation-delay:.08s; }

button[aria-busy='true'] { position:relative; color:transparent !important; pointer-events:none; overflow:hidden; }
button[aria-busy='true']::after { content:''; position:absolute; top:50%; left:50%; width:18px; height:18px; margin:-11px 0 0 -11px; border:2px solid rgba(84,20,44,.24); border-top-color:#54142c; border-radius:50%; animation:ocp-spin .7s linear infinite; }
#screen-profile .profile-follow-btn { min-width:150px; min-height:44px; padding:10px 20px; border:0; border-radius:999px; background:#08c8ee; color:#54142c; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; font-family:'IBM Plex Mono',monospace; font-weight:700; line-height:1.2; }
#screen-profile .profile-follow-btn[data-state='following'] { border:1px solid #54142c; background:#fffef6; color:#54142c; }
#screen-profile .profile-follow-btn[data-state='pending'] { background:#ceff00; color:#263300; }
#screen-profile .profile-follow-btn[data-state='accept'] { background:#ff83bd; color:#54142c; }
#screen-profile .profile-follow-btn:disabled:not([aria-busy='true']) { opacity:1; }
#screen-profile .profile-message-btn { display:grid; place-items:center; width:44px; min-width:44px; height:44px; flex:0 0 44px; padding:0; border:1px solid #54142c; border-radius:50%; background:#fffef6; box-shadow:none; cursor:pointer; }
#screen-profile .profile-message-btn img { display:block; width:100%; height:100%; border-radius:50%; object-fit:cover; }
#screen-profile .profile-message-btn:active { transform:scale(.95); }
#screen-profile .profile-message-btn[hidden],
#screen-profile .profile-tabs[hidden],
#screen-profile #profile-coupons-panel[hidden] { display:none!important; }

@keyframes ocp-screen-in { from { opacity:0; transform:translate3d(3%,0,0) scale(.992); } to { opacity:1; transform:none; } }
@keyframes ocp-screen-out { from { opacity:1; transform:none; } to { opacity:0; transform:translate3d(-2%,0,0) scale(.995); } }
@keyframes ocp-modal-in { from { opacity:0; } to { opacity:1; } }
@keyframes ocp-sheet-in { from { opacity:0; transform:translate3d(0,18px,0) scale(.985); } to { opacity:1; transform:none; } }
@keyframes ocp-content-in { from { opacity:0; transform:translate3d(0,12px,0); } to { opacity:1; transform:none; } }
@keyframes ocp-shimmer { to { transform:translateX(110%); } }
@keyframes ocp-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) {
  ::view-transition-old(root),::view-transition-new(root),.app-screen.screen-entering,.timeline-modal.is-visible,
  .profile-post-modal:not([hidden]) .profile-post-form,.profile-network-modal:not([hidden]) .profile-network-card,
  .timeline-post,.timeline-recommendation,.profile-network-list > button,.timeline-loading-state::before,.profile-posts-grid.is-loading::before,
  button[aria-busy='true']::after { animation:none !important; }
}
.search-suggestion-heading { padding:10px 14px 5px; color:#54142c; font:600 12px/1 'IBM Plex Mono',monospace; text-transform:uppercase; letter-spacing:.04em; }
.demo-profile-suggestion small { color:#6f6870; }
.demo-recommendation-box { margin:20px 0 2px; padding:12px 14px 14px; border-radius:28px; background:#eef1f2; color:#54142c; }
.demo-recommendation-box > strong { display:inline-block; padding:5px 10px; border-radius:7px; background:#ff72b6; color:#54142c; font:600 15px/1 'IBM Plex Mono',monospace; }
.demo-recommendation-row { display:flex; gap:12px; margin-top:12px; overflow-x:auto; }
.demo-recommendation-avatar { flex:0 0 54px; width:54px; height:54px; padding:0; border:0; border-radius:16px; overflow:hidden; background:#f3c8d7; cursor:pointer; }
.demo-recommendation-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.timeline-feed, .profile-posts-grid { transition:opacity .24s ease, transform .24s ease; }
.timeline-feed.is-loading { opacity:1; transform:none; }
.profile-posts-grid.is-loading { position:relative; min-height:180px; columns:auto; opacity:1; transform:none; border-radius:0; background:transparent; animation:none; }
.profile-posts-grid.is-loading > * { opacity:0; }
.profile-posts-grid.is-loading::before { position:absolute; top:54px; left:calc(50% - 18px); width:36px; height:36px; }
.timeline-feed:not(.is-loading), .profile-posts-grid:not(.is-loading) { opacity:1; transform:none; }
body.timeline-open .scan-bottom-wrapper { display:flex!important; z-index:1500; width:var(--nav-width); }
body.timeline-open .scan-bottom-wrapper.is-profile { width:var(--nav-width); }
body.timeline-open .scan-bottom-wrapper #nav-btn-map,
body.timeline-open .scan-bottom-wrapper #nav-btn-scan,
body.timeline-open .scan-bottom-wrapper #map-search-toggle,
body.timeline-open .scan-bottom-wrapper #nav-btn-profile-footer { display:grid!important; }
body.timeline-open .scan-bottom-wrapper #nav-btn-add-pin { display:none!important; }
body.timeline-open .scan-bottom-wrapper #nav-btn-map { display:none!important; }
.profile-tabs { position:relative; border-bottom:0; border-image:none; }
.profile-tabs::after { content:''; position:absolute; left:0; bottom:0; width:50%; height:2px; border-radius:999px; background:#54142c; transform:translateX(0); transition:transform .58s cubic-bezier(.22,.8,.2,1), background .42s ease; pointer-events:none; }
.profile-tabs:has(#profile-tab-coupons.is-active)::after { transform:translateX(100%); }
.profile-tab { border-bottom:2px solid #ffb7df!important; transition:color .42s ease, opacity .42s ease; -webkit-tap-highlight-color:transparent; outline:none; }
.profile-tab.is-active { border-bottom-color:transparent!important; font-weight:400; }
.profile-tab:active { opacity:.72; }
.profile-tab-panel[hidden] { display:block!important; }
.profile-tab-panel { max-height:0; overflow:hidden; opacity:0; transform:translateY(6px); pointer-events:none; transition:max-height .62s cubic-bezier(.22,.8,.2,1), opacity .42s ease, transform .62s cubic-bezier(.22,.8,.2,1); }
.profile-tab-panel.is-current { max-height:10000px; opacity:1; transform:translateY(0); pointer-events:auto; }
.profile-tab-enter { animation:none; }
button, a, input, textarea, select { -webkit-tap-highlight-color:transparent; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline:none; }
.profile-post-more { position:relative; z-index:2; width:min(92vw,440px); margin:58px auto 0; padding:0 0 24px; color:#54142c; background:#fff; }
.profile-post-more h3 { margin:18px 0 8px; font:500 13px 'IBM Plex Mono',monospace; }
.profile-post-more-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.profile-post-more-grid button { min-height:80px; padding:0; overflow:hidden; border:0; border-radius:10px; background:#f2f2f2; cursor:pointer; }
.profile-post-more-grid img { display:block; width:100%; height:100%; object-fit:cover; }

/* Novo post: fluxo compacto inspirado no compositor social, mantendo apenas
   mídia, legenda e compartilhamento. */
#profile-post-modal {
  align-items:stretch;
  padding:0;
  background:rgba(84,20,44,.2);
}
#profile-post-modal .profile-post-form {
  width:min(92vw, 440px);
  height:auto;
  max-height:min(88dvh, 760px);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:18px 20px 20px;
  overflow-y:auto;
  border:0;
  border-radius:30px;
  background:#f9f3ec url('assets/identity/profile-gradient.webp') center top / 100% 42% no-repeat;
  box-shadow:0 18px 50px rgba(84,20,44,.22);
}
#profile-post-modal .profile-post-header {
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  min-height:54px;
  border-bottom:2px solid #ffb7df;
}
#profile-post-modal .profile-post-header h2 {
  margin:0;
  color:#54142c;
  text-align:center;
  font:700 22px/1.1 'IBM Plex Mono',monospace;
}
#profile-post-modal .profile-post-close {
  position:static;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid #54142c;
  border-radius:50%;
  color:#54142c;
  background:#fffef6;
  font-size:0;
  line-height:1;
  cursor:pointer;
}
#profile-post-modal .profile-post-close::before {
  content:'←';
  font:400 25px/1 Arial,sans-serif;
}
#profile-post-modal .profile-post-choose-row {
  display:flex;
  justify-content:center;
  gap:10px;
}
#profile-post-modal .profile-post-choose-row button {
  min-width:112px;
  padding:10px 16px;
  border:1px solid #08c8ee;
  border-radius:999px;
  background:#fffef6;
  color:#54142c;
  font:500 13px/1 'IBM Plex Mono',monospace;
  box-shadow:none;
}
#profile-post-modal #profile-post-file,
#profile-post-modal #profile-post-camera-input { display:none; }
#profile-post-modal #profile-post-preview {
  display:block;
  width:min(100%, 390px);
  max-height:58dvh;
  margin:0 auto;
  object-fit:cover;
  border-radius:24px;
  background:#fffef6;
  box-shadow:0 0 0 5px rgba(255,254,246,.82), 0 0 0 7px rgba(245,92,176,.56);
}
#profile-post-modal #profile-post-preview[hidden] { display:none !important; }
#profile-post-modal .profile-post-preview-strip {
  justify-content:center;
  min-height:0;
}
#profile-post-modal .profile-post-caption-label {
  margin-top:2px;
  color:#54142c;
  font:400 14px/1 'IBM Plex Mono',monospace;
}
#profile-post-modal #profile-post-caption {
  min-height:94px;
  resize:none;
  border:1px solid #ff8cc5;
  border-radius:14px;
  background:#fffef6;
  color:#54142c;
  font:400 16px/1.35 'IBM Plex Mono',monospace;
}
#profile-post-modal #profile-post-submit {
  width:100%;
  min-height:52px;
  margin-top:auto;
  border:0;
  border-radius:999px;
  background:#08c8ee;
  color:#54142c;
  font:700 16px/1 'IBM Plex Mono',monospace;
  box-shadow:none;
}
#profile-post-modal .profile-post-mode {
  display:flex;
  justify-content:center;
  order:8;
  margin:0 auto;
}
#profile-post-modal .profile-post-mode span {
  padding:8px 24px;
  border-radius:30px;
  background:#ceff00;
  color:#54142c;
  font:700 15px/1 'IBM Plex Mono',monospace;
}
#profile-post-modal.has-photo .profile-post-form {
  background:#f9f3ec url('assets/identity/profile-gradient.webp') center top / 100% 42% no-repeat;
}

/* ====================================================
   Leitura e animações — nov/2026
   Cores chapadas da identidade, IBM Plex Mono, caixas cinza-claro.
   ==================================================== */

/* Abertura: toque pula; versão curta para quem já abriu o app */
.app-opening-overlay { transition: opacity .18s ease; }
.app-opening-overlay.is-skipping { opacity: 0; pointer-events: none; }
.app-opening-overlay.is-quick { animation-delay: .32s; }
.app-opening-overlay.is-quick .opening-sticker { animation:none; }

/* Moldura do scanner: o gradiente pulsa durante a busca e confirma a leitura. */
body.scanner-active #screen-scan::before {
  box-sizing:border-box;
  border:0 !important;
  padding:3px;
  background:conic-gradient(from 35deg,#08c8ee 0deg,#f55cb0 72deg,#ff304d 142deg,#fff22b 214deg,#ceff00 286deg,#08c8ee 360deg) !important;
  box-shadow:0 0 18px rgba(8,200,238,.2),0 0 24px rgba(245,92,176,.14);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  opacity:.9 !important;
  will-change:opacity,filter,background-position,transform;
}
body.scanner-active.scanner-searching #screen-scan::before {
  animation:ocp-scan-gradient-pulse 1.35s ease-in-out infinite;
}
body.scanner-active.scanner-locking #screen-scan::before,
body.scanner-active.scanner-reading #screen-scan::before {
  animation:ocp-scan-gradient-lock .3s ease-in-out 2 alternate;
  transform:scale(.985);
  filter:saturate(1.2) brightness(1.15);
}
@keyframes ocp-scan-gradient-pulse {
  0%,100% { opacity:.52; filter:saturate(.9) brightness(.95); transform:scale(1); }
  50% { opacity:1; filter:saturate(1.22) brightness(1.12); transform:scale(.992); }
}
@keyframes ocp-scan-gradient-lock {
  from { opacity:.72; box-shadow:0 0 16px rgba(8,200,238,.2); }
  to { opacity:1; box-shadow:0 0 28px rgba(206,255,0,.46),0 0 34px rgba(245,92,176,.28); }
}

/* Dicas progressivas */
.scan-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--nav-bottom) + var(--nav-height) + 28px);
  z-index: 6;
  width: max-content;
  max-width: 82%;
  margin: 0;
  padding: 9px 14px;
  border-radius: 8px;
  background: #eef1f2;
  color: #54142c;
  font: 500 clamp(11px, 3.3vw, 14px)/1.3 'IBM Plex Mono', monospace;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.scan-hint.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Lanterna */
.scan-torch-btn {
  position: absolute;
  top: calc(13% + 14px);
  right: calc(7% + 14px);
  z-index: 6;
  padding: 7px 12px;
  border: 1px solid #ff8cc5;
  border-radius: 8px;
  background: #fffef6;
  color: #54142c;
  font: 600 13px/1 'IBM Plex Mono', monospace;
  pointer-events: auto;
  cursor: pointer;
}
.scan-torch-btn[hidden] { display: none; }
.scan-torch-btn.is-on { background: #ceff00; border-color: #ceff00; color: #54142c; }

/* Selo de pontos (mesmo estilo das etiquetas "PERTO DE VOCÊ") */
.scan-points-pop {
  position: fixed;
  top: 30%;
  left: 50%;
  z-index: 90;
  padding: 6px 12px;
  border-radius: 4px;
  background: #ceff00;
  color: #54142c;
  font: 700 clamp(18px, 6vw, 26px)/1.1 'IBM Plex Mono', monospace;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 0) scale(.6);
  pointer-events: none;
}
.scan-points-pop.is-repeat { background: #eef1f2; color: #54142c; font-size: clamp(13px, 4vw, 16px); }
.scan-points-pop.is-active { animation: ocp-points-pop 1.3s cubic-bezier(.2,.9,.3,1.2) both; }
.scan-points-pop.is-repeat.is-active { animation-duration: .9s; }
@keyframes ocp-points-pop {
  0% { opacity: 0; transform: translate(-50%, 18px) scale(.6); }
  25% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  70% { opacity: 1; transform: translate(-50%, -8px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -48px) scale(.92); }
}

/* Leitura consistente: uma única animação 2D, sem troca tardia para 3D. */
.scan-sticker-explosion {
  isolation:isolate;
  background:transparent;
}
.scan-sticker-explosion::before {
  content:'';
  position:absolute;
  width:min(78vw,360px);
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,#fffef6 0 18%,rgba(255,242,43,.8) 30%,rgba(206,255,0,.58) 44%,rgba(245,92,176,.4) 58%,rgba(8,200,238,.22) 70%,transparent 74%);
  opacity:0;
  transform:scale(.45);
  filter:blur(2px);
  z-index:-1;
}
.scan-sticker-explosion.is-active { animation:ocp-read-layer 1.45s ease both; }
.scan-sticker-explosion.is-active::before { animation:ocp-read-halo 1.45s ease-out both; }
.scan-sticker-explosion img,
.scan-sticker-explosion.has-3d img {
  visibility:visible !important;
  width:min(58vw,270px);
  filter:drop-shadow(0 16px 28px rgba(84,20,44,.2));
}
.scan-sticker-explosion.is-active img,
.scan-sticker-explosion.is-repeat.is-active img {
  animation:ocp-read-sticker 1.45s cubic-bezier(.2,.8,.2,1) both;
}
.scan-sticker-explosion.has-gif.is-active { animation-duration:3.4s; }
.scan-sticker-explosion.has-gif.is-active::before { animation-duration:3.4s; }
.scan-sticker-explosion.has-gif img,
.scan-sticker-explosion.has-gif.is-repeat img {
  width:min(64vw,300px);
  max-height:70vh;
  object-fit:contain;
}
.scan-sticker-explosion.has-gif.is-active img,
.scan-sticker-explosion.has-gif.is-repeat.is-active img {
  animation:ocp-read-gif 3.4s ease both;
}
.scan-sticker-3d { display:none !important; }
@keyframes ocp-read-layer {
  0% { opacity:0; visibility:visible; }
  14%,76% { opacity:1; visibility:visible; }
  100% { opacity:0; visibility:hidden; }
}
@keyframes ocp-read-halo {
  0% { opacity:0; transform:scale(.4); }
  28% { opacity:.92; transform:scale(.92); }
  62% { opacity:.62; transform:scale(1.08); }
  100% { opacity:0; transform:scale(1.18); }
}
@keyframes ocp-read-sticker {
  0% { opacity:0; transform:translate3d(0,14px,0) scale(.62) rotate(-4deg); }
  24% { opacity:1; transform:translate3d(0,0,0) scale(1.05) rotate(1.5deg); }
  48%,76% { opacity:1; transform:translate3d(0,0,0) scale(1) rotate(0); }
  100% { opacity:0; transform:translate3d(0,-8px,0) scale(.96) rotate(0); }
}
@keyframes ocp-read-gif {
  0% { opacity:0; transform:translate3d(0,10px,0) scale(.9); }
  10% { opacity:1; transform:translate3d(0,0,0) scale(1); }
  88% { opacity:1; transform:translate3d(0,0,0) scale(1); }
  100% { opacity:0; transform:translate3d(0,-6px,0) scale(.98); }
}

/* Publicação aberta: curtir e repostar em linha, para não ficarem atrás da seta ">" */
.profile-post-detail .profile-post-actions { flex-direction: row; gap: 10px; }
.profile-post-detail .profile-post-caption-overlay { width: 56%; }

@media (prefers-reduced-motion: reduce) {
  body.scanner-active.scanner-searching #screen-scan::before,
  body.scanner-active.scanner-locking #screen-scan::before,
  body.scanner-active.scanner-reading #screen-scan::before { animation:none; opacity:1 !important; }
  .scan-points-pop.is-active,
  .scan-sticker-explosion.is-active,
  .scan-sticker-explosion.is-active::before,
  .scan-sticker-explosion.is-active img { animation-duration:.01ms; }
  .scan-points-pop.is-active { opacity: 1; transform: translate(-50%, 0); }
}

/* ====================================================
   Pente fino de identidade — nov/2026
   Remove o que restou da identidade antiga (gradientes pastéis, bordas
   pontilhadas, Causten) e aplica a linguagem atual: IBM Plex Mono, cores
   chapadas, caixas cinza-claro/creme, botões principais em ciano.
   ==================================================== */

/* Mensagens sobre o mapa */
.map-add-hint { border:0; background:#eef1f2; color:#54142c; font:500 clamp(11px,3.3vw,14px)/1.3 'IBM Plex Mono',monospace; border-radius:12px; backdrop-filter:none; -webkit-backdrop-filter:none; }
.location-permission-btn { border:0; background:#08c8ee; color:#54142c; font:600 clamp(13px,3.8vw,15px)/1 'IBM Plex Mono',monospace; box-shadow:none; }
.map-current-location {
  position:absolute; z-index:12; top:max(18px,env(safe-area-inset-top)); right:16px;
  display:grid; place-items:center; width:44px; height:44px; padding:0;
  border:0; border-radius:50%; background:#eef1f2; color:#54142c;
  box-shadow:0 4px 16px rgba(84,20,44,.16); font:600 27px/1 'IBM Plex Mono',monospace;
  cursor:pointer; transition:transform .16s ease,background-color .16s ease;
}
.map-current-location:active { transform:scale(.94); background:#ceff00; }
.map-current-location.is-locating { animation:map-location-pulse .9s ease-in-out infinite alternate; }
@keyframes map-location-pulse { from{box-shadow:0 0 0 0 rgba(8,200,238,.15)} to{box-shadow:0 0 0 9px rgba(8,200,238,.3)} }

.scan-pin-prompt {
  position:fixed; inset:0; z-index:1950; display:grid; place-items:end center;
  padding:18px 16px max(18px,env(safe-area-inset-bottom)); box-sizing:border-box;
  background:rgba(84,20,44,.3); opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .2s ease,visibility 0s linear .2s;
}
.scan-pin-prompt.is-visible { opacity:1; visibility:visible; pointer-events:auto; transition-delay:0s; }
.scan-pin-prompt-card {
  width:min(100%,420px); box-sizing:border-box; padding:20px; border:1px solid #ff83bd;
  border-radius:16px; background:#eef1f2; color:#54142c;
  font-family:'IBM Plex Mono',monospace; box-shadow:0 18px 42px rgba(84,20,44,.22);
  transform:translateY(20px); transition:transform .22s cubic-bezier(.2,.8,.2,1);
}
.scan-pin-prompt.is-visible .scan-pin-prompt-card { transform:translateY(0); }
.scan-pin-prompt-kicker { display:inline-block; padding:4px 8px; border-radius:6px; background:#ceff00; color:#54142c; font-size:11px; font-weight:600; }
.scan-pin-prompt-card h2 { margin:12px 0 8px; font-size:22px; line-height:1.15; letter-spacing:0; }
.scan-pin-prompt-card > p { margin:0 0 12px; font-size:13px; line-height:1.45; }
.location-privacy-warning { padding:11px 12px; border-radius:8px; background:#fffef6; color:#54142c; font:500 11px/1.45 'IBM Plex Mono',monospace; }
.scan-pin-location-status { min-height:18px; color:#54142c; }
.scan-pin-prompt-actions { display:grid; grid-template-columns:1fr 1.25fr; gap:10px; }
.scan-pin-prompt-actions button { min-height:44px; border:1.5px solid #08c8ee; border-radius:8px; background:#fffef6; color:#54142c; font:600 13px/1 'IBM Plex Mono',monospace; }
#scan-pin-confirm { border-color:#08c8ee; background:#08c8ee; }
#scan-pin-confirm:disabled { opacity:.55; }
.sticker-modal-content .location-privacy-warning { margin:10px 0 0; }
.map-search-form.is-open ~ .map-add-hint,
#screen-map:has(.map-search-form.is-open) .map-add-hint,
#screen-map:has(.map-search-form.is-open) .location-permission-btn { opacity:0 !important; pointer-events:none !important; }

/* Caixa de status do scanner (texto legível sobre o cinza-claro) */
#screen-scan .box-info-text { font-family:'IBM Plex Mono',monospace; }
body.scanner-active #screen-scan .box-info-text { color:#54142c; }

/* Imagens do AR não aparecem antes de a câmera carregar */
a-scene a-assets, a-scene a-assets img { display:none !important; }

/* Cartões e modais antigos -> cartão cinza-claro da identidade */
.password-reset-card,
.client-area-card,
.friend-request-card,
.sticker-modal-content,
.onboarding-card,
.activity-card,
.activity-detail-card {
  border:0 !important;
  border-radius:30px;
  background:#f2f2f2 !important;
  color:#54142c;
  font-family:'IBM Plex Mono',monospace;
  box-shadow:0 18px 40px rgba(84,20,44,.16);
  backdrop-filter:none; -webkit-backdrop-filter:none;
}
.onboarding-card::before, .onboarding-start::after, .auth-switch-link::before { display:none !important; }
.onboarding-modal { background:rgba(84,20,44,.18); }
.onboarding-step { border:0; background:#fffef6; }
.onboarding-step span, .onboarding-close { border-style:solid; }
.password-reset-card h2, .client-area-card h2, .friend-request-card h2,
.sticker-modal-content h2, .onboarding-card h2 { color:#54142c; font-family:'IBM Plex Mono',monospace; }

/* Botões principais -> ciano chapado (mesmo do "Continuar") */
.password-reset-submit,
.client-area-submit,
.friend-request-accept,
.sticker-modal-actions button[type="submit"],
.onboarding-start,
.close-modal-btn,
.activity-submit,
.activity-share-btn,
.activity-detail-actions button,
.activity-share-options button.is-active {
  border:0 !important;
  border-radius:999px;
  background:#08c8ee !important;
  color:#54142c !important;
  font-family:'IBM Plex Mono',monospace;
  font-weight:600;
  box-shadow:none !important;
  text-shadow:none;
}
/* Botões secundários -> creme com contorno rosa (mesmo do menu do "+") */
.friend-request-actions button:not(.friend-request-accept),
.profile-decline-btn,
.activity-share-options button:not(.is-active) {
  border:1px solid #ff8cc5 !important;
  background:#fffef6 !important;
  color:#54142c !important;
  font-family:'IBM Plex Mono',monospace;
  box-shadow:none !important;
}

/* Campos e seletores com contorno contínuo */
.partner-directory-controls select,
.sticker-photo-picker,
.activity-detail-map,
.activity-live-banner { border-style:solid !important; }
.password-reset-card input, .client-area-card input, .client-area-card textarea, .client-area-card select {
  border:1px solid #08c8ee; border-radius:8px; background:#fff; font-family:'IBM Plex Mono',monospace;
}

/* Evento: bandeja de convite e botão "+" sem pontilhado */
.event-invite-tray { border:0 !important; background:#fffef6 !important; border-radius:24px; box-shadow:0 10px 26px rgba(84,20,44,.12); }
.event-invite-friend { border:0; background:#eef1f2; color:#54142c; }
.event-avatar { border:2px solid #fff !important; }
.event-attend-btn { border:0 !important; }

/* Restos de Causten */
.activity-detail-close::before { font-family:'IBM Plex Mono',monospace; }

/* Perfil vazio: o "+" e o texto não ficam escondidos atrás da barra */
#profile-posts-panel { padding-bottom:calc(var(--nav-bottom) + var(--nav-height) + 36px); }
.password-reset-card, .client-area-card, .friend-request-card, .onboarding-card { box-sizing:border-box; max-width:100%; }
body:has(.map-search-form.is-open) .map-add-hint,
body:has(.map-search-form.is-open) .location-permission-btn { opacity:0 !important; pointer-events:none !important; }
body.scanner-active #screen-scan .box-info-wrapper { width:min(86vw,360px); max-width:none; min-width:0; aspect-ratio:auto; }
body.scanner-active #screen-scan .glass-box { width:auto; min-width:0; max-width:100%; height:auto; padding:12px 16px; border-radius:12px; }
body.scanner-active #screen-scan .box-info-text { position:static; width:auto; transform:none; white-space:normal; font:500 clamp(12px,3.6vw,14px)/1.35 'IBM Plex Mono',monospace; }
body.scanner-active #screen-scan .box-info-text span { display:block; white-space:normal; }
.onboarding-card { max-height:calc(100dvh - var(--nav-bottom) - var(--nav-height) - 40px); overflow-y:auto; overscroll-behavior:contain; }

/* ====================================================
   Login e cadastro — progressão em swipe para cima (nov/2026)
   ==================================================== */
.auth-screen .auth-overlay .auth-field {
  transition:opacity .32s ease, transform .46s cubic-bezier(.16,.84,.2,1), visibility .46s;
}
.auth-screen .auth-overlay .auth-field.is-done { transform:translate3d(0,-72px,0) scale(.94); }
.auth-screen .auth-overlay .auth-field.is-current { transform:translate3d(0,0,0) scale(1); }

/* Respostas já dadas, empilhadas acima do cartão (toque para editar) */
.auth-screen .auth-trail {
  position:absolute; z-index:3; left:8%; right:8%;
  top:calc(clamp(100px, 28%, 230px) - 46px);
  display:flex; flex-wrap:nowrap; gap:6px; overflow:hidden; pointer-events:auto;
}
.auth-screen .auth-trail-chip {
  display:inline-flex; align-items:center; gap:6px; min-width:0; max-width:100%; height:34px; padding:0 10px;
  border:0; border-radius:10px; background:#fffef6; color:#54142c;
  font:500 12px/1 'IBM Plex Mono',monospace; cursor:pointer; flex:0 1 auto;
}
.auth-screen .auth-trail-chip b { flex:none; padding:3px 5px; border-radius:4px; background:var(--auth-cyan,#08c8ee); color:#54142c; font-weight:700; }
.auth-screen .auth-trail-chip span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auth-screen .auth-trail-chip.is-new { animation:ocp-auth-chip-in .46s cubic-bezier(.16,.84,.2,1) both; }
@keyframes ocp-auth-chip-in { from { opacity:0; transform:translate3d(0,46px,0) scale(.9); } to { opacity:1; transform:none; } }
.auth-screen .auth-overlay.is-going-back .auth-trail-chip.is-new { animation:none; }

/* Esqueci minha senha / Criar conta: botões chapados da identidade */
.auth-screen#screen-login .auth-login-links .auth-switch-link,
.auth-screen#screen-login .auth-login-links .forgot-password-link,
.auth-screen#screen-register .auth-switch-link {
  min-height:44px; padding:0 12px; border:1px solid #ff8cc5 !important; border-radius:999px;
  background:#fffef6 !important; background-image:none !important; color:#54142c;
  font:500 13px/1 'IBM Plex Mono',monospace; white-space:nowrap; box-shadow:none !important;
  backdrop-filter:none; -webkit-backdrop-filter:none; text-decoration:none; opacity:1;
}
.auth-screen#screen-login .auth-login-links .auth-switch-link::before,
.auth-screen#screen-login .auth-login-links .auth-switch-link::after,
.auth-screen#screen-login .auth-login-links .forgot-password-link::before,
.auth-screen#screen-login .auth-login-links .forgot-password-link::after { display:none !important; }

@container auth (max-height:600px) {
  .auth-screen .auth-trail { top:22px; left:calc(8% + 120px); }
  .auth-screen .auth-overlay .auth-field.is-done { transform:translate3d(0,-40px,0) scale(.94); }
}
@media (prefers-reduced-motion:reduce) {
  .auth-screen .auth-trail-chip.is-new { animation:none; }
  .auth-screen .auth-overlay .auth-field.is-done { transform:none; }
}
.auth-screen#screen-register .auth-switch-link { position:absolute !important; z-index:4; top:auto !important; bottom:calc(12px + env(safe-area-inset-bottom)) !important; left:8% !important; right:auto !important; width:84% !important; }

/* Visual polish: stable motion, consistent controls and mobile-safe stacking. */
.auth-screen .auth-overlay .auth-field {
  transform:translate3d(0,12px,0) !important;
  transition:opacity .16s ease,transform .18s ease,visibility 0s linear .18s !important;
  will-change:opacity,transform;
}
.auth-screen .auth-overlay .auth-field.is-current {
  transform:translate3d(0,0,0) !important;
  transition-delay:0s !important;
}
.auth-screen .auth-overlay .auth-field.is-done { transform:translate3d(0,-12px,0) !important; }
.auth-screen .auth-trail-chip.is-new { animation:none !important; }
.auth-screen .auth-trail-chip { border:1px solid rgba(255,131,189,.72); border-radius:8px; box-shadow:none; }
.auth-screen .auth-overlay .auth-submit,
.auth-screen .auth-overlay .auth-continue,
.auth-screen .auth-back,
.auth-screen .auth-login-links button,
.auth-screen#screen-register .auth-switch-link { transition:background-color .16s ease,transform .16s ease,border-color .16s ease !important; }
.auth-screen .auth-overlay .auth-submit:active,
.auth-screen .auth-overlay .auth-continue:active,
.auth-screen .auth-back:active,
.auth-screen .auth-login-links button:active,
.auth-screen#screen-register .auth-switch-link:active { transform:scale(.985) !important; }

::view-transition-old(root) { animation:ocp-screen-out .16s ease both; }
::view-transition-new(root),.app-screen.screen-entering { animation:ocp-screen-in .2s ease both; }
.timeline-modal.is-visible { animation:ocp-modal-in .18s ease both; }
.profile-post-modal:not([hidden]) .profile-post-form,
.profile-network-modal:not([hidden]) .profile-network-card { animation:ocp-sheet-in .2s ease both; }
.timeline-post,.timeline-recommendation,.profile-network-list > button { animation:none; }
@keyframes ocp-screen-in { from { opacity:0; transform:translate3d(10px,0,0); } to { opacity:1; transform:none; } }
@keyframes ocp-screen-out { from { opacity:1; transform:none; } to { opacity:0; transform:translate3d(-6px,0,0); } }
@keyframes ocp-sheet-in { from { opacity:0; transform:translate3d(0,10px,0); } to { opacity:1; transform:none; } }
.profile-tabs::after { transition:transform .22s ease,background-color .18s ease; }
.profile-tab { transition:color .18s ease,opacity .18s ease; }
.profile-tab-panel { transition:opacity .16s ease,transform .18s ease; }

/* A smooth heart keeps the same fixed action-button footprint. */
.profile-post-like img { visibility:hidden; }
.profile-post-like::before,
.profile-post-like[aria-pressed='true']::after {
  position:absolute; inset:0; display:grid; place-items:center; pointer-events:none;
  font-family:Arial Rounded MT Bold,Arial,sans-serif; font-size:31px; line-height:1;
}
.profile-post-like::before { content:'\2661'; color:#ff3e79; text-shadow:1px 0 #08c8ee; }
.profile-post-like[aria-pressed='true']::before { opacity:0; }
.profile-post-like[aria-pressed='true']::after {
  content:'\2665'; background:linear-gradient(145deg,#08c8ee 4%,#f55cb0 38%,#ff304d 66%,#ceff00 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 2px 3px rgba(245,92,176,.28));
  clip-path:none; animation:ocp-heart-in .2s ease-out both;
}
@keyframes ocp-heart-in { from { opacity:.4; transform:scale(.82); } to { opacity:1; transform:scale(1); } }
.profile-post-actions .profile-post-like::before,
.profile-post-actions .profile-post-like[aria-pressed='true']::after { font-size:20px; }

/* Legacy onboarding now uses the same quiet identity as the rest of the app. */
.onboarding-modal { z-index:1900; padding:max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom)); background:rgba(84,20,44,.28); }
.onboarding-card { max-height:calc(100dvh - max(36px,env(safe-area-inset-top) + env(safe-area-inset-bottom))); border:1px solid rgba(255,131,189,.72) !important; border-radius:24px; box-shadow:0 18px 44px rgba(84,20,44,.2); }
.onboarding-step { border:0 !important; border-radius:14px; background:#fffef6 !important; box-shadow:none; }
.onboarding-step span { border:0 !important; background:#08c8ee; color:#54142c; box-shadow:none; }
.onboarding-step strong { color:#54142c; }
.onboarding-step p,.onboarding-intro { color:#54142c; }
.onboarding-close { border:1px solid #ff83bd !important; background:#fffef6 !important; color:#54142c !important; box-shadow:none !important; }

@container auth (max-height:600px) {
  .auth-screen .auth-trail { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .profile-post-like[aria-pressed='true']::after { animation:none !important; }
}

/* Coração (SVG arredondado; substitui o símbolo de texto) */
.profile-post-like::before { content:"" !important; color:transparent !important; text-shadow:none !important; font-size:0 !important; }
.profile-post-like[aria-pressed='true']::before { opacity:1; }
.profile-post-like[aria-pressed='true']::after { color:transparent; -webkit-background-clip:border-box; background-clip:border-box; display:block; }
/* Coração de curtir: desenho arredondado, contorno e preenchimento em gradiente */
.profile-post-like { background:#f4f4f4 !important; border-radius:50% !important; overflow:visible; }
.profile-post-like img { opacity:0 !important; }
.profile-post-like::before,
.profile-post-like[aria-pressed='true']::after {
  content:''; position:absolute; inset:25% !important; pointer-events:none;
  background:linear-gradient(140deg,#35bcea 0%,#f55cb0 38%,#ff3643 66%,#a2dc00 100%);
  clip-path:none !important; filter:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.1' stroke-linejoin='round' d='M12 20.1c-.3 0-.5-.1-.7-.3C7.2 16.4 3.5 13.2 3.5 9 3.5 6.5 5.4 4.6 7.8 4.6c1.7 0 3.2 1 4.2 2.6 1-1.6 2.5-2.6 4.2-2.6 2.4 0 4.3 1.9 4.3 4.4 0 4.2-3.7 7.4-7.8 10.8-.2.2-.4.3-.7.3z'/%3E%3C/svg%3E") center / contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.1' stroke-linejoin='round' d='M12 20.1c-.3 0-.5-.1-.7-.3C7.2 16.4 3.5 13.2 3.5 9 3.5 6.5 5.4 4.6 7.8 4.6c1.7 0 3.2 1 4.2 2.6 1-1.6 2.5-2.6 4.2-2.6 2.4 0 4.3 1.9 4.3 4.4 0 4.2-3.7 7.4-7.8 10.8-.2.2-.4.3-.7.3z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition:transform .18s cubic-bezier(.3,1.4,.5,1);
}
.profile-post-like[aria-pressed='true']::after {
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.1c-.4 0-.7-.1-1-.4C6.9 17.2 2.5 13.5 2.5 8.9 2.5 5.9 4.8 3.6 7.7 3.6c1.8 0 3.3.9 4.3 2.4 1-1.5 2.5-2.4 4.3-2.4 2.9 0 5.2 2.3 5.2 5.3 0 4.6-4.4 8.3-8.5 11.8-.3.3-.6.4-1 .4z'/%3E%3C/svg%3E") center / contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.1c-.4 0-.7-.1-1-.4C6.9 17.2 2.5 13.5 2.5 8.9 2.5 5.9 4.8 3.6 7.7 3.6c1.8 0 3.3.9 4.3 2.4 1-1.5 2.5-2.4 4.3-2.4 2.9 0 5.2 2.3 5.2 5.3 0 4.6-4.4 8.3-8.5 11.8-.3.3-.6.4-1 .4z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation:ocp-like-pop .42s cubic-bezier(.3,1.5,.5,1) both;
}
.profile-post-like:active::before, .profile-post-like:active::after { transform:scale(.86); }
@keyframes ocp-like-pop { 0% { transform:scale(.3); opacity:0; } 60% { transform:scale(1.18); opacity:1; } 100% { transform:scale(1); opacity:1; } }


/* ====================================================
   Mapa: botão "+" para marcar adesivo e modo de marcação — 5/nov/2026
   ==================================================== */

/* Alvo fixo no centro do mapa enquanto o usuário escolhe o local */
.map-place-pin {
  position:absolute; z-index:14; left:50%; top:50%; width:58px; height:58px;
  transform:translate(-50%,-50%); pointer-events:none;
  animation:ocp-place-pin-in .32s cubic-bezier(.2,1.3,.4,1) both;
}
.map-place-pin img { display:block; width:100%; height:100%; filter:drop-shadow(0 6px 10px rgba(84,20,44,.28)); }
.map-place-pin[hidden], .map-place-bar[hidden] { display:none !important; }
@keyframes ocp-place-pin-in { from { opacity:0; transform:translate(-50%,-80%) scale(.6); } to { opacity:1; transform:translate(-50%,-50%) scale(1); } }

.map-place-bar {
  position:absolute; z-index:15; left:50%; transform:translateX(-50%);
  bottom:calc(var(--nav-bottom) + var(--nav-height) + 16px);
  box-sizing:border-box; width:var(--nav-width); padding:12px; border-radius:24px; background:#f2f2f2;
  box-shadow:0 12px 28px rgba(84,20,44,.16); pointer-events:auto;
  animation:ocp-place-bar-in .3s cubic-bezier(.16,.84,.2,1) both;
}
.map-place-bar p { margin:0 0 10px; color:#54142c; font:500 13px/1.3 'IBM Plex Mono',monospace; text-align:center; }
.map-place-bar div { display:grid; grid-template-columns:1fr 1.4fr; gap:10px; }
.map-place-bar button { height:46px; border-radius:999px; font:600 15px/1 'IBM Plex Mono',monospace; cursor:pointer; }
#map-place-cancel { border:1px solid #ff8cc5; background:#fffef6; color:#54142c; }
#map-place-confirm { border:0; background:#08c8ee; color:#54142c; }
@keyframes ocp-place-bar-in { from { opacity:0; transform:translate(-50%,16px); } to { opacity:1; transform:translate(-50%,0); } }

/* Enquanto marca, some o que atrapalha a visão do mapa */
body.is-placing-pin .map-event-popup,
body.is-placing-pin .map-add-hint,
body.is-placing-pin .location-permission-btn,
body.is-placing-pin .timeline-pull-tab,
body.is-placing-pin .scan-bottom-wrapper { opacity:0 !important; pointer-events:none !important; }

@media (prefers-reduced-motion:reduce) { .map-place-pin, .map-place-bar { animation:none; } }

/* Botão "+" do mapa com o rótulo "add" dentro do círculo */
body:has(#screen-map.active-screen) .scan-bottom-wrapper:not(.is-profile) #nav-btn-add-pin { position:absolute; }
body:has(#screen-map.active-screen) .scan-bottom-wrapper:not(.is-profile) #nav-btn-add-pin img { width:100%; height:100%; }
body:has(#screen-map.active-screen) .scan-bottom-wrapper:not(.is-profile) #nav-btn-add-pin::after {
  content:'add'; position:absolute; left:0; right:0; bottom:13%; text-align:center; pointer-events:none;
  color:#e3262f; font:700 clamp(9px,2.6vw,11px)/1 'IBM Plex Mono',monospace; letter-spacing:.03em;
}

/* ====================================================
   Pente fino 26/nov
   ==================================================== */

/* Avisos do app (no lugar das caixas cinzas do navegador) */
.ocp-toast {
  position:fixed; z-index:4000; left:50%; top:calc(env(safe-area-inset-top) + 14px);
  box-sizing:border-box; width:max-content; max-width:min(88vw,420px); padding:11px 14px 11px 12px;
  border-radius:14px; background:#fffef6; color:#54142c; box-shadow:0 12px 30px rgba(84,20,44,.2);
  font:500 14px/1.35 'IBM Plex Mono',monospace; text-align:left;
  display:flex; gap:10px; align-items:flex-start;
  opacity:0; transform:translate(-50%,-14px); pointer-events:none;
  transition:opacity .2s ease, transform .24s cubic-bezier(.2,.9,.3,1.1);
}
.ocp-toast::before { content:''; flex:none; width:8px; height:8px; margin-top:6px; border-radius:50%; background:#ceff00; }
.ocp-toast[data-tone="error"]::before { background:#ff3643; }
.ocp-toast.is-visible { opacity:1; transform:translate(-50%,0); pointer-events:auto; }

.ocp-confirm { position:fixed; inset:0; z-index:4001; display:grid; place-items:center; padding:20px; background:rgba(84,20,44,.28); animation:ocp-fade-in .18s ease both; }
.ocp-confirm-card { box-sizing:border-box; width:min(90vw,380px); padding:22px 18px 16px; border-radius:24px; background:#f2f2f2; color:#54142c; box-shadow:0 18px 44px rgba(84,20,44,.2); font-family:'IBM Plex Mono',monospace; }
.ocp-confirm-card p { margin:0 0 18px; font-size:15px; line-height:1.45; }
.ocp-confirm-card div { display:grid; grid-template-columns:1fr 1.2fr; gap:10px; }
.ocp-confirm-card button { height:46px; border-radius:999px; font:600 14px/1 'IBM Plex Mono',monospace; cursor:pointer; }
.ocp-confirm-card [data-no] { border:1px solid #ff8cc5; background:#fffef6; color:#54142c; }
.ocp-confirm-card [data-yes] { border:0; background:#08c8ee; color:#54142c; }

/* Login: na 1ª etapa não há para onde voltar, então o "Continuar" ocupa a linha toda */
.auth-screen .auth-overlay:has(.auth-back[hidden]) .auth-continue,
.auth-screen .auth-overlay:has(.auth-back[hidden]) .auth-submit { left:8%; width:84%; }
.auth-screen .auth-back { border-color:#ff8cc5; }

/* Login: aproxima o botão do cartão (menos vazio no meio da tela) */
@container auth (min-height:680px) {
  .auth-screen#screen-login .auth-overlay .auth-submit,
  .auth-screen#screen-login .auth-overlay .auth-continue,
  .auth-screen#screen-login .auth-back { bottom:auto; top:calc(clamp(100px, 28%, 230px) + 236px); }
  .auth-screen#screen-login .auth-remember { bottom:auto; top:calc(clamp(100px, 28%, 230px) + 300px); }
}

@media (prefers-reduced-motion:reduce) { .ocp-toast { transition:none; } }
@keyframes ocp-fade-in { from { opacity:0; } to { opacity:1; } }
/* Botão de tela cheia do A-Frame (fora da identidade, sem uso no app) */
.a-enter-vr, .a-enter-vr-button, .a-enter-ar, .a-enter-ar-button, .a-orientation-modal { display:none !important; }

/* ==========================================================
   IDENTIDADE v2 · normalização final (26/11)
   Vinho #54142c no texto · ciano #08c8ee nos botões principais
   lima #ceff00 nas etiquetas · rosa #ff83bd/#ff8cc5 em acentos e bordas
   caixas cinza-claro ou creme · sem lilás · sem tracejado
   ========================================================== */

/* Etiquetas pequenas (kickers) sempre como chip lima */
.activity-kicker, .client-area-kicker, .friend-request-kicker, .password-reset-kicker,
.onboarding-kicker, .profile-qr-kicker, .chat-kicker, .scan-pin-prompt-kicker {
  display:inline-block !important; width:auto !important; max-width:max-content;
  padding:3px 7px !important; border:0 !important; border-radius:5px !important;
  background:#ceff00 !important; color:#54142c !important;
  font:500 11px/1.25 'IBM Plex Mono',monospace !important; letter-spacing:0 !important; text-transform:none !important;
}

/* Títulos e textos de modais em vinho */
.activity-card h2, .client-area-card h2, .friend-request-card h2, .password-reset-card h2,
.chat-card h2, .onboarding-card h2, .sticker-form h2, #sticker-form h2, .profile-network-card h2,
.activity-card p, .client-area-card p, .friend-request-card p, .password-reset-card p,
.onboarding-card p, #sticker-form p, .scan-pin-prompt-card p,
.activity-card label, .client-area-card label, .client-area-grid label,
#activity-title, .onboarding-intro, .onboarding-step p, .onboarding-step strong,
.client-area-intro, #friend-request-copy, .scan-pin-location-status, .ocp-beta-hint {
  color:#54142c !important;
}

/* Campos: texto vinho, borda ciano, fundo branco */
.activity-card select, .activity-card input, .client-area-card select, .client-area-card input,
.client-area-card textarea, .password-reset-input, #sticker-form input, .chat-form input {
  color:#54142c !important; border-color:#08c8ee !important;
}
.activity-card select:focus, .client-area-card select:focus, .client-area-card input:focus,
.client-area-card textarea:focus, .password-reset-input:focus, #sticker-form input:focus, .chat-form input:focus {
  outline:2px solid #ceff00 !important; outline-offset:1px;
}

/* Botões de fechar: círculo branco, ícone vinho, borda rosa */
.activity-close, .client-area-close, .friend-request-close, .password-reset-close, .chat-close,
.onboarding-close, .profile-post-close, .activity-detail-close, .activity-share-close, .timeline-close {
  color:#54142c !important; border-color:#ff8cc5 !important; background:#fff !important;
}

/* Botão principal de publicar: ciano chapado */
.profile-post-form button[type='submit'], #profile-post-submit {
  background:#08c8ee !important; color:#54142c !important; border:0 !important;
}

/* Estado vazio do perfil: palavras em etiqueta lima */
.profile-posts-empty strong { border:0 !important; background:#ceff00 !important; color:#54142c !important; padding:0 4px !important; }
.profile-posts-empty p { color:rgba(84,20,44,.62) !important; }

/* Contadores, abas e nomes */
#profile-followers-count, #profile-following-count, .profile-tab, .profile-network-tab,
#friend-requests-list .friend-circle, #screen-profile .empty-requests { color:#54142c !important; }
#friend-request-count { color:#54142c !important; }
.profile-title .user-name, .profile-qr-card strong { border-color:#ceff00 !important; }
#profile-name-edit-btn, #profile-qr-btn { color:#54142c !important; }

/* Fundo dos modais: escurecido neutro (sem tom lilás) */
.activity-modal.is-visible, .client-area-modal.is-visible, .friend-request-modal.is-visible,
.password-reset-modal.is-visible, .chat-modal.is-visible, .profile-network-modal.is-visible,
.onboarding-modal.is-visible, .sticker-modal, #sticker-modal, .ocp-confirm {
  background:rgba(18,12,14,.42) !important;
}

/* Legenda do post: faixa chapada em vez de degradê */
.timeline-post-overlay { background:rgba(17,8,15,.52) !important; padding:14px 18px 16px !important; }

/* Raridades do álbum β */
.ocp-beta-rarity.is-lendaria { background:#ff83bd !important; color:#54142c !important; }
.ocp-beta-rarity.is-rara { background:#08c8ee !important; color:#54142c !important; }
.ocp-beta-rarity.is-comum { background:#eef1f2 !important; color:#54142c !important; }
.ocp-beta-rarity.is-rarissima, .ocp-beta-rarity.is-raríssima { background:#ceff00 !important; color:#54142c !important; }

/* Foco acessível na cor da identidade */
.bottom-nav-action:focus-visible, .profile-post-action:focus-visible { outline-color:#08c8ee !important; }

/* ==========================================================
   CARTÕES DE CONVITE (ref. leque de perfis) · identidade OCP
   foto cheia em cima, faixa chapada da paleta embaixo,
   avatar sobreposto, nome grande em Plex Mono, botão pílula
   ========================================================== */
.timeline-recommendations { overflow:visible; }
.timeline-recommendation-row.ocp-invite-fan {
  display:flex !important; grid-template-columns:none !important; gap:0 !important;
  overflow-x:auto; overflow-y:visible; scroll-snap-type:x mandatory; scrollbar-width:none;
  padding:10px calc(50% - 98px) 26px; margin:0 -16px;
}
.ocp-invite-fan::-webkit-scrollbar { display:none; }
.ocp-invite-card.timeline-recommendation {
  --fan-scale:1; --fan-y:0px;
  position:relative; flex:0 0 196px; width:196px; margin:0 -14px !important;
  display:flex; flex-direction:column; overflow:hidden;
  border:0 !important; border-radius:26px !important; background:#fffef6 !important;
  box-shadow:0 14px 30px rgba(84,20,44,.16);
  transform:translateY(var(--fan-y)) scale(var(--fan-scale)); transform-origin:50% 100%;
  transition:transform .18s ease-out, box-shadow .18s; scroll-snap-align:center; animation:none !important;
}
.ocp-invite-card.is-front { box-shadow:0 18px 36px rgba(84,20,44,.24); }
.ocp-invite-media { display:block; width:100%; height:176px; padding:0; border:0; background:#eef1f2; cursor:pointer; }
.ocp-invite-media img { display:block; width:100% !important; height:100% !important; object-fit:cover; margin:0 !important; border-radius:0 !important; aspect-ratio:auto !important; }
.ocp-invite-chip { position:absolute; top:12px; left:12px; padding:3px 7px; border-radius:6px; background:#ceff00; color:#54142c; font:500 10px/1.2 'IBM Plex Mono',monospace; }
.ocp-invite-band {
  position:relative; display:flex !important; flex-direction:column; align-items:flex-start; gap:2px;
  padding:30px 14px 14px !important; min-height:128px; color:#54142c;
}
.ocp-invite-card.is-lime .ocp-invite-band { background:#ceff00; }
.ocp-invite-card.is-pink .ocp-invite-band { background:#ff8cc5; }
.ocp-invite-card.is-cyan .ocp-invite-band { background:#08c8ee; }
.ocp-invite-card.is-cream .ocp-invite-band { background:#f1f2ec; }
.ocp-invite-avatar {
  position:absolute; top:-26px; left:12px; width:52px; height:52px; padding:0; overflow:hidden;
  display:grid; place-items:center; border:3px solid #fffef6; border-radius:50%; background:#f1f2ec;
  color:#54142c; font:600 18px 'IBM Plex Mono',monospace; cursor:pointer;
}
.ocp-invite-avatar img { width:100%; height:100%; object-fit:cover; }
.ocp-invite-name { display:block; max-width:100%; overflow:hidden; color:#54142c; font:600 21px/1.05 'IBM Plex Mono',monospace; letter-spacing:-.04em; text-overflow:ellipsis; white-space:nowrap; }
.ocp-invite-band .ocp-invite-handle { padding:0 !important; border:0 !important; background:none !important; color:#54142c !important; font:500 11px 'IBM Plex Mono',monospace !important; opacity:.8; }
.ocp-invite-band .ocp-invite-topic { display:block; max-width:100%; margin:0 !important; overflow:hidden; color:rgba(84,20,44,.72) !important; font:400 10px/1.25 'IBM Plex Mono',monospace !important; text-overflow:ellipsis; white-space:nowrap; }
.ocp-invite-band .ocp-invite-action {
  align-self:stretch; margin:10px 0 0 !important; padding:9px 12px !important; border:0 !important; border-radius:999px !important;
  background:#fffef6 !important; color:#54142c !important; font:600 12px 'IBM Plex Mono',monospace !important; box-shadow:none !important;
}
.ocp-invite-band .ocp-invite-action[data-state="following"] { background:#54142c !important; color:#fffef6 !important; }
.ocp-invite-band .ocp-invite-action[disabled] { opacity:.7; }
@media (prefers-reduced-motion: reduce) { .ocp-invite-card.timeline-recommendation { transition:none; } }

/* Pedido de amizade como cartão de convite */
.friend-request-card {
  width:min(320px, calc(100vw - 40px)) !important; padding:0 !important; overflow:hidden;
  border:0 !important; border-radius:28px !important; background:#ff8cc5 !important; text-align:left !important;
  box-shadow:0 24px 50px rgba(18,12,14,.28) !important;
}
.friend-request-photo { position:relative; height:250px; display:grid; place-items:center; background:#f1f2ec; overflow:hidden; }
.friend-request-photo img { width:100%; height:100%; object-fit:cover; }
.friend-request-photo span { color:#54142c; font:600 86px 'IBM Plex Mono',monospace; letter-spacing:-.06em; }
.friend-request-card .friend-request-kicker { position:absolute; top:16px; left:16px; z-index:2; }
.friend-request-card .friend-request-close { position:absolute; top:12px; right:12px; z-index:2; }
.friend-request-band { padding:18px 18px 18px; }
.friend-request-band h2 { margin:0 !important; color:#54142c !important; font:600 26px/1.05 'IBM Plex Mono',monospace !important; letter-spacing:-.05em; }
.friend-request-handle { display:block; margin-top:4px; color:#54142c; font:500 12px 'IBM Plex Mono',monospace; opacity:.8; }
.friend-request-band p { margin:8px 0 14px !important; color:#54142c !important; font:400 12px/1.35 'IBM Plex Mono',monospace !important; }
.friend-request-band .friend-request-actions { display:grid !important; grid-template-columns:1fr 1fr; gap:8px; }
.friend-request-band .friend-request-accept { border:0 !important; border-radius:999px !important; background:#54142c !important; color:#fffef6 !important; }
.friend-request-band .friend-request-decline { border:0 !important; border-radius:999px !important; background:#fffef6 !important; color:#54142c !important; }

/* Convites dentro do chat */
.chat-message-bubble.chat-invite-card {
  display:flex !important; flex-direction:column; gap:3px; min-width:200px; max-width:250px;
  padding:14px !important; border:0 !important; border-radius:22px !important; color:#54142c !important;
}
.chat-invite-card.is-event { background:#ceff00 !important; }
.chat-invite-card.is-activity { background:#08c8ee !important; }
.chat-invite-chip { align-self:flex-start; margin-bottom:6px; padding:3px 7px; border-radius:6px; background:#fffef6; color:#54142c; font:500 10px/1.2 'IBM Plex Mono',monospace; font-style:normal; }
.chat-invite-title { color:#54142c; font:600 19px/1.08 'IBM Plex Mono',monospace; letter-spacing:-.04em; }
.chat-invite-card strong { color:#54142c !important; font:500 11px 'IBM Plex Mono',monospace !important; opacity:.8; }
.chat-invite-card small { color:rgba(84,20,44,.75) !important; font:400 10px 'IBM Plex Mono',monospace !important; }
.chat-invite-card .chat-invite-actions { display:grid !important; grid-template-columns:1fr 1fr; gap:6px; margin-top:10px; }
.chat-invite-card .chat-invite-actions button { padding:8px 10px !important; border:0 !important; border-radius:999px !important; background:#fffef6 !important; color:#54142c !important; font:600 11px 'IBM Plex Mono',monospace !important; }
.chat-invite-card .chat-invite-actions button:first-child { background:#54142c !important; color:#fffef6 !important; }

/* ==========================================================
   CÂMERA DO POST (só criação de post; o scanner AR é outra tela)
   visor arredondado, grade, lentes em pílula, leitura técnica
   em Plex Mono, obturador branco com anel lima
   ========================================================== */
html.ocp-cam-lock, html.ocp-cam-lock body { overflow:hidden; }
.ocp-cam {
  position:fixed; inset:0; z-index:4000; display:none; flex-direction:column;
  padding:calc(env(safe-area-inset-top,0px) + 10px) 12px calc(env(safe-area-inset-bottom,0px) + 14px);
  background:#15121a; color:#fffef6; font-family:'IBM Plex Mono',monospace;
}
.ocp-cam.is-open { display:flex; animation:ocp-fade-in .18s ease-out; }
.ocp-cam-frame { position:relative; flex:1 1 auto; min-height:0; overflow:hidden; border-radius:34px; background:#000; }
.ocp-cam-video, .ocp-cam-review { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ocp-cam-video { transform:scale(var(--cam-zoom,1)); transition:transform .2s ease-out; }
.ocp-cam-video.is-mirrored { transform:scale(var(--cam-zoom,1)) scaleX(-1); }
.ocp-cam-review { z-index:2; background:#000; object-fit:contain; }
.ocp-cam-grid { position:absolute; inset:0; z-index:1; pointer-events:none; }
.ocp-cam-grid i { position:absolute; background:rgba(255,254,246,.32); }
.ocp-cam-grid i:nth-child(1) { left:33.33%; top:0; bottom:0; width:1px; }
.ocp-cam-grid i:nth-child(2) { left:66.66%; top:0; bottom:0; width:1px; }
.ocp-cam-grid i:nth-child(3) { top:33.33%; left:0; right:0; height:1px; }
.ocp-cam-grid i:nth-child(4) { top:66.66%; left:0; right:0; height:1px; }
.ocp-cam.no-grid .ocp-cam-grid, .ocp-cam.is-review .ocp-cam-grid { display:none; }
.ocp-cam-flash { position:absolute; inset:0; z-index:5; background:#fffef6; opacity:0; pointer-events:none; }
.ocp-cam-flash.is-firing { animation:ocp-cam-flash .32s ease-out; }
@keyframes ocp-cam-flash { 0% { opacity:.9; } 100% { opacity:0; } }
.ocp-cam-count { position:absolute; inset:0; z-index:4; display:grid; place-items:center; color:#ceff00; font:600 120px/1 'IBM Plex Mono',monospace; text-shadow:0 4px 30px rgba(0,0,0,.4); pointer-events:none; }
.ocp-cam-count.is-tick { animation:ocp-cam-tick .9s ease-out; }
@keyframes ocp-cam-tick { 0% { transform:scale(1.25); opacity:0; } 25% { opacity:1; } 100% { transform:scale(.9); opacity:.2; } }
.ocp-cam-top { position:absolute; top:12px; left:12px; right:12px; z-index:3; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ocp-cam-top-right { display:flex; gap:6px; }
.ocp-cam-chip { padding:4px 8px; border-radius:6px; background:#ceff00; color:#54142c; font:500 11px/1.2 'IBM Plex Mono',monospace; }
.ocp-cam-icon { position:relative; width:38px; height:38px; display:grid; place-items:center; padding:0; border:0; border-radius:50%; background:rgba(21,18,26,.55); color:#fffef6; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); cursor:pointer; }
.ocp-cam-icon svg, .ocp-cam-side svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ocp-cam-icon[data-cam="torch"] svg { fill:currentColor; stroke:none; }
.ocp-cam-icon.is-on { background:#ceff00; color:#54142c; }
.ocp-cam-timer-badge { position:absolute; right:-4px; bottom:-4px; padding:1px 4px; border-radius:6px; background:#ff83bd; color:#54142c; font:600 9px 'IBM Plex Mono',monospace; }
.ocp-cam-lens { position:absolute; left:50%; bottom:14px; z-index:3; display:flex; gap:4px; padding:4px; border-radius:999px; background:rgba(21,18,26,.55); transform:translateX(-50%); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.ocp-cam-lens button { min-width:34px; height:34px; padding:0 8px; border:0; border-radius:999px; background:transparent; color:#fffef6; font:500 12px 'IBM Plex Mono',monospace; cursor:pointer; }
.ocp-cam-lens button.is-on { background:#ceff00; color:#54142c; font-weight:600; }
.ocp-cam.is-review .ocp-cam-lens, .ocp-cam.is-review .ocp-cam-top-right { display:none; }
.ocp-cam-status { position:absolute; left:16px; right:16px; top:50%; z-index:3; margin:0; padding:12px 14px; border-radius:16px; background:#fffef6; color:#54142c; font:400 12px/1.4 'IBM Plex Mono',monospace; text-align:center; transform:translateY(-50%); }
.ocp-cam-readout { display:flex; justify-content:space-between; gap:6px; padding:12px 8px 6px; color:rgba(255,254,246,.55); font:400 10px 'IBM Plex Mono',monospace; letter-spacing:.02em; }
.ocp-cam-readout b { color:#fffef6; font-weight:500; }
.ocp-cam-readout b[data-read="zoom"] { color:#ceff00; }
.ocp-cam-controls { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:8px 18px 4px; }
.ocp-cam-side { justify-self:center; width:52px; height:52px; display:grid; place-items:center; padding:0; border:0; border-radius:50%; background:#2a2430; color:#fffef6; cursor:pointer; background-size:cover; background-position:center; }
.ocp-cam-gallery.has-thumb { border:2px solid #fffef6; }
.ocp-cam-gallery.has-thumb svg { display:none; }
.ocp-cam-shutter { width:84px; height:84px; padding:0; border:4px solid #ceff00; border-radius:50%; background:transparent; cursor:pointer; }
.ocp-cam-shutter span { display:block; width:100%; height:100%; border:4px solid #15121a; border-radius:50%; background:#fffef6; transition:transform .12s; }
.ocp-cam-shutter:active span { transform:scale(.9); }
.ocp-cam.is-review .ocp-cam-controls, .ocp-cam.is-review .ocp-cam-readout { display:none; }
.ocp-cam-review-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:16px 6px 6px; }
.ocp-cam-review-actions button { height:52px; border:0; border-radius:999px; font:600 14px 'IBM Plex Mono',monospace; cursor:pointer; }
.ocp-cam-retake { background:#fffef6; color:#54142c; }
.ocp-cam-use { background:#08c8ee; color:#54142c; }

/* ==========================================================
   PAINEL DO PERFIL EM BLOCOS (ref. bento) · identidade OCP
   ========================================================== */
#screen-profile .profile-network-stats.is-bento-source { display:none !important; }
.ocp-profile-bento { display:grid; grid-template-columns:1fr 1fr; gap:10px; width:min(100%, 420px); margin:6px auto 14px; padding:0 16px; box-sizing:border-box; }
.ocp-bento-card {
  position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-height:132px;
  padding:14px; overflow:hidden; border:1px solid #ff8cc5; border-radius:24px; background:#fffef6;
  color:#54142c; font-family:'IBM Plex Mono',monospace; text-align:left; cursor:pointer; box-sizing:border-box;
}
.ocp-bento-card:active { transform:scale(.98); }
.ocp-bento-label { padding:3px 7px; border-radius:6px; background:#ceff00; color:#54142c; font:500 10px/1.2 'IBM Plex Mono',monospace; }
.ocp-bento-number { margin-top:auto; color:#54142c; font:600 44px/0.95 'IBM Plex Mono',monospace; letter-spacing:-.06em; }
.ocp-bento-sub { color:rgba(84,20,44,.7); font:400 10px 'IBM Plex Mono',monospace; }
.ocp-bento-faces { position:absolute; top:12px; right:12px; display:flex; }
.ocp-bento-face { width:30px; height:30px; margin-left:-9px; display:grid; place-items:center; overflow:hidden; border:2px solid #fffef6; border-radius:50%; background:#ff8cc5; color:#54142c; font:600 12px 'IBM Plex Mono',monospace; }
.ocp-bento-face img { width:100%; height:100%; object-fit:cover; }
.ocp-bento-search { background:#08c8ee; border-color:#08c8ee; }
.ocp-bento-title { color:#54142c; font:600 15px/1.15 'IBM Plex Mono',monospace; letter-spacing:-.03em; }
.ocp-bento-plus { margin-top:auto; width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:#fffef6; color:#54142c; font:400 26px/1 'IBM Plex Mono',monospace; }
.ocp-bento-search .ocp-bento-number { color:#54142c; }
.ocp-bento-wide { grid-column:1 / -1; min-height:0; cursor:default; background:#f1f2ec; border-color:#f1f2ec; }
.ocp-bento-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; width:100%; margin-top:8px; }
.ocp-bento-metrics > * { display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:10px; border:0; border-radius:16px; background:#fffef6; color:#54142c; font-family:'IBM Plex Mono',monospace; text-align:left; cursor:pointer; }
.ocp-bento-metrics strong { font:600 24px/1 'IBM Plex Mono',monospace; letter-spacing:-.05em; color:#54142c; }
.ocp-bento-metrics small { font:400 10px 'IBM Plex Mono',monospace; color:rgba(84,20,44,.7); }
.ocp-bento-metrics .is-level { background:#ceff00; cursor:default; }
.ocp-bento-activity { grid-column:1 / -1; min-height:0; }
.ocp-bento-activity-text { color:rgba(84,20,44,.75); font:400 12px/1.35 'IBM Plex Mono',monospace; }
.ocp-bento-activity.has-activity { border-color:#ff83bd; }
.ocp-bento-activity.has-activity .ocp-bento-activity-text { color:#54142c; }

/* ==========================================================
   MÚSICA DO PERFIL (ref. mini player) · só link, sem tocar no app
   ========================================================== */
.ocp-profile-music { width:min(100%, 420px); margin:0 auto 14px; padding:0 16px; box-sizing:border-box; }
.ocp-profile-music[hidden] { display:none; }
.ocp-music-card {
  position:relative; display:grid; grid-template-columns:62px minmax(0,1fr); grid-template-areas:"cover copy" "open open";
  gap:10px 12px; align-items:center; padding:12px; border-radius:24px; background:#15121a; color:#fffef6;
}
.ocp-music-cover { grid-area:cover; width:62px; height:62px; display:grid; place-items:center; overflow:hidden; border-radius:16px; background:#2a2430; color:#ceff00; font:600 24px 'IBM Plex Mono',monospace; }
.ocp-music-cover img { width:100%; height:100%; object-fit:cover; }
.ocp-music-copy { grid-area:copy; min-width:0; display:flex; flex-direction:column; gap:2px; padding-right:54px; }
.ocp-music-chip { align-self:flex-start; margin-bottom:3px; padding:3px 7px; border-radius:6px; background:#ceff00; color:#54142c; font:500 10px/1.2 'IBM Plex Mono',monospace; font-style:normal; }
.ocp-music-copy strong { overflow:hidden; color:#fffef6; font:600 14px/1.2 'IBM Plex Mono',monospace; text-overflow:ellipsis; white-space:nowrap; }
.ocp-music-copy small { overflow:hidden; color:rgba(255,254,246,.6); font:400 11px 'IBM Plex Mono',monospace; text-overflow:ellipsis; white-space:nowrap; }
.ocp-music-open { grid-area:open; display:block; padding:10px 12px; border-radius:999px; background:#fffef6; color:#54142c; font:600 12px 'IBM Plex Mono',monospace; text-align:center; text-decoration:none; }
.ocp-music-card.is-spotify .ocp-music-open { background:#ceff00; }
.ocp-music-card.is-apple .ocp-music-open { background:#ff83bd; }
.ocp-music-edit { position:absolute; top:12px; right:12px; padding:5px 9px; border:1px solid rgba(255,254,246,.3); border-radius:999px; background:transparent; color:#fffef6; font:500 10px 'IBM Plex Mono',monospace; cursor:pointer; }
.ocp-music-empty { display:flex; align-items:center; gap:12px; width:100%; padding:12px; border:1px solid #ff8cc5; border-radius:24px; background:#fffef6; color:#54142c; font-family:'IBM Plex Mono',monospace; text-align:left; cursor:pointer; }
.ocp-music-plus { flex:none; width:44px; height:44px; display:grid; place-items:center; border-radius:14px; background:#15121a; color:#ceff00; font:400 24px 'IBM Plex Mono',monospace; }
.ocp-music-empty strong { display:block; font:600 13px 'IBM Plex Mono',monospace; color:#54142c; }
.ocp-music-empty small { display:block; margin-top:2px; font:400 10px/1.3 'IBM Plex Mono',monospace; color:rgba(84,20,44,.7); }
.ocp-music-editor .ocp-confirm-card { display:flex; flex-direction:column; gap:10px; }
.ocp-music-editor p { margin:0; color:#54142c; font:400 12px/1.4 'IBM Plex Mono',monospace; }
.ocp-music-editor input { width:100%; box-sizing:border-box; padding:12px 14px; border:1px solid #08c8ee; border-radius:14px; background:#fff; color:#54142c; font:400 13px 'IBM Plex Mono',monospace; }
.ocp-music-editor input:focus { outline:2px solid #ceff00; outline-offset:1px; }
.ocp-cam [hidden] { display:none !important; }
.ocp-cam-shutter, .ocp-cam-shutter span { box-sizing:border-box; }
