*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  display: block;
}

h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

h1, h2, h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 750;
  letter-spacing: -0.02em;
}

h1 { font-size: 18px; margin-top: 28px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }

p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  letter-spacing: -0.02em;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(0px, env(safe-area-inset-top));
}

.header-logo {
  width: 50%;
}

.header-icons {
  display: flex;
  gap: 16px;
}

.header-icons img {
  width: 36px;
  height: auto;
}

body {
  margin: 60px 16px 90px;
  color: #110D2E;
  overflow-x: hidden;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  border-top: 1px solid #DBD2FA;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 0 24px max(0px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.bottom-nav img {
  width: 36px;
  height: 36px;
}

.bottom-nav img:nth-child(3) {
  width: 48px;
  height: 48px;
}

.label-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #DBD2FA;
}

.label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #4D1FE8;
  background-color: white;
  border: 2px solid #4D1FE8;
  border-radius: 6px;
  padding: 12px 12px;
  cursor: pointer;
}

.label.active {
  background-color: #4D1FE8;
  color: white;
  border-color: #4D1FE8;
}

.looking-for {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.looking-for .label-bar {
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.post-likes {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.post-likes-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-likes-group img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.post {
  padding-bottom: 28px;
  border-bottom: 1px solid #DBD2FA;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.live-label {
  animation: live-blink 1.2s linear infinite;
}

.live-label h1,
.live-label h2 {
  color: #4D1FE8;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #4D1FE8;
  flex-shrink: 0;
}

.post-map {
  width: 100%;
  border: 2px solid #4D1FE8;
  border-radius: 6px;
  display: block;
}

.lyrics-card {
  position: relative;
  border: 2px solid #42CAFD;
  border-radius: 6px;
  padding: 28px 48px;
  background: linear-gradient(to bottom, rgba(66, 202, 253, 0.15) 0%, #FFFFFF 25%, #FFFFFF 75%, rgba(66, 202, 253, 0.15) 100%);
  text-align: center;
}

.lyrics-quote {
  font-family: 'Unbounded', sans-serif;
  font-size: 28px;
  color: #42CAFD;
  line-height: 1;
  position: absolute;
}

.lyrics-quote--open {
  top: 12px;
  left: 12px;
}

.lyrics-quote--close {
  bottom: 12px;
  right: 12px;
}

.lyrics-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 750;
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: -0.02em;
  color: #110D2E;
  text-align: center;
}

.video-player {
  position: relative;
  border: 2px solid #00E5A3;
  border-radius: 6px;
  overflow: hidden;
}

.video-player video {
  width: 100%;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(0, 229, 163, 0.3) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
}

.video-play {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  flex-shrink: 0;
}

.video-time {
  font-family: 'Unbounded', sans-serif;
  font-weight: 750;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: white;
}

.label-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.label-pink {
  color: #FF3D5E;
  border-color: #FF3D5E;
  pointer-events: none;
}

.audio-player {
  width: 100%;
  border: 2px solid #FFB400;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(to top, #FFF0CD 0%, #FFFFFF 100%);
}

.audio-play {
  background: none;
  border: none;
  cursor: pointer;
  color: #FFB400;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
}

.audio-waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  cursor: pointer;
}

.audio-waveform .wbar {
  flex: 1;
  border-radius: 2px;
  transition: background 0.1s;
}

.audio-waveform .wbar.played {
  background: #FFB400;
  opacity: 1;
}

.audio-waveform .wbar.unplayed {
  background: #FFB400;
  opacity: 0.35;
}

.audio-time {
  font-family: 'Unbounded', sans-serif;
  font-weight: 750;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: #FFB400;
  flex-shrink: 0;
  min-width: 32px;
  text-align: right;
}

.post {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-info {
  flex: 1;
}

.post-info h3 {
  margin: 0;
}

.subheading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.post-roles {
  color: #FF3D5E;
}

.filter-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  margin-top: 0;
  padding-top: 16px;
}

.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: gray;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 4px;
  padding-bottom: 24px;
}

.page-header--bordered {
  border-bottom: 1px solid #DBD2FA;
}

.page-header h1 {
  margin-top: 0;
}

.page-header-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label-bar.full-width .label {
  flex: 1;
  text-align: center;
}

/* Map */
#map {
  height: calc(100dvh - 370px);
  min-height: 300px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 16px;
  position: relative;
  z-index: 0;
}

