body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #7c6659 url("/static/garage.jpg") center top / cover no-repeat fixed;
  color: #1f2937;
}

body.page-feed,
body.page-my_live {
  --feed-column-width: 560px;
  background: #2b2b2b url("/static/live-luci.png") center top / cover no-repeat fixed !important;
}

@media (min-width: 769px) {
  body.page-feed,
  body.page-my_live {
    --feed-column-width: 720px;
  }
}

body.page-profile.theme-garage {
  background: #7c6659 url("/static/garage.jpg") center top / cover no-repeat fixed;
}

body.page-profile.theme-street {
  background: #4d4d4d url("/static/street.webp") center top / cover no-repeat fixed;
}

body.page-profile.theme-disco {
  background: #1a0818 url("/static/disco3.jpg?v=2026061412") center top / cover no-repeat fixed;
}

body.page-profile.theme-black {
  background: #000 center top / cover no-repeat fixed;
}

@media (max-width: 768px) {
  body {
    background-image: none !important;
    background-attachment: scroll !important;
    background-color: #7c6659;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--page-bg-lock-h, 100vh);
    z-index: -1;
    pointer-events: none;
    background: #7c6659 url("/static/garage.jpg") center top / cover no-repeat;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  body.page-feed,
  body.page-my_live {
    background-color: #2b2b2b;
  }

  body.page-feed::before,
  body.page-my_live::before {
    background: #2b2b2b url("/static/live-luci.png") center top / cover no-repeat;
  }

  body.page-profile.theme-garage {
    background-color: #7c6659;
  }

  body.page-profile.theme-garage::before {
    background: #7c6659 url("/static/garage.jpg") center top / cover no-repeat;
  }

  body.page-profile.theme-street {
    background-color: #4d4d4d;
  }

  body.page-profile.theme-street::before {
    background: #4d4d4d url("/static/street.webp") center top / cover no-repeat;
  }

  body.page-profile.theme-disco {
    background-color: #1a0818;
  }

  body.page-profile.theme-disco::before {
    background: #1a0818 url("/static/disco3.jpg?v=2026061412") center top / cover no-repeat;
  }

  body.page-profile.theme-black {
    background-color: #000;
  }

  body.page-profile.theme-black::before {
    background: #000 center top / cover no-repeat;
  }
}

.topbar {
  background:
    linear-gradient(135deg, #0f0f10 0%, #1a1a1d 35%, #3b0f16 70%, #7a1527 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 16px;
}

.garage-link {
  color: #ffd166;
  text-decoration: none;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
  font-weight: 700;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000, 0 0 10px rgba(255, 72, 72, 0.6);
  z-index: 3;
  pointer-events: none;
}

.garage-link--live {
  text-transform: none;
}

.garage-link--chatter {
  text-transform: none;
}

.banner {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #ffd166;
  letter-spacing: 1.8px;
  text-transform: none;
  text-shadow: 0 2px 0 #000, 0 0 10px rgba(255, 72, 72, 0.5);
}

.banner--brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffd166;
}

.banner--mobile {
  display: none;
  align-items: center;
  gap: 8px;
  color: #ffd166;
}

.topbar-brand-desktop {
  display: inline-flex;
}

.topbar-brand-mobile {
  display: none;
}

.banner-star {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.banner-text {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-shadow: 0 2px 0 #000, 0 0 10px rgba(255, 72, 72, 0.5);
}

body.theme-black .garage-link,
.garage-link.home-style-black {
  text-transform: none;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.nav a {
  color: #f8f9fa;
  text-decoration: none;
  font-weight: 600;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.mail-button {
  margin-right: 10px;
}

.mail-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.alert-nav-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.mail-badge {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffd166;
  color: #1f2937;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.live-link {
  margin-right: 0;
}

.putup-link {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
}

.feed-card[id^="post-"] {
  scroll-margin-top: 72px;
  scroll-margin-bottom: 24px;
}

.feed-top-actions {
  position: fixed;
  left: max(12px, calc((100vw - var(--feed-column-width, 560px)) / 2 - 120px));
  top: 86px;
  z-index: 900;
  display: grid;
  gap: 14px;
  justify-items: start;
  align-items: start;
}

@media (min-width: 769px) {
  body.page-feed .feed-top-actions {
    position: fixed;
    left: 12px;
    top: 86px;
    display: grid;
    gap: 14px;
    justify-items: start;
    align-items: start;
    width: auto;
    margin: 0;
    z-index: 900;
  }
}

body.page-feed .feed-top-actions .putup-link {
  width: auto;
  background: linear-gradient(135deg, #0f0f10 0%, #1a1a1d 35%, #3b0f16 70%, #7a1527 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
}

body.page-feed .feed-top-actions .putup-link:visited,
body.page-feed .feed-top-actions .putup-link:hover,
body.page-feed .feed-top-actions .putup-link:active,
body.page-feed .feed-top-actions .putup-link:focus {
  background: linear-gradient(135deg, #0f0f10 0%, #1a1a1d 35%, #3b0f16 70%, #7a1527 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
}

.feed-filter-wrap summary {
  list-style: none;
  display: inline-block;
  width: auto;
}

.feed-filter-wrap summary::-webkit-details-marker {
  display: none;
}

.feed-filter-wrap {
  position: relative;
  width: auto;
  z-index: 1;
}

.feed-fan-wrap {
  z-index: 2;
}

.feed-top-actions > .feed-filter-wrap:not(.feed-fan-wrap)[open] {
  z-index: 100;
}

.feed-fan-wrap[open] {
  z-index: 50;
}

.feed-filter-form {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  margin-top: 6px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  border: 1px solid #d1d5db;
  min-width: 150px;
  z-index: 101;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.feed-filter-form .home-style-option {
  color: #000;
}

.feed-filter-form .home-style-option:has(input:checked) {
  color: #000;
}

.feed-filter-form .feed-action-btn {
  margin-top: 8px;
  width: 100%;
  min-width: 0;
  color: #000;
  background: #f9fafb;
  border: 1px solid #374151;
}

.feed-filter-form input[type="text"] {
  margin: 6px 0 0;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #fff;
  color: #000;
}

.feed-filter-form input[type="text"]::placeholder {
  color: #6b7280;
  opacity: 1;
}

.feed-filter-form input[type="text"]:-webkit-autofill,
.feed-filter-form input[type="text"]:-webkit-autofill:hover,
.feed-filter-form input[type="text"]:-webkit-autofill:focus {
  -webkit-text-fill-color: #000;
  box-shadow: 0 0 0 1000px #fff inset;
}

.feed-fan-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  margin-top: 6px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(15, 15, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 160px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 51;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.feed-fan-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed-fan-list li + li {
  margin-top: 6px;
}

.feed-fan-list a {
  color: #fff;
  text-decoration: none;
}

.feed-fan-list a:hover {
  text-decoration: underline;
}

.feed-fan-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.nav form {
  margin: 0;
}

.logout-hand {
  width: auto;
  margin: 0;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  position: relative;
}

.logout-hand:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.logout-hand::after {
  content: "logout";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 6px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.logout-hand:hover::after {
  opacity: 1;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 12px;
}

body.page-feed .container {
  max-width: var(--feed-column-width, 560px);
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.privacy-doc .privacy-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #1f2937;
}

.privacy-doc .privacy-body h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: #111827;
}

.privacy-doc .privacy-body ul {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.25rem;
}

.privacy-doc .privacy-body li + li {
  margin-top: 0.35rem;
}

.privacy-doc .privacy-updated {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.privacy-doc .privacy-notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e6;
  border: 1px solid #fcd34d;
  color: #78350f;
  font-size: 0.88rem;
}

.privacy-doc .privacy-footer-link {
  margin-top: 1.25rem;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.privacy-doc .privacy-read-ok {
  color: #1877f2;
  font-weight: 600;
}

.privacy-accept {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.privacy-accept input {
  width: auto;
  margin: 3px 0 0;
  flex-shrink: 0;
}

.privacy-accept-text {
  min-width: 0;
}

.privacy-accept-text a {
  color: #1877f2;
  text-decoration: none;
}

.privacy-accept-text a:hover {
  text-decoration: underline;
}

.register-legal-accepts {
  display: grid;
  gap: 2px;
  margin: 12px 0 8px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.register-legal-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
}

.auth-switch-line {
  margin: 14px 0 0;
  font-size: 0.88rem;
  text-align: center;
}

.auth-inline-link {
  color: #1877f2;
  text-decoration: none;
  font-weight: 600;
}

.auth-inline-link:hover {
  text-decoration: underline;
}

.auth-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.auth-legal-links--login {
  justify-content: space-between;
  align-items: center;
}

.auth-legal-links a {
  font-size: 0.88rem;
  font-weight: 600;
}

.forgot-password-link {
  margin-left: 10px;
  white-space: nowrap;
  color: #1877f2;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.forgot-password-link:hover {
  text-decoration: none;
}

.register-legal-accepts .privacy-hint {
  margin: 0 0 8px 24px;
}

.privacy-accept--locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.privacy-hint {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #65676b;
}

.login-privacy-link {
  margin-top: 14px;
  font-size: 0.88rem;
  text-align: center;
}

.login-privacy-link a {
  color: #1877f2;
}

.legal-doc-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.legal-doc-links a {
  color: #1877f2;
  text-decoration: none;
}

.legal-doc-links a:hover {
  text-decoration: underline;
}

.privacy-doc .legal-doc-links a {
  color: #1d4ed8;
}

.guide-doc .guide-intro {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.guide-first-banner {
  margin: 0 0 1rem;
  padding: 12px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
  color: #fff;
  font-weight: 600;
  line-height: 1.45;
}

.guide-toc {
  margin: 0 0 1.25rem;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(15, 15, 16, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.guide-toc h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.guide-toc li + li {
  margin-top: 0.25rem;
}

.guide-toc a {
  color: #7a1527;
  text-decoration: none;
  font-weight: 600;
}

.guide-toc a:hover {
  text-decoration: underline;
}

.guide-section {
  scroll-margin-top: 88px;
}

.guide-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-done-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 180px;
}

.legal-sep {
  color: #9ca3af;
  user-select: none;
}

.privacy-accept .legal-sep {
  margin: 0 2px;
}

.privacy-accept a + .legal-sep {
  margin-left: 4px;
}

@media (max-width: 768px) {
  .register-legal-accepts {
    gap: 6px;
    margin-bottom: 10px;
    padding: 14px 12px;
  }

  .register-legal-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .auth-legal-links {
    margin-top: 16px;
    padding-top: 14px;
    padding-bottom: 4px;
  }

  .auth-legal-links--login {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .auth-legal-links a {
    font-size: 0.9rem;
    padding: 4px 2px;
  }

  .site-footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .privacy-accept {
    align-items: flex-start;
    font-size: 0.86rem;
    line-height: 1.45;
    gap: 10px;
  }

  .privacy-accept input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
  }

  .register-legal-accepts .privacy-hint {
    margin: 0 0 10px 28px;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .register-submit {
    margin-top: 4px;
  }
}

.site-footer {
  margin: 24px auto 20px;
  padding: 12px 16px;
  max-width: var(--feed-column-width, 560px);
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a {
  color: #9ca3af;
  text-decoration: none;
}

.site-footer a:hover {
  color: #e5e7eb;
  text-decoration: underline;
}

body.page-informativa_privacy .site-footer,
body.page-termini_condizioni .site-footer {
  display: none;
}

.register-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input, textarea, button, select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 10px;
}

button, .button-link {
  background: #1877f2;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.feed-create-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.feed-create-form textarea {
  width: 100%;
}

.feed-action-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.feed-upload-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
}

.feed-action-row .onair-btn {
  align-self: center;
}

.feed-upload-actions input[type="file"] {
  display: none;
}

.upload-btn {
  min-width: 96px;
  text-align: center;
  color: #ffffff;
}

.feed-action-btn {
  width: auto;
  min-width: 110px;
  padding: 7px 12px;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #0f0f10 0%, #1a1a1d 35%, #3b0f16 70%, #7a1527 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.onair-btn {
  min-width: 100px;
}

.post-like-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}

.post-media-grid--single-shot {
  display: flex;
  justify-content: center;
}

.post-media-grid--single-shot img {
  width: auto;
  max-width: min(100%, 340px);
  max-height: 340px;
  object-fit: contain;
}

.preview-wrap {
  display: none;
  width: 100%;
  margin-top: 8px;
}

.preview-wrap.is-visible {
  display: block;
}

.preview-label {
  grid-column: 1 / -1;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #1f2937;
}

.post-media-grid img,
.post-media-grid video {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ffffff;
}

.post-media-grid img {
  cursor: pointer;
}

.shot-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 1500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.shot-popup.is-open {
  display: flex;
}

.shot-popup-inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.shot-popup-inner img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 10px;
  border: 2px solid #ffffff;
}

.shot-popup-close {
  width: auto;
  margin: 0;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  border: 1px solid #ffffff;
}

.post-like-form .feed-action-btn {
  font-size: 14px;
}

.vibes-hand-btn {
  min-width: 64px;
  font-size: 24px !important;
  line-height: 1;
  position: relative;
  z-index: 1;
  padding: 5px 10px;
}

.vibes-hand-btn::after {
  content: "Vibes";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 6px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

.vibes-hand-btn:hover::after {
  opacity: 1;
}

.post-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.post.feed-card {
  position: relative;
  margin-bottom: 24px;
}

.post-edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.post-edit-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.post-edit-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.post-content-text {
  margin: 0 0 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-edit-textarea {
  width: 100%;
  min-height: 96px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.post-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.post--editable .post-head {
  padding-right: 42px;
}

.avatar, .avatar-xs {
  border-radius: 50%;
  object-fit: cover;
}

.avatar { width: 50px; height: 50px; }
.avatar-xs { width: 28px; height: 28px; }
.avatar-large { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }

.profile-avatar-zoom {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 50%;
  line-height: 0;
}

.profile-avatar-zoom:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.profile-avatar-zoom .avatar-large {
  pointer-events: none;
}

.profile-head .profile-banner {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.profile-head {
  background: transparent;
  box-shadow: none;
}

.profile-meta {
  margin-top: -50px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.profile-top-boxes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 6px 0 12px;
}

.profile-actions-stack .follow-form-center,
.profile-actions-stack .profile-chat-wrap {
  display: flex;
  justify-content: center;
  margin: 0;
  width: 100%;
}

.follow-form-center {
  display: flex;
  justify-content: center;
  margin: 6px 0 12px;
}

.follow-vintage-btn {
  width: auto;
  margin: 0;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #ffd166;
  background: linear-gradient(180deg, #0f0f10 0%, #1a1a1d 60%, #252529 100%);
  color: #ffd166;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 4px rgba(0, 0, 0, 0.32);
  filter: none;
  position: relative;
}

.follow-vintage-btn:hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ctext y='22' font-size='22'%3E%F0%9F%A4%9F%3C/text%3E%3C/svg%3E") 6 2, pointer;
}

.follow-vintage-btn.is-fan::after {
  content: "🤟 Leave";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 6px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.follow-vintage-btn.is-fan:hover::after {
  opacity: 1;
}

a.follow-vintage-btn.my-fans-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffd166;
  cursor: pointer;
}

a.follow-vintage-btn.my-fans-btn:hover {
  filter: brightness(1.08);
}

.my-fans-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.my-fans-intro {
  margin: 0 0 16px;
  opacity: 0.9;
}

.my-fans-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.my-fans-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
}

.my-fans-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.my-fans-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.my-fans-name {
  font-weight: 700;
}

.my-fans-username {
  font-size: 13px;
  opacity: 0.75;
  margin-left: auto;
}

.my-fans-empty {
  padding: 16px;
  text-align: center;
  opacity: 0.85;
}

.follow-vintage-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.contact-box,
.coordinate-box {
  display: block;
  width: fit-content;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.contact-box h3,
.coordinate-box h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.profile-text {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
}

.profile-text h2,
.profile-text p {
  margin: 0;
}

.profile-text p {
  margin-top: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
  gap: 10px;
  justify-content: start;
}

.grid img, .grid video {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.profile-media-item {
  cursor: pointer;
}

#profile-popup-image,
#profile-popup-video {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 10px;
  border: 2px solid #ffffff;
}

#profile-popup-image.profile-popup-avatar {
  width: min(78vw, 340px);
  height: min(78vw, 340px);
  max-width: min(90vw, 340px);
  max-height: min(90vw, 340px);
  border-radius: 50%;
  object-fit: cover;
}

#profile-popup-video {
  display: none;
}

.media-card {
  background: transparent;
  box-shadow: none;
  padding-top: 8px;
}

.profile-media-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
  align-items: start;
}

.profile-media-left .media-tag {
  margin-top: 0;
}

.profile-media-left .grid + .media-tag-btn {
  margin-top: 28px;
}

.profile-media-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.calendar-thumb-btn {
  width: 220px;
  margin: 0;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.calendar-thumb-btn img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.calendar-popup-inner {
  align-items: stretch;
  width: min(820px, 92vw);
}

.calendar-panel {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
}

.calendar-form {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.calendar-events-list {
  max-height: 340px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.calendar-event-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  background: #fafafa;
}

.notif-profile-link-wrap {
  margin: 8px 0 0;
}

.notif-profile-link {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.notif-profile-link:hover {
  text-decoration: underline;
}

.notifications-hint {
  margin: 0 0 14px;
  opacity: 0.85;
  font-size: 14px;
}

.notification-item {
  margin-bottom: 12px;
}

.notification-item--unread {
  border-left: 3px solid #ffd166;
  padding-left: 10px;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.notification-action-form {
  margin: 0;
}

.notification-delete-btn {
  background: rgba(120, 20, 30, 0.85);
}

.notification-remember-btn {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
}

.notification-remember-done {
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
}

.profile-remember-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  margin-left: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-remember-tag:hover {
  filter: brightness(1.08);
}

.profile-owner-toolbar {
  margin-top: 8px;
  width: 100%;
}

.profile-owner-toolbar .profile-edit-tag,
.profile-owner-toolbar .profile-remember-tag {
  margin-top: 0;
  margin-left: 0;
}

.profile-contact-us-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font: inherit;
}

.contact-us-label--mobile {
  display: none;
}

.toolbar-label--mobile {
  display: none;
}

@media (min-width: 769px) {
  .profile-owner-toolbar {
    display: grid;
    grid-template-columns: auto auto auto auto 1fr auto;
    align-items: center;
    column-gap: 10px;
  }

  .profile-owner-toolbar-left {
    display: contents;
  }

  .profile-owner-settings {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .profile-owner-remember {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .profile-owner-mylive {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
  }

  .profile-owner-guide {
    grid-column: 4;
    grid-row: 1;
    justify-self: start;
  }

  .profile-owner-contact {
    grid-column: 6;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 768px) {
  .profile-owner-toolbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    overflow: hidden;
  }

  .profile-owner-toolbar-left {
    display: contents;
  }

  .profile-owner-settings,
  .profile-owner-remember,
  .profile-owner-mylive,
  .profile-owner-guide,
  .profile-owner-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    max-height: 36px;
    margin: 0;
    padding: 2px 4px;
    font-size: 9px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    box-sizing: border-box;
  }

  .profile-owner-toolbar .profile-remember-tag,
  .profile-owner-toolbar .profile-edit-tag,
  .profile-owner-toolbar .profile-contact-us-btn {
    min-height: 36px;
    max-height: 36px;
    padding: 2px 4px;
    font-size: 9px;
    line-height: 1.1;
  }

  .toolbar-label--desktop,
  .contact-us-label--desktop {
    display: none;
  }

  .toolbar-label--mobile,
  .contact-us-label--mobile {
    display: inline;
  }

  .contact-us-popup-inner {
    width: min(520px, calc(100vw - 40px));
  }

  .contact-us-panel {
    padding: 12px;
  }
}

.shot-popup-inner.contact-us-popup-inner {
  align-items: stretch;
  width: min(520px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.contact-us-popup-inner .contact-us-panel {
  width: 100%;
  min-width: 100%;
}

.contact-us-panel {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-sizing: border-box;
}

.contact-us-panel h3 {
  margin: 0 0 12px;
}

.contact-us-form {
  display: grid;
  gap: 6px;
}

.contact-us-form label {
  font-weight: 700;
  font-size: 14px;
}

.contact-us-form input,
.contact-us-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.contact-us-char-count {
  margin-top: -2px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #6b7280;
  text-align: right;
}

.contact-us-error {
  margin: 0;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}

.my-live-intro {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.my-live-card {
  margin-bottom: 12px;
}

.remember-me-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.remember-me-intro {
  margin: 0 0 16px;
  opacity: 0.9;
}

.remember-agenda {
  display: grid;
  gap: 10px;
}

.remember-event-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.remember-event-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.remember-dates {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  font-size: 14px;
}

.fan-style-locked-label {
  margin: 12px 0 8px;
  font-size: 15px;
}

.fan-style-warning {
  color: #dc2626;
  font-weight: 600;
  border-color: #fca5a5;
  background: #fef2f2;
}

.field-hint {
  margin: 4px 0 10px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.9;
}

.edit-profile-preview {
  margin: 8px 0 4px;
}

.edit-profile-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.fan-style-hint {
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(26, 58, 92, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.35);
  font-size: 13px;
  line-height: 1.45;
}

.remember-sent-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  font-size: 12px;
  font-weight: 600;
}

.media-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #ffffff;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
}

.media-tag-btn {
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: none;
  font: inherit;
}

.media-tag-btn:hover,
.media-tag-btn:focus {
  background: rgba(255, 255, 255, 0.98);
  outline: 2px solid rgba(255, 209, 102, 0.6);
}

.media-tag-btn .media-tag-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(15, 15, 16, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 10;
}

.media-tag-btn:hover .media-tag-tooltip,
.media-tag-btn:focus .media-tag-tooltip {
  opacity: 1;
  visibility: visible;
}

.profile-gallery-page {
  background: transparent;
  box-shadow: none;
}

.profile-gallery-back {
  margin: 0 0 12px;
}

.profile-gallery-back a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.profile-gallery-back a:hover {
  text-decoration: underline;
}

.profile-gallery-title {
  margin: 0 0 16px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.profile-gallery-grid {
  margin-bottom: 24px;
}

.profile-edit-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ffffff;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2937;
  font-weight: 700;
  font-size: 8px;
}

.small {
  font-size: 12px;
  color: #6b7280;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin: 8px 0 12px;
}

.checkline input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.home-style-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 12px;
}

.home-style-option {
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  cursor: pointer;
}

.home-style-option:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.home-style-option input[type="radio"] {
  width: auto;
  margin: 3px 0 0;
  flex-shrink: 0;
}

.home-style-option-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.home-style-option-title {
  font-size: 0.98rem;
  color: #111827;
}

.home-style-option-desc {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #4b5563;
  font-weight: 400;
}

.home-style-option-desc--locked {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f4f6;
}

.flash-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.flash {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
}

.flash-popup {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(15, 15, 16, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  animation: popupFade 2.8s ease forwards;
}

.flash-popup-welcome {
  max-width: min(92vw, 420px);
  text-align: center;
  line-height: 1.5;
  font-size: 15px;
  padding: 14px 18px;
  animation: popupFadeWelcome 6.5s ease forwards;
}

.flash-popup-welcome--persist {
  animation: popupFadeWelcomeIn 0.35s ease forwards;
}

.flash-popup-message {
  margin: 0 0 12px;
}

.flash-popup-close {
  display: inline-block;
  margin: 0;
  padding: 8px 22px;
  border: none;
  border-radius: 8px;
  background: #ffd166;
  color: #1f2937;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.flash-popup-close:hover {
  filter: brightness(1.05);
}

@keyframes popupFadeWelcomeIn {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes popupFadeWelcome {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  8% { opacity: 1; transform: translate(-50%, 0); }
  88% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}

@keyframes popupFade {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  10% { opacity: 1; transform: translate(-50%, 0); }
  85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}

.chat-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.chat-button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.profile-chat-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
}

.profile-actions-stack .profile-chat-btn {
  padding: 10px 22px;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.profile-chat-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.profile-chat-btn:hover {
  filter: brightness(1.08);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.messenger {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 12px;
  align-items: stretch;
  min-height: calc(100vh - 120px);
  max-width: 960px;
  margin: 0 auto;
}

.messenger--list {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
}

.messenger-list-hint {
  order: 1;
  flex: 0 0 auto;
  padding: 12px 16px;
}

.messenger-list-hint p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.messenger--list .messenger-sidebar {
  order: 2;
  flex: 1;
  min-height: 0;
}

.messenger--list .messenger-main {
  display: none;
}

.messenger--list .messenger-conv-list {
  flex: 1;
  max-height: none;
  overflow-y: auto;
}

.messenger-placeholder--desktop {
  display: none;
}

.messenger--thread {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
}

.messenger--thread .messenger-list-hint {
  display: none;
}

.messenger--thread .messenger-main {
  order: 2;
  display: flex;
  min-height: 0;
  margin-bottom: 0;
}

.messenger-main.card {
  margin-bottom: 0;
}

.messenger--thread .messenger-sidebar {
  order: 1;
}

.messenger-sidebar {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.messenger-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.messenger-title {
  margin: 0;
  font-size: 1.1rem;
}

.messenger-back {
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.messenger-conv-list {
  overflow-y: auto;
  max-height: min(70vh, 560px);
}

.messenger-conv {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
  position: relative;
}

.messenger-conv:hover {
  background: #f9fafb;
}

.messenger-conv.is-active {
  background: #e0e7ff;
}

.messenger-conv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.messenger-conv-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.messenger-conv-name {
  font-weight: 700;
  font-size: 14px;
}

.messenger-conv-preview {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messenger-conv-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.messenger-empty-sidebar {
  padding: 12px;
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.messenger-main {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}

.messenger-thread-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
  flex-shrink: 0;
}

.messenger-thread-back {
  display: none;
}

.messenger-thread-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}

.messenger-thread-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.messenger-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #eef0f4;
  overscroll-behavior: contain;
}

.messenger-empty-thread,
.messenger-placeholder {
  margin: 0;
  padding: 20px;
  color: #6b7280;
  font-size: 14px;
}

.msg-row {
  display: flex;
}

.msg-row-sent {
  justify-content: flex-end;
}

.msg-row-received {
  justify-content: flex-start;
}

.msg-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.msg-row-sent .msg-bubble {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-row-received .msg-bubble {
  background: #fff;
  color: #1f2937;
  border-bottom-left-radius: 4px;
}

.msg-body {
  margin: 0 0 4px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.4;
}

.msg-time {
  font-size: 10px;
  opacity: 0.85;
}

.messenger-composer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.messenger-composer .messenger-send-btn,
.messenger-composer .feed-action-btn {
  margin: 0;
  align-self: center;
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.messenger-composer textarea {
  flex: 1;
  resize: vertical;
  min-height: 44px;
  max-height: 160px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 14px;
}

.messenger-send-btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .messenger--thread {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .messenger--list {
    min-height: auto;
  }

  .messenger--list .messenger-sidebar {
    max-height: none;
  }

  .messenger--list .messenger-conv-list {
    max-height: none;
  }

  .messenger--thread .messenger-main {
    min-height: 360px;
  }
}
