:root {
  --bg: #fff8fb;
  --surface: #ffffff;
  --surface-soft: #fff0f5;
  --border: #ffd8e4;
  --text: #22141d;
  --subtext: #7a5c68;
  --primary: #ff3b5c;
  --primary-2: #ff7a45;
  --success: #22c55e;
  --warning: #f97316;
  --chip: #ffe7ef;
  --shadow: 0 8px 24px rgba(255, 59, 92, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #ffe8f0 0%, #fff8fb 28%, #fff9fc 62%, #fff 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.hidden {
  display: none !important;
}

.brand-gradient {
  background: linear-gradient(110deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  border: 0;
  outline: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 18px rgba(255, 59, 92, 0.24);
}

.btn-soft {
  background: #fff;
  color: var(--primary);
  border: 1px solid #ffc2d4;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 68px 1fr;
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 250, 253, 0.95);
  border-bottom: 1px solid #f5d6e0;
  backdrop-filter: blur(8px);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-wrap img {
  width: 160px;
  max-width: 100%;
  height: auto;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
}

.search-wrap input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--text);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.top-create-btn {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
}

.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffc0d1;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 16px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.nav-item {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #2d1f27;
}

.nav-item:hover {
  background: #fff4f8;
  border-color: #ffd9e5;
}

.nav-item.active {
  background: var(--chip);
  border-color: #ffcadd;
  color: var(--primary);
}

.badge {
  margin-left: auto;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: 99px;
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.page {
  display: none;
  gap: 14px;
}

.page.active {
  display: grid;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.stories {
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--subtext);
}

.story-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.story {
  min-width: 86px;
  text-align: center;
  cursor: pointer;
}

.story .avatar {
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 0 auto 8px;
  border: 3px solid #ff9ab3;
  background: linear-gradient(130deg, #ff97bc, #ffa95c);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}

.filters {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.chip {
  border: 1px solid #ffd0df;
  background: #fff;
  color: #5f4551;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  white-space: nowrap;
}

.chip.active {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
}

.composer {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  padding: 14px;
  align-items: center;
}

.circle-user {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(130deg, #ff86af, #ff8a3d);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.composer input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 16px;
}

.mini-actions {
  display: flex;
  gap: 8px;
}

.mini-actions button {
  border: 0;
  background: #fff4f8;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  color: #7b5e69;
  cursor: pointer;
}

.post {
  padding: 18px;
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.post > * {
  min-width: 0;
}

.post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-avatar {
  width: 52px;
  height: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid #ff9cb7;
  background: linear-gradient(130deg, #ff86af, #ff9b4b);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 27px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-user {
  cursor: pointer;
}

.post-meta strong {
  font-size: 22px;
  line-height: 1.1;
}

.post-meta p {
  margin: 2px 0 0;
  color: var(--subtext);
}

.post-media {
  border-radius: 16px;
  border: 1px dashed #ffc8d9;
  min-height: 220px;
  background: linear-gradient(120deg, #ffd1c1, #ffb17f);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 90px;
  font-weight: 800;
  font-style: italic;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-actions .left {
  display: flex;
  gap: 16px;
  color: #4a333f;
}

.post-actions .left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.right-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.vibe-metric {
  color: #fff;
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(140deg, #2a0018, #4b0b2a 45%, #6d1d1f 70%, #7a2e15 100%);
}

.vibe-metric h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.8px;
}

.vibe-metric .big {
  margin: 12px 0 8px;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
}

.vibe-metric small {
  color: #ffd2de;
}

.rail-card {
  padding: 14px;
}

.rail-card h4 {
  margin: 0 0 10px;
  font-size: 28px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  border: 1px solid #ffd9e4;
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.list-item .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.muted {
  color: var(--subtext);
}

.map-frame {
  width: 100%;
  min-height: 62vh;
  border: 0;
  border-radius: 16px;
}

.map-canvas {
  width: 100%;
  min-height: 62vh;
  border: 1px solid #ffd6e4;
  border-radius: 16px;
  overflow: hidden;
}

.feed-list {
  display: grid;
  gap: 12px;
}

.empty-state {
  border: 1px dashed #ffd0df;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  color: var(--subtext);
  background: #fff8fb;
}

.post-media-image {
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(220px, 40vw, 520px);
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  border: 1px solid #ffd5e2;
  overflow: hidden;
}

.search-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.search-inline input {
  border: 1px solid #ffcddc;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  background: #fff8fb;
}

.live-create {
  display: grid;
  grid-template-columns: 1fr 1fr 120px auto;
  gap: 10px;
  margin-bottom: 10px;
}

.live-create input,
.live-create select {
  border: 1px solid #ffcddc;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  background: #fff8fb;
}

.messages-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
}

.conversation-item {
  width: 100%;
  border: 1px solid #ffd8e4;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.conversation-item.active {
  border-color: #ff8fae;
  background: #fff5f9;
}

.conversation-avatar {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(130deg, #ff86af, #ff9b4b);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

.conversation-text {
  display: grid;
  gap: 2px;
  text-align: left;
  flex: 1;
}

.conversation-text strong {
  font-size: 14px;
}

.conversation-text span {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-unread {
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.chat-messages {
  height: 340px;
  overflow-y: auto;
  border: 1px solid #ffdce7;
  border-radius: 14px;
  padding: 10px;
  background: #fffafc;
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}

.chat-bubble {
  max-width: 78%;
  border-radius: 12px;
  padding: 10px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 72px;
}

.chat-bubble.mine {
  justify-self: end;
  align-items: flex-end;
  background: linear-gradient(120deg, #ff4870, #ff8a4d);
  color: #fff;
}

.chat-bubble.other {
  justify-self: start;
  background: #fff;
  border: 1px solid #ffd4e1;
}

.chat-bubble small {
  opacity: 0.82;
  font-size: 11px;
  margin-top: 2px;
}

.chat-composer {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-composer input {
  border: 1px solid #ffcddc;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  background: #fff8fb;
}

.chat-media {
  max-width: 220px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.summary-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.profile-form textarea {
  border: 1px solid #ffcddc;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  background: #fff8fb;
  resize: vertical;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-form-grid .field > span {
  color: #5f4451;
  font-size: 12px;
  font-weight: 700;
}

.profile-form-grid .field .field-help {
  display: block;
  margin-top: 6px;
  color: #8d6a79;
  font-size: 11px;
  line-height: 1.35;
}

.profile-form-grid .field input,
.profile-form-grid .field select,
.profile-form-grid .field textarea {
  width: 100%;
  border: 1px solid #ffcddc;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  background: #fff8fb;
  color: var(--text);
}

.profile-form-grid .field select[multiple] {
  min-height: 120px;
  padding: 8px 10px;
}

.field-full {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-field > span {
  font-size: 14px !important;
}

.checkbox-field input {
  width: auto !important;
}

.list-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-user-avatar {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(130deg, #ff86af, #ff9b4b);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

.list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.inline-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid #ffc4d6;
}

.table-list {
  width: 100%;
  border-collapse: collapse;
}

.table-list th,
.table-list td {
  padding: 12px;
  border-bottom: 1px solid #ffe0e9;
  text-align: left;
}

.table-list th {
  color: #6d4e5c;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-head {
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-head .avatar {
  width: 92px;
  height: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 3px solid #ffb2c6;
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

.live-current-room {
  border: 1px solid #ffd4e1;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  background: #fff7fb;
}

.live-video-stage {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.live-video-card {
  border: 1px solid #ffd6e4;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.live-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #251721;
}

.live-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1d1219;
}

.live-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f8d7e2;
  font-size: 13px;
}

.live-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.live-video-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-block {
  margin-top: 14px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.album-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ffd6e4;
  background: #fff5f9;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.album-item img,
.album-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-item .video-tag {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 6px;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(28, 9, 19, 0.5);
  display: grid;
  place-items: center;
  padding: 18px;
}

.profile-modal-card {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid #ffd4e1;
  background: #fff;
  box-shadow: 0 18px 40px rgba(43, 9, 26, 0.28);
  position: relative;
}

.profile-modal-close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid #ffd1df;
  border-radius: 50%;
  background: #fff;
  color: #5a3342;
  cursor: pointer;
  z-index: 2;
}

.profile-modal-content {
  clear: both;
  padding: 14px;
}

.profile-view-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.profile-view-hero {
  border: 1px solid #ffdbe7;
  border-radius: 16px;
  padding: 12px;
}

.profile-view-main-photo {
  width: 100%;
  height: clamp(240px, 35vw, 420px);
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #ffd3e2;
  background: #fff7fb;
}

.profile-view-title {
  margin: 10px 0 2px;
  font-size: 28px;
  font-weight: 800;
}

.profile-view-subtitle {
  color: var(--subtext);
  margin-bottom: 10px;
}

.profile-view-bio {
  margin: 0;
  line-height: 1.5;
}

.profile-view-side {
  display: grid;
  gap: 10px;
  align-self: start;
}

.profile-view-card {
  border: 1px solid #ffdbe7;
  border-radius: 14px;
  padding: 12px;
  background: #fff9fc;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-soft {
  border: 1px solid #ffd2df;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: #5e3e4d;
  font-size: 12px;
  font-weight: 600;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-detail-item {
  border: 1px solid #ffe2eb;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.profile-detail-item strong {
  display: block;
  font-size: 12px;
  color: #745565;
}

.profile-detail-item span {
  font-size: 13px;
}

.media-viewer-card {
  width: min(980px, 100%);
}

.media-viewer-content {
  min-height: 260px;
  display: grid;
  place-items: center;
}

.media-viewer-content img,
.media-viewer-content video {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 14px;
  border: 1px solid #ffd7e4;
  background: #000;
}

.stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat {
  border: 1px solid #ffdbe6;
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 108px;
  background: #fff8fb;
}

.stat strong {
  font-size: 26px;
  display: block;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-wrap {
  width: min(1040px, 100%);
  max-width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(196, 38, 78, 0.14);
  background: #fff;
}

/* ── Painel esquerdo (hero) ── */
.login-hero {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.login-hero img {
  width: 210px;
  max-width: 100%;
}

.login-hero h1 {
  margin: 8px 0 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.5px;
}

.login-hero p {
  margin: 0;
  line-height: 1.6;
}

.login-hero-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.login-hero-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}

.login-hero-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 16px rgba(255, 59, 92, 0.28);
  font-size: 17px;
}

/* ── Painel direito (formulário) ── */
.login-form {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Abas Entrar / Criar conta */
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.login-tab {
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--subtext);
  font-weight: 800;
  font-size: 15px;
  padding: 11px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.login-tab.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 18px rgba(255, 59, 92, 0.28);
}

.login-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-panel[hidden] {
  display: none;
}

.login-panel-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.4px;
}

.login-panel-head .sub {
  margin: 4px 0 0;
  color: var(--subtext);
}

.login-form form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Campos (escopados ao login para não afetar outras telas) */
.login-form .field {
  display: grid;
  gap: 6px;
}

.login-form .field > span {
  color: #5f4451;
  font-weight: 700;
  font-size: 14px;
}

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

.login-form .field input::placeholder {
  color: #b69aa6;
}

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

/* Campo de senha com botão de mostrar/ocultar */
.field-password {
  position: relative;
}

.field-password input {
  padding-right: 48px;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #b07d8e;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.pw-toggle:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

.pw-toggle.is-visible {
  color: var(--primary);
}

/* Linha "Esqueci a senha" */
.login-row-end {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Botão de largura total */
.btn-block {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
}

/* Divisor "ou continue com" */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--subtext);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 2px 0;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

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

.social-login-btn {
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-login-btn:hover {
  transform: translateY(-1px);
}

.facebook-login-btn {
  background: #1877f2;
  color: #fff;
  box-shadow: 0 10px 18px rgba(24, 119, 242, 0.22);
}

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

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

.form-feedback {
  min-height: 0;
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 600;
}

.form-feedback:empty {
  display: none;
}

.form-feedback.is-info {
  color: #7a5a68;
}

.form-feedback.is-success {
  color: #137c40;
}

.form-feedback.is-error {
  color: #b3261e;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-form .hint {
  color: var(--subtext);
  font-size: 13px;
  text-align: center;
  margin: 4px 0 0;
}

.login-back {
  text-align: center;
  color: var(--subtext);
  font-weight: 700;
  font-size: 13px;
}

.login-back:hover {
  color: var(--primary);
}

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    grid-template-columns: 220px 1fr 220px;
  }

  .top-create-btn {
    height: 34px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

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

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

  .topbar {
    position: static;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px 10px;
  }

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

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

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

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

  .top-actions {
    gap: 6px;
  }

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

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

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

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

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

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

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

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

  .badge {
    display: none;
  }

  .right-rail {
    display: none;
  }

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

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

  .card {
    border-radius: 18px;
  }

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

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

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

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

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

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

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

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

  .login-wrap {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 22px;
  }

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

  .login-hero {
    padding: 26px 22px 22px;
    text-align: center;
    align-items: center;
  }

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

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

  .login-hero-list {
    display: none;
  }

  .login-form {
    padding: 22px 18px 26px;
  }

  .login-panel-head h2 {
    font-size: 24px;
  }

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

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

  .search-inline {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

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

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

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

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

  .story {
    min-width: 76px;
  }

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

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

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

  .profile-modal {
    padding: 8px;
  }

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