.event-popup .leaflet-popup-content-wrapper {
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(17, 13, 46, 0.12);
  border: none;
}

.event-popup .leaflet-popup-content {
  margin: 0;
}

.event-popup .leaflet-popup-tip-container {
  display: none;
}

.event-popup-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  cursor: pointer;
}

.event-popup-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-popup-title {
  margin: 0;
  flex: 1;
  color: #110D2E;
}

.event-popup-time {
  margin: 0;
  font-size: 14px;
  color: #4D1FE8;
}

.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.new-post-form {
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
}

.publish-btn {
  width: 100%;
  padding: 18px;
  background: #FF3D5E;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  margin-top: 28px;
}

.post-type-toggle {
  display: flex;
  border: 2px solid #DBD2FA;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 28px;
}

.post-type-btn {
  flex: 1;
  padding: 18px;
  background: rgba(77, 31, 232, 0.04);
  border: none;
  font-family: 'Unbounded', sans-serif;
  font-weight: 750;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #DBD2FA;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.post-type-btn:first-child {
  border-right: 2px solid #DBD2FA;
}

.post-type-btn.active {
  background: white;
  color: #4D1FE8;
}

.post-fields {
  display: none;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.post-fields.visible {
  display: flex;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-family: 'Unbounded', sans-serif;
  font-weight: 750;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #110D2E;
}

.form-input {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #110D2E;
  background: white;
  border: 2px solid #DBD2FA;
  border-radius: 6px;
  padding: 16px 20px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: #4D1FE8;
}

.form-input::placeholder {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #DBD2FA;
}

.form-textarea {
  resize: none;
  min-height: 200px;
}

.file-type-selector {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 12px;
}

.file-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.file-type-option.faded {
  opacity: 0.2;
}

.file-type-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.file-type-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.file-type-label--audio { color: #FFB400; }
.file-type-label--lyric { color: #42CAFD; }
.file-type-label--video { color: #00E5A3; }

.file-type-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.media-input-area {
  display: none;
}

.media-input-area.visible {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.hidden-file-input {
  display: none;
}

.file-choose-btn {
  width: 100%;
  padding: 16px 20px;
  background: white;
  border: 2px solid #DBD2FA;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #DBD2FA;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-player-state {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.media-player-state.active {
  display: flex;
}

.preview-title {
  color: #4D1FE8;
  margin-bottom: 2px;
}

.preview-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #110D2E;
  margin-bottom: 14px;
}

.file-change-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #DBD2FA;
  border-radius: 6px;
  padding: 10px 16px;
  background: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #DBD2FA;
  cursor: pointer;
  align-self: center;
  margin-top: 12px;
}

.roles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 8px;
}

.role-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #FF3D5E;
  border-radius: 6px;
  color: #FF3D5E;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  cursor: pointer;
  user-select: none;
}

.role-delete-icon {
  display: flex;
  align-items: center;
  pointer-events: none;
}

.add-role-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #DBD2FA;
  border-radius: 6px;
  color: #DBD2FA;
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  background: white;
  cursor: pointer;
}

.add-role-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.add-role-btn.open .add-role-chevron {
  transform: rotate(180deg);
}

.icon-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #DBD2FA;
  border-radius: 6px;
  background: white;
  padding: 0 16px;
  transition: border-color 0.15s;
}

.icon-input-wrapper:focus-within {
  border-color: #4D1FE8;
}

.icon-input-wrapper svg {
  flex-shrink: 0;
}

.icon-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #4D1FE8;
  background: transparent;
}

.icon-input-wrapper input::placeholder {
  color: #DBD2FA;
  font-weight: 800;
}

.icon-input-wrapper input[type="datetime-local"] {
  color: #DBD2FA;
}

.icon-input-wrapper input[type="datetime-local"].has-value {
  color: #4D1FE8;
}

.icon-input-wrapper input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Crect x='1' y='3' width='16' height='14' rx='2' stroke='%23DBD2FA' stroke-width='1.5'/%3E%3Cpath d='M1 7h16' stroke='%23DBD2FA' stroke-width='1.5'/%3E%3Cpath d='M5 1v4M13 1v4' stroke='%23DBD2FA' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 1;
}


.role-option {
  color: #FF3D5E;
  border-color: #FF3D5E;
}

.role-picker {
  border: 2px solid #DBD2FA;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-option:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.custom-role-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.custom-role-row .form-input {
  flex: 1;
  padding: 12px 16px;
}

.submit-btn {
  font-family: 'Unbounded', sans-serif;
  font-weight: 750;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: white;
  background: #4D1FE8;
  border: none;
  border-radius: 6px;
  padding: 18px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}

/* Chats */
.chat-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.chat-search-input {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #FF3D5E;
  background: white;
  border: 2px solid #FF3D5E;
  border-radius: 6px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s;
}

.chat-search-input::placeholder {
  color: #FF3D5E;
  font-weight: 800;
}

.search-filter-bar {
  margin-top: 16px;
}

.chat-search-btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: white;
  background: #FF3D5E;
  border: none;
  border-radius: 6px;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
}

.chat-list {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 0;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.chat-content h3 {
  margin: 0;
}

.chat-preview {
  font-size: 14px;
  margin: 0;
}

.chat-time {
  color: #4D1FE8;
}

.chat-unread {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4D1FE8;
  flex-shrink: 0;
}

.chat-divider {
  border: none;
  border-top: 1px solid #DBD2FA;
  margin: 0;
}

.chat-item {
  text-decoration: none;
  color: inherit;
}

/* Chat conversation page */
body.chat-page {
  margin-bottom: 0;
  padding-bottom: 90px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-date-sep {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #4D1FE8;
  margin: 4px 0;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.message--sent {
  justify-content: flex-end;
}

.message--received {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 72%;
  padding: 14px 16px;
  border-radius: 6px;
}

.message-bubble--sent {
  background: #4D1FE8;
}

.message-bubble--sent p {
  color: white;
  margin: 0;
}

.message-reply-ctx {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 10px;
}

.message-bubble--received {
  border: 2px solid #FF3D5E;
  background: white;
  color: #FF3D5E;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  margin: 0;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.message-time {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #4D1FE8;
  white-space: nowrap;
  padding-bottom: 2px;
}

.video-player--chat {
  max-width: 72%;
  border-color: #00E5A3;
}

.chat-input-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding: 20px 16px;
  background: white;
  border-top: 1px solid #DBD2FA;
}

.chat-message-input {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #FF3D5E;
  background: white;
  border: 2px solid #FF3D5E;
  border-radius: 6px;
  padding: 14px 16px;
  outline: none;
}

.chat-message-input::placeholder {
  color: #FF3D5E;
  font-weight: 800;
}

.chat-attach-btn,
.chat-send-btn {
  border-radius: 6px;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: stretch;
}

.chat-attach-btn {
  background: white;
  border: 2px solid #FF3D5E;
}

.chat-send-btn {
  background: #FF3D5E;
  border: 2px solid #FF3D5E;
  color: white;
}

/* Profile */
.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 8px;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e0e0e0;
  flex-shrink: 0;
}

.profile-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.profile-card-info h1 {
  margin: 0;
}

.profile-bio {
  font-size: 14px;
  color: #4D1FE8;
  margin: 0;
}

.edit-profile-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #FF3D5E;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: white;
  cursor: pointer;
  margin-top: 4px;
  text-align: center;
  text-decoration: none;
}

.follow-btn {
  width: 100%;
  margin-top: 4px;
  text-align: center;
}

.follow-count {
  color: #4D1FE8;
  margin: 0;
}

.profile-dm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-dm-row {
  margin-bottom: 0;
}

.profile-dm-row .form-input {
  border-color: #4D1FE8;
}

.dm-send-btn {
  background: #4D1FE8;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: stretch;
}

.profile-divider {
  border: none;
  border-top: 1px solid #DBD2FA;
  margin: 24px 0;
}

.profile-roles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.profile-latest {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-latest > h2 {
  color: #4D1FE8;
  margin-bottom: 16px;
}

.profile-posts-divider {
  border: none;
  border-top: 1px solid #DBD2FA;
  margin: 20px 0;
}

.profile-latest .post {
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Edit profile */
.edit-profile-section {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 8px;
}

.edit-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  width: fit-content;
}

.edit-avatar-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FF3D5E;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.edit-profile-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.edit-profile-fields h3 {
  margin: 0;
}

.edit-field-btn {
  width: 100%;
  text-align: center;
}

.edit-roles-title {
  margin-top: 28px;
  margin-bottom: 12px;
  color: #110D2E;
}

.edit-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 13, 46, 0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.edit-popup-overlay.active {
  display: flex;
}

.edit-popup {
  background: white;
  border-radius: 6px;
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edit-popup-title {
  margin: 0;
  color: #110D2E;
}

.edit-popup-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.profile-roles-list .label {
  pointer-events: none;
}

a.post-link {
  text-decoration: none;
  color: inherit;
}

/* Comments section */
.comments-section {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #DBD2FA;
  display: flex;
  flex-direction: column;
}

.comments-title {
  color: #4D1FE8;
  margin-bottom: 16px;
}

.comment-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.comment-input-row .form-input {
  flex: 1;
  border-color: #4D1FE8;
}

.comment-input-row .form-input::placeholder {
  color: #4D1FE8;
}

.comment-send-btn {
  background: #4D1FE8;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0 18px;
  cursor: pointer;
  white-space: nowrap;
}

.comment {
  padding: 20px 0;
  border-bottom: 1px solid #DBD2FA;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  flex-shrink: 0;
  object-fit: cover;
}

.comment-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-info h3 {
  margin: 0;
}

.comment-time {
  color: #FF3D5E;
  font-weight: 500;
}

.comment-like {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.comment-like .like-icon {
  width: 20px;
  height: 20px;
}

.comment-like h6 {
  color: #110D2E;
}

/* Post header action buttons (edit + delete) */
.post-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.post-header-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.post-header-btn svg {
  width: 22px;
  height: 22px;
}

.delete-confirm-btn {
  background-color: #FF3D5E;
  border-color: #FF3D5E;
  color: white;
}

.delete-popup-msg {
  margin: 0;
  color: #110D2E;
  font-size: 14px;
}

/* Post view page */
.post-view {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.post .post-likes {
  flex-direction: row-reverse;
}

.post-view .looking-for {
  margin-top: 0;
}

.post-view-date {
  color: #4D1FE8;
}

.post-view-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.post-view-actions .post-likes {
  margin-top: 0;
}

/* Share bottom sheet */
.share-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 13, 46, 0.5);
  z-index: 200;
  align-items: flex-end;
}

.share-overlay.active {
  display: flex;
}

.share-sheet {
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 12px 24px 48px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  touch-action: none;
}

.share-overlay.open .share-sheet {
  transform: translateY(0);
}

.share-drag-handle {
  width: 40px;
  height: 4px;
  background: #DBD2FA;
  border-radius: 2px;
  margin: 0 auto 4px;
  flex-shrink: 0;
}

.share-title {
  color: #4D1FE8;
  margin: 0;
}

.share-socials-title {
  margin: 0;
  color: #110D2E;
}

.share-socials {
  display: flex;
  gap: 28px;
  align-items: center;
}

.share-social-btn {
  color: #110D2E;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.share-social-btn svg {
  width: 30px;
  height: 30px;
}

.post-view-share-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Login page */
body.login-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  margin: 0 16px;
}

.login-logo {
  width: 240px;
  margin-bottom: 24px;
}

.login-tagline {
  line-height: 1.35;
  margin-bottom: 36px;
}

.login-heading {
  margin-bottom: 20px;
  color: #4D1FE8;
}

.login-form {
  width: 100%;
}

.login-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-message {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  min-height: 18px;
}

.login-message--error {
  color: #FF3D5E;
}

.login-message--success {
  color: #00E5A3;
}

.login-forgot {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #4D1FE8;
  cursor: pointer;
  margin-top: 4px;
}

.login-form .publish-btn {
  margin-top: 4px;
  padding: 13px;
}

.login-signup-label {
  font-size: 14px;
  color: #110D2E;
  margin-top: 4px;
}

.login-signup-btn {
  width: 100%;
  padding: 13px;
  background: white;
  border: 2px solid #FF3D5E;
  border-radius: 6px;
  color: #FF3D5E;
  cursor: pointer;
}
