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

:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --card: #ffffff;
  --card-fg: #1a1028;
  --muted: #f0f0f0;
  --muted-fg: #777;
  --primary: #ff6b6b;
  --primary-fg: #fff;
  --secondary: #c4365a;
  --accent: #5b3d99;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(135deg, #ff6b6b, #c4365a, #5b3d99);
  --gradient-brand: linear-gradient(135deg, #ff6b6b, #c4365a, #5b3d99);
  --shadow-card: 0 4px 24px -4px rgba(26, 16, 40, 0.08);
  --shadow-card-hover: 0 12px 40px -8px rgba(26, 16, 40, 0.15);
  --shadow-glow: 0 8px 32px -8px rgba(255, 107, 107, 0.3);
  --radius: 1rem;
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading {
  font-family: 'Sora', sans-serif
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit
}

input,
textarea,
select {
  font-family: inherit
}

img {
  display: block;
  max-width: 100%
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border)
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer
}

.nav-logo svg {
  width: 28px;
  height: 28px;
  fill: var(--primary)
}

.nav-logo span {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px
}

.nav-btn {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  background: transparent;
  color: var(--fg);
  transition: background .2s
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.08)
}

.nav-btn.hero {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow)
}

.nav-btn.hero:hover {
  opacity: .9
}

.nav-hamburger {
  display: none;
  background: none;
  color: var(--fg);
  padding: 8px
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 16px;
  flex-direction: column;
  gap: 8px;
  z-index: 99
}

.nav-mobile.open {
  display: flex
}

@media(max-width:768px) {
  .nav-links {
    display: none
  }

  .nav-hamburger {
    display: block
  }
}

/* Gradient helpers */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.gradient-bg {
  background: var(--gradient)
}

/* Card base */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px)
}

/* Masonry */
.masonry {
  columns: 2;
  gap: 12px
}

@media(min-width:640px) {
  .masonry {
    columns: 3;
    gap: 16px
  }
}

@media(min-width:1024px) {
  .masonry {
    columns: 4
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 12px
}

@media(min-width:640px) {
  .masonry-item {
    margin-bottom: 16px
  }
}

/* Content Card */
.content-card {
  cursor: pointer
}

.content-card img {
  width: 100%;
  object-fit: cover;
  transition: transform .5s
}

.content-card:hover img {
  transform: scale(1.05)
}

.content-card .info {
  padding: 10px
}

.content-card .info h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--card-fg);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.content-card .creator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px
}

.content-card .creator-row img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover
}

.content-card .creator-row span {
  font-size: 11px;
  color: var(--muted-fg)
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center
}

.lock-overlay .lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center
}

.lock-overlay .lock-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary)
}

.type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center
}

.type-badge svg {
  width: 16px;
  height: 16px;
  color: var(--card-fg)
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px
}

.home-feed-section {
  max-width: min(1760px, calc(100vw - 48px));
}

.home-feed-section .cta-box {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.page {
  display: none;
  min-height: 100vh;
  padding-top: 76px;
  padding-bottom: 40px
}

.page.active {
  display: block
}

/* Hero CTA */
.cta-box {
  background: var(--gradient);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  margin-top: 40px
}

.cta-box h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px
}

.cta-box p {
  color: rgba(255, 255, 255, .8);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto
}

.cta-box button {
  background: #fff;
  color: #000;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  transition: opacity .2s
}

.cta-box button:hover {
  opacity: .9
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  margin-top: 40px
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px
}

.footer-inner p {
  font-size: 13px;
  color: var(--muted-fg)
}

/* Search */
.search-wrap {
  max-width: 400px;
  margin: 0 auto 40px;
  position: relative
}

.search-wrap input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 16px;
  border: none;
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  color: var(--card-fg);
  outline: none
}

.search-wrap input::placeholder {
  color: #aaa
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #aaa
}

/* Auth forms */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 60px
}

.auth-form {
  width: 100%;
  max-width: 380px;
  padding: 20px
}

.auth-form .logo {
  text-align: center;
  margin-bottom: 32px
}

.auth-form .logo svg {
  width: 40px;
  height: 40px;
  fill: var(--primary);
  margin: 0 auto 12px
}

.auth-form h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--fg)
}

.auth-form .subtitle {
  text-align: center;
  color: var(--muted-fg);
  font-size: 14px;
  margin-top: 4px
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  margin-top: 16px
}

.auth-form input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-size: 14px;
  outline: none;
  transition: border .2s
}

.auth-form input:focus {
  border-color: var(--primary)
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.3)
}

.auth-form .submit-btn {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-glow);
  transition: opacity .2s
}

.auth-form .submit-btn:hover {
  opacity: .9
}

.auth-form .switch-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted-fg)
}

.auth-form .switch-link a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer
}

.auth-form .switch-link a:hover {
  text-decoration: underline
}

.page#page-dashboard {
  padding-top: 60px;
  /* Ajustado al alto exacto de tu navbar */
}

/* Profile page */
.profile-banner {
  height: 280px; /* Un poco más alto para que la fusión luzca mejor */
  position: relative;
  overflow: hidden;
  margin-top: 0; 
  /* Eliminamos cualquier margen que lo separe del nav */
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 37%, rgba(255, 255, 255, 0.04) 63%), #141418;
  background-size: 400% 100%;
}

/* 2. El degradado de fusión (Fade to Black) */
.profile-banner .overlay,
.profile-banner .banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 10, 10, 0) 0%,
      rgba(10, 10, 10, 0) 42%,
      rgba(10, 10, 10, 0.08) 58%,
      rgba(10, 10, 10, 0.22) 72%,
      rgba(10, 10, 10, 0.46) 84%,
      rgba(10, 10, 10, 0.72) 93%,
      var(--bg) 100%);
  z-index: 2;
  pointer-events: none;
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .28s ease;
}

.profile-banner img.is-ready {
  opacity: 1;
}

.profile-banner.is-loading::before,
.profile-avatar.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.12) 37%, rgba(255, 255, 255, 0.04) 63%);
  background-size: 400% 100%;
  animation: profileShimmer 1.3s ease-in-out infinite;
  z-index: 1;
}

.profile-banner.is-empty::before {
  display: none;
}



.profile-card {
  max-width: 700px;
  margin: -64px auto 0;
  position: relative;
  z-index: 4;
  padding: 0 16px
}

.profile-card-inner {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 32px
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px
}

@media(min-width:768px) {
  .profile-header {
    flex-direction: row;
    text-align: left;
    align-items: flex-start
  }
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid var(--card);
  box-shadow: var(--shadow-card);
  margin-top: -56px;
  flex-shrink: 0;
  background: var(--muted);
  position: relative;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .24s ease;
  position: relative;
  z-index: 2;
}

.profile-avatar img.is-ready {
  opacity: 1;
}

.profile-avatar.is-empty::before {
  display: none;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Esto hace que la foto llene el cuadro sin estirarse */
  display: block;
}

.profile-avatar .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--muted);
  position: relative;
  z-index: 2;
}

@keyframes profileShimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.profile-avatar .placeholder svg {
  width: 40px;
  height: 40px;
  color: #ccc
}

.profile-avatar .placeholder span {
  font-size: 10px;
  color: #aaa
}

.profile-info {
  flex: 1;
  min-width: 0
}

.profile-info h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--card-fg)
}

.profile-info .username {
  color: var(--muted-fg);
  font-size: 14px
}

.profile-info .bio {
  margin-top: 12px;
  color: var(--card-fg);
  font-size: 14px
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-fg)
}

.profile-stats svg {
  width: 16px;
  height: 16px
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0
}

.btn-gradient {
  background: var(--gradient);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: opacity .2s
}

.btn-gradient:hover {
  opacity: .9
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--card-fg);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .2s
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.04)
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  white-space: nowrap;
  transition: opacity .2s
}

/* Social pills */
.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--muted);
  font-size: 12px;
  color: var(--card-fg);
  font-weight: 500
}

/* Friends row */
.friends-row {
  display: flex;
  gap: 12px;
  margin-top: 12px
}

.friend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer
}

.friend-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 107, 107, 0.3);
  transition: border-color .2s
}

.friend-item:hover img {
  border-color: var(--primary)
}

.friend-item span {
  font-size: 10px;
  color: var(--muted-fg);
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

/* Dashboard tabs */
.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  background: var(--card);
  border-radius: 12px;
  padding: 4px;
  box-shadow: var(--shadow-card)
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  background: transparent;
  color: var(--card-fg);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s
}

.tab-btn.active {
  background: var(--muted);
  color: var(--card-fg)
}

.tab-btn svg {
  width: 16px;
  height: 16px
}

.tab-content {
  display: none
}

.tab-content.active {
  display: block
}

.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px
}

.tab-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg)
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 0;
  color: var(--muted-fg)
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  opacity: .3
}

.empty-state p {
  font-size: 14px
}

/* Post item in dashboard */
.post-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px
}

.post-item .thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

.post-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.post-item .thumb svg {
  width: 24px;
  height: 24px;
  color: #ccc
}

.post-item .meta {
  flex: 1;
  min-width: 0
}

.post-item .meta h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--card-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.post-item .meta p {
  font-size: 11px;
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px
}

.post-item .meta p svg {
  width: 12px;
  height: 12px
}

.post-item .delete-btn {
  background: none;
  color: #e55;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s
}

.post-item .delete-btn:hover {
  background: rgba(238, 85, 85, 0.1)
}

.post-item .delete-btn svg {
  width: 16px;
  height: 16px
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto
}

.modal-overlay.open {
  display: flex
}

/* Post Detail Modal */
.post-scroll-container {
  height: 100%;
  width: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;

  /* --- AQUÍ LAS NUEVAS LÍNEAS PARA OCULTAR LA BARRA --- */
  scrollbar-width: none;
  /* Para Firefox */
  -ms-overflow-style: none;
  /* Para Internet Explorer y Edge antiguo */
}

/* Y añade esta nueva regla justo debajo: */
.post-scroll-container::-webkit-scrollbar {
  display: none;
  /* Para Chrome, Safari y Opera */
}

.post-scroll-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5vh 5vw;
  transition: transform 1s cubic-bezier(.22, .8, .24, 1), opacity .4s ease;
  will-change: transform, opacity;
  z-index: 1;
  pointer-events: none
}

.post-scroll-slide.slot-prev,
.post-scroll-slide.slot-next {
  position: absolute;
  inset: 0;
}

.post-scroll-slide.slot-prev {
  transform: translateY(-100%);
}

.post-scroll-slide.slot-current {
  position: relative;
  transform: translateY(0%);
  z-index: 3;
  pointer-events: auto
}

.post-scroll-slide.slot-next {
  transform: translateY(100%);
}

.post-scroll-container.is-moving-next .slot-prev {
  transform: translateY(-200%);
  opacity: 0;
}

.post-scroll-container.is-moving-next .slot-current {
  transform: translateY(-100%);
}

.post-scroll-container.is-moving-next .slot-next {
  transform: translateY(0%);
}

.post-scroll-container.is-moving-prev .slot-prev {
  transform: translateY(0%);
}

.post-scroll-container.is-moving-prev .slot-current {
  transform: translateY(100%);
}

.post-scroll-container.is-moving-prev .slot-next {
  transform: translateY(200%);
  opacity: 0;
}

.post-modal {
  width: fit-content;
  max-width: min(90vw, 760px);
  max-height: 90vh;
  background: #080808;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column
}

.post-modal.comments-open {
  height: min(90vh, 920px);
  min-width: min(72vw, 620px)
}

.post-modal .post-media-shell {
  position: relative;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: #080808;
  transition: max-height .28s ease, min-height .28s ease
}

.post-modal.comments-open .post-media-shell {
  max-height: 40vh
}

.post-modal .post-img {
  width: auto;
  max-width: min(90vw, 760px);
  max-height: 68vh;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  margin: 0 auto;
  transition: max-height .28s ease
}

.post-modal .post-video {
  width: auto;
  max-width: min(90vw, 760px);
  max-height: 68vh;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #050505;
  flex-shrink: 0;
  display: block;
  margin: 0 auto;
  transition: max-height .28s ease
}

.post-modal.comments-open .post-img,
.post-modal.comments-open .post-video {
  max-height: 36vh
}

.post-modal .post-text-stage {
  min-height: min(68vh, 720px);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.post-modal .post-text-stage .dash-post-text-preview {
  min-height: min(52vh, 520px);
  width: 100%;
  border-radius: 0;
}

.post-modal .post-img.blurred {
  filter: blur(20px);
  transform: scale(1.05)
}

.post-modal .locked-preview {
  display: block;
  width: min(90vw, 760px);
  min-height: min(68vh, 720px);
  background-size: cover;
  background-position: center;
  filter: blur(22px);
  transform: scale(1.06);
  opacity: 0.78;
  pointer-events: none;
  user-select: none
}

.post-modal.comments-open .locked-preview {
  min-height: 36vh
}

.post-modal .post-body {
  margin-top: 0;
  padding: 18px 16px 16px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), #fff);
  position: relative;
  z-index: 2
}

.post-modal .locked-preview-media {
  filter: blur(22px);
  transform: scale(1.06);
  opacity: 0.78;
  pointer-events: none;
  user-select: none
}

.post-modal .post-creator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0px;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 44px;
}

.post-modal .post-creator img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0
}

.post-modal .post-creator .name {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--card-fg)
}

.post-modal .post-creator .user {
  font-size: 12px;
  color: var(--muted-fg)
}

.post-modal h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--card-fg);
  line-height: 1.2
}

.post-modal .desc {
  font-size: 13px;
  color: var(--muted-fg);
  margin-top: 4px
}

.post-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 210;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s
}

.post-close:hover {
  background: rgba(255, 255, 255, 1)
}

.post-close svg {
  width: 20px;
  height: 20px;
  color: var(--card-fg)
}

.post-nav {
  position: fixed;
  left: 50%;
  z-index: 210;
  transform: translateX(-50%);
  min-width: 132px;
  height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--card-fg);
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, opacity .2s ease
}

.post-nav:hover {
  background: #fff;
}

.post-nav svg {
  width: 18px;
  height: 18px;
}

.post-nav-prev {
  top: 20px;
}

.post-nav-next {
  bottom: 20px;
}

.scroll-hint {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
  animation: bounce 1.5s infinite
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
  color: var(--muted-fg)
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(6px)
  }
}

.post-modal .post-creator .user {
  font-size: 12px;
  color: var(--muted-fg)
}

.post-modal h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--card-fg)
}

.post-modal .desc {
  font-size: 13px;
  color: var(--muted-fg);
  margin-top: 4px
}

.post-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 210;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s
}

.post-close:hover {
  background: rgba(255, 255, 255, 1)
}

.post-close svg {
  width: 20px;
  height: 20px;
  color: var(--card-fg)
}

/* Lock overlay in modal */
.modal-lock {
  position: absolute;
  inset: -2px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px
}

.modal-lock .pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
  animation: pulse 2s infinite
}

.modal-lock .pulse svg {
  width: 28px;
  height: 28px;
  color: #fff
}

.modal-lock p {
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5)
}

.modal-lock button {
  background: var(--gradient);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3)
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.1)
  }
}

/* Floating toolbar */
.floating-toolbar {
  position: fixed;
  right: 12px;
  bottom: 20px;
  z-index: 210;
  background: var(--gradient);
  border-radius: 16px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4)
}

.floating-toolbar.is-dragging {
  transition: none
}

.floating-toolbar .drag-handle {
  width: 36px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  border-radius: 8px;
  transition: background .2s
}

.floating-toolbar .drag-handle:hover {
  background: rgba(255, 255, 255, 0.2)
}

.floating-toolbar .drag-handle svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.7)
}

.floating-toolbar .sep {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2)
}

.floating-toolbar .tb-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  gap: 2px
}

.floating-toolbar .tb-btn:hover {
  background: rgba(255, 255, 255, 0.1)
}

.floating-toolbar .tb-btn.active {
  background: rgba(255, 255, 255, 0.2)
}

.floating-toolbar .tb-btn svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.8)
}

.floating-toolbar .tb-btn.active svg {
  color: #fff;
  fill: #fff;
  stroke: #fff
}

.floating-toolbar .tb-btn.active svg path,
.floating-toolbar .tb-btn.active svg circle,
.floating-toolbar .tb-btn.active svg line,
.floating-toolbar .tb-btn.active svg polyline {
  stroke: #fff;
  fill: currentColor
}

.floating-toolbar .tb-btn .count {
  font-size: 10px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9)
}

.share-sheet {
  position: fixed;
  right: 72px;
  bottom: 24px;
  z-index: 211;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(320px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 20px;
  background: rgba(14, 14, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px)
}

.share-sheet.open {
  display: grid
}

.share-sheet-btn {
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: background .2s ease, transform .2s ease
}

.share-sheet-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px)
}

.share-sheet-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0
}

/* Comments panel */
.comments-panel {
  margin-top: 16px;
  display: none
}

.comments-panel.open {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: min(38vh, 380px);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  max-height: none;
  overflow: hidden;
  background: rgba(248, 248, 252, 0.95)
}

.comments-panel .stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted-fg);
  margin-bottom: 8px
}

.comments-panel .comment {
  display: flex;
  margin-bottom: 10px
}

.comments-panel .comment.owner {
  justify-content: flex-end
}

.comments-panel .comment-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.05)
}

.comments-panel .comment.owner .comment-bubble {
  background: linear-gradient(135deg, rgba(239, 106, 123, 0.18), rgba(111, 70, 198, 0.18));
  border-bottom-right-radius: 6px
}

.comments-panel .comment:not(.owner) .comment-bubble {
  border-bottom-left-radius: 6px
}

.comments-panel .comment .cuser {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--card-fg);
  display: block;
  margin-bottom: 2px
}

.comments-panel .comment .ctext {
  font-size: 12px;
  color: var(--muted-fg);
  display: block
}

.comments-panel .comment-input {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  background: var(--card);
  border-top: 1px solid rgba(0, 0, 0, 0.06)
}

.comments-panel .comments-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px
}

.comments-panel .comments-list::-webkit-scrollbar {
  width: 6px
}

.comments-panel .comments-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px
}

.comments-panel .comment-input input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--muted);
  border: none;
  font-size: 13px;
  color: var(--card-fg);
  outline: none
}

.comments-panel .comment-input input::placeholder {
  color: #aaa
}

.comments-panel .comment-input button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.comments-panel .comment-input button svg {
  width: 16px;
  height: 16px;
  color: #fff
}

/* Welcome overlay */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px
}

.welcome-card {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  max-width: 380px;
  width: 90vw;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  position: relative
}

.welcome-card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--card-fg);
  margin-bottom: 4px
}

.welcome-card .sub {
  color: var(--muted-fg);
  font-size: 14px;
  margin-bottom: 24px
}

.welcome-card .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.welcome-card .close-btn svg {
  width: 16px;
  height: 16px;
  color: var(--muted-fg)
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px
}

.welcome-feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.welcome-feature .icon svg {
  width: 20px;
  height: 20px;
  color: #fff
}

.welcome-feature h4 {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--card-fg)
}

.welcome-feature p {
  font-size: 12px;
  color: var(--muted-fg);
  line-height: 1.3
}

.welcome-cta {
  width: 100%;
  margin-top: 24px;
  padding: 12px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: opacity .2s
}

.welcome-cta:hover {
  opacity: .9
}

/* Dialog */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px
}

.dialog-overlay.open {
  display: flex
}

.dialog-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4)
}

.dialog-card h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--card-fg);
  margin-bottom: 16px
}

.dialog-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--card-fg);
  margin-bottom: 4px;
  margin-top: 12px
}

.dialog-card input,
.dialog-card textarea,
.dialog-card select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--muted);
  color: var(--card-fg);
  font-size: 14px;
  outline: none
}

.dialog-card input:focus,
.dialog-card textarea:focus {
  border-color: var(--primary)
}

.dialog-card textarea {
  resize: vertical;
  min-height: 80px
}

.upload-dropzone {
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
  min-height: 110px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-dropzone:hover {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.04);
}

.upload-dropzone p {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}

.upload-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.upload-preview-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-thumb svg {
  width: 22px;
  height: 22px;
  color: #666;
}

.upload-preview-meta {
  min-width: 0;
}

.upload-preview-meta strong {
  display: block;
  font-size: 13px;
  color: var(--card-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-preview-meta span {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.text-editor-shell {
  margin-top: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: var(--muted);
}

.text-editor-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.text-editor-toolbar button,
.text-editor-toolbar select,
.text-editor-toolbar input[type="color"] {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 8px;
  min-height: 28px;
  height: 28px;
  padding: 0 6px;
  color: var(--card-fg);
  font-size: 11px;
  flex: 0 0 auto;
}

.text-editor-toolbar button {
  min-width: 28px;
  font-weight: 800;
}

.text-editor-toolbar select {
  min-width: 0;
  width: auto;
  max-width: 92px;
}

.text-editor-toolbar #npFontSize {
  max-width: 62px;
}

.text-editor-toolbar input[type="color"] {
  width: 30px;
  padding: 2px;
}

.text-editor-toolbar button svg {
  width: 12px;
  height: 12px;
}

.text-editor {
  min-height: 150px;
  padding: 14px 16px;
  outline: none;
  font-size: 15px;
  line-height: 1.6;
  color: var(--card-fg);
}

.text-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(0, 0, 0, 0.35);
}

.dash-post-grid {
  width: 100%;
  column-count: 2;
  column-gap: 16px;
  margin-top: 20px;
}

.dash-post-grid.has-two-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-post-grid {
  column-count: 5;
  column-gap: 18px;
}

.dash-post-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  break-inside: avoid;
}

.dash-post-grid.has-two-posts .dash-post-card {
  display: block;
  margin: 0;
}

.dash-post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.dash-post-media {
  position: relative;
  background: linear-gradient(135deg, #f3f0ff, #ffe6e6);
  overflow: hidden;
}

.dash-post-media img,
.dash-post-media video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.dash-post-media-asset {
  width: 100%;
  display: block;
  transition: transform .3s ease, filter .3s ease;
}

.dash-post-media.is-video img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.dash-post-media.is-video video {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #050505;
}

.dash-post-media.is-audio {
  min-height: 160px;
  display: flex;
  align-items: end;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 45%),
    linear-gradient(135deg, #1a1028, #ff6b6b);
}

.dash-post-media.is-text {
  min-height: 180px;
}

.dash-post-media.is-locked .dash-post-media-asset,
.dash-post-media.is-locked .dash-post-text-preview,
.dash-post-media.is-locked .dash-post-audio-meta {
  filter: blur(18px);
  transform: scale(1.04);
  user-select: none;
  pointer-events: none;
}

.dash-post-media.is-locked::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: rgba(18, 18, 20, 0.34);
  backdrop-filter: saturate(0.9);
  z-index: 2;
}

.dash-post-type-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-fg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.dash-post-type-icon svg {
  width: 16px;
  height: 16px;
}

.dash-post-lock {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.dash-post-lock svg {
  width: 12px;
  height: 12px;
}

.dash-post-center-lock {
  position: absolute;
  inset: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.dash-post-center-lock span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff6b6b;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.dash-post-center-lock svg {
  width: 34px;
  height: 34px;
}

.dash-post-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.46);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.dash-post-play-badge svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.dash-post-video-label {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(9, 9, 10, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
}

.dash-post-video-label svg {
  width: 12px;
  height: 12px;
}

.dash-post-body {
  padding: 14px;
}

.dash-post-creator-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 2px 0;
  border: 0 !important;
  border-radius: 14px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--card-fg);
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.dash-post-creator-link:hover .creator-name {
  text-decoration: underline;
}

.dash-post-creator-link .creator-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

.dash-post-creator-link .creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dash-post-creator-link .creator-name {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.dash-post-creator-link .creator-user {
  display: block;
  color: var(--muted-fg);
  font-size: 11px;
  line-height: 1.2;
  margin-top: 2px;
}

.dash-post-body h4 {
  font-family: 'Sora', sans-serif;
  color: var(--card-fg);
  font-size: 14px;
  margin-bottom: 0;
}

.dash-post-text-preview {
  padding: 26px 20px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--card-fg);
  background: linear-gradient(135deg, var(--text-card-start, #f5ebff), var(--text-card-end, #ffe8ea));
}

.dash-post-text-preview > * {
  width: 100%;
  margin: 10px 0;
}

.dash-post-text-preview p,
.dash-post-text-preview div {
  margin: 10px 0;
}

.dash-post-text-preview p:first-child,
.dash-post-text-preview div:first-child {
  margin-top: 0;
}

.dash-post-text-preview p:last-child,
.dash-post-text-preview div:last-child {
  margin-bottom: 0;
}

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

.dash-post-action-btn {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: var(--card-fg);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, transform .2s;
}

.dash-post-action-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.dash-post-action-btn svg {
  width: 12px;
  height: 12px;
}

.dash-post-action-btn.is-danger {
  color: #d74a4a;
}

.dash-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.dash-post-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-post-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: #5f5f6b;
  font-size: 11px;
  font-weight: 700;
}

.dash-post-stat svg {
  width: 12px;
  height: 12px;
}

.dash-post-date {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: #6b6b76;
  font-size: 11px;
  font-weight: 700;
}

.creator-post-section {
  margin-top: 76px;
}

.creator-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}

.creator-post-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  color: #fff;
}

.creator-post-header span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 600;
}

.creator-post-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  justify-content: center;
}

.creator-post-filter-chip {
  min-width: 88px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid rgba(255, 42, 123, 0.9);
  background: transparent;
  color: #ff2a7b;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.creator-post-filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 42, 123, 0.14);
}

.creator-post-filter-chip.is-active {
  background: linear-gradient(135deg, #ff4b8b, #ff1f78);
  color: #fff;
  border-color: transparent;
}

.creator-post-empty {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.creator-post-debug {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  word-break: break-word;
}

.creator-friends-section {
  margin-top: 56px;
}

.creator-friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
  gap: 14px;
  align-items: start;
}

.creator-friend-card {
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.creator-friend-card img {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.creator-friend-card span {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

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

.creator-downloadables-grid .dl-card img {
  height: 72px;
}

.creator-downloadables-grid .dl-card .dl-info {
  padding: 9px;
}

.creator-downloadables-grid .dl-card .post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.creator-downloadables-grid .dl-card .post-card-meta span:first-child {
  color: rgb(232 14 14 / 58%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.explore-switch {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
}

.explore-creators-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.explore-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 20px;
  column-count: initial;
}

.explore-post-grid .dash-post-card {
  display: block;
  margin: 0;
}

.explore-post-grid .dash-post-media {
  aspect-ratio: 1 / 1.12;
  min-height: 0;
}

.explore-post-grid .dash-post-media img,
.explore-post-grid .dash-post-media video,
.explore-post-grid .dash-post-media .dash-post-media-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.explore-post-grid .dash-post-media.is-text,
.explore-post-grid .dash-post-media.is-audio {
  aspect-ratio: 1 / 1.12;
  min-height: 0;
}

.explore-post-grid .dash-post-text-preview {
  min-height: 100%;
  height: 100%;
}

.explore-post-grid .dash-post-audio-meta {
  min-height: 100%;
}

.explore-creator-card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.explore-creator-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.explore-creator-banner {
  height: 140px;
  background: linear-gradient(135deg, #151515, #2a1f24);
  overflow: hidden;
}

.explore-creator-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-creator-body {
  padding: 18px;
}

.explore-creator-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: -34px;
  position: relative;
  z-index: 1;
}

.explore-creator-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--card);
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.explore-creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-creator-meta strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  color: var(--card-fg);
}

.explore-creator-meta {
  padding-bottom: 10px;
}

.explore-creator-meta span {
  display: block;
  margin-top: 2px;
  color: var(--muted-fg);
  font-size: 13px;
}

.explore-creator-bio {
  margin-top: 16px;
  color: var(--muted-fg);
  font-size: 14px;
  line-height: 1.5;
}

.explore-creator-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted-fg);
  font-size: 13px;
}

.explore-creator-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.explore-creator-stats .price-stat {
  color: var(--primary);
  font-weight: 800;
}

.explore-creator-stats svg {
  width: 14px;
  height: 14px;
}

.dash-post-audio-meta {
  padding: 18px;
  color: #fff;
}

.dash-post-audio-meta strong {
  display: block;
  font-size: 15px;
  font-family: 'Sora', sans-serif;
}

.dash-post-audio-meta span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.84;
}

@media (max-width: 820px) {
  .dash-post-grid {
    column-count: 2;
  }

  .home-post-grid {
    column-count: 3;
  }
}

@media (min-width: 1400px) {
  .home-post-grid {
    column-count: 6;
  }
}

@media (max-width: 1080px) {
  .home-post-grid {
    column-count: 4;
  }
}

@media (max-width: 820px) {
  .home-post-grid {
    column-count: 3;
  }
}

@media (max-width: 560px) {
  .dash-post-grid {
    column-count: 1;
  }

  #creatorContent .dash-post-grid {
    column-count: 2;
  }

  .home-feed-section {
    max-width: 100%;
  }

  .home-post-grid {
    column-count: 2;
  }

  .dash-post-grid.has-two-posts {
    grid-template-columns: 1fr;
  }

  #creatorContent .dash-post-grid.has-two-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-post-grid.has-two-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explore-creators-grid {
    grid-template-columns: 1fr;
  }

  .explore-post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .home-post-grid {
    column-count: 1;
  }

  .dash-post-grid.has-two-posts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .explore-creators-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .explore-post-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

.dialog-card .actions {
  display: flex;
  gap: 12px;
  margin-top: 20px
}

.dialog-card .actions .btn-gradient {
  flex: 1;
  justify-content: center
}

.dialog-card .actions .btn-ghost {
  background: none;
  color: var(--card-fg);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 12px
}

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--muted);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px
}

.toggle-row .toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--card-fg)
}

.toggle-row .toggle-label svg {
  width: 16px;
  height: 16px;
  color: var(--primary)
}

.toggle {
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background .2s
}

.toggle.on {
  background: var(--primary)
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s
}

.toggle.on::after {
  transform: translateX(20px)
}

/* Unlock modal */
.unlock-card {
  text-align: center;
  max-width: 400px
}

.unlock-card .heart-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px
}

.unlock-card .heart-circle svg {
  width: 32px;
  height: 32px;
  color: #fff;
  fill: #fff
}

.unlock-card h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--card-fg)
}

.unlock-card .unlock-sub {
  color: var(--muted-fg);
  font-size: 14px;
  margin-top: 4px
}

.unlock-card .features {
  background: var(--muted);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
  text-align: left
}

.unlock-card .features .feat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--card-fg)
}

.unlock-card .features .feat:last-child {
  margin-bottom: 0
}

.unlock-card .features .feat svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0
}

.unlock-card .price {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 12px 0 4px
}

.unlock-card .price-sub {
  font-size: 13px;
  color: var(--muted-fg)
}

.unlock-card .paypal-btn {
  width: 100%;
  margin-top: 16px
}

.unlock-card .note {
  font-size: 11px;
  color: var(--muted-fg);
  margin-top: 12px
}

/* Downloadable grid */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

@media(min-width:640px) {
  .dl-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

.dl-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s
}

.dl-card:hover {
  box-shadow: var(--shadow-card-hover)
}

.dl-card img {
  width: 100%;
  height: 80px;
  object-fit: cover
}

.dl-card .dl-info {
  padding: 10px
}

.dl-card .dl-info h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--card-fg);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.dl-card .dl-info p {
  font-size: 10px;
  color: var(--muted-fg);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.dl-card .dl-info button {
  width: 100%;
  margin-top: 8px;
  padding: 6px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px
}


.downloadable-dropzone {
  margin-top: 12px;
  border: 1.5px dashed rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.02);
  padding: 20px 18px;
  text-align: center;
  color: var(--muted-fg);
  cursor: pointer;
}

.downloadable-dropzone strong {
  display: block;
  color: var(--card-fg);
  font-family: 'Sora', sans-serif;
  margin-bottom: 6px;
}

.downloadable-files-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.downloadable-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--card-fg);
  font-size: 13px;
}

.downloadable-file-row span:last-child {
  color: var(--muted-fg);
  font-size: 12px;
}

.downloadable-cover-preview {
  margin-top: 12px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.downloadable-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.downloadable-viewer {
  width: min(1080px, 94vw);
  max-height: calc(100vh - 40px);
  color: var(--card-fg);
  border-radius: 34px;
  overflow: visible;
  position: relative;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  background: transparent;
  margin: auto;
}

.downloadable-viewer-cover {
  display: none;
}

.downloadable-viewer-main {
  margin: 0 24px 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  z-index: 2;
  flex: 1;
}

.downloadable-viewer-card {
  background: var(--card);
  border-radius: 30px;
  box-shadow: var(--shadow-card);
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  max-height: calc(90vh - 210px);
}

.downloadable-viewer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
}

.downloadable-viewer-hero {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.downloadable-viewer-thumb {
  width: 118px;
  height: 118px;
  border-radius: 24px;
  overflow: hidden;
  border: 5px solid var(--card);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  background: var(--muted);
  margin-top: -56px;
}

.downloadable-viewer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.downloadable-viewer-meta {
  min-width: 0;
  padding-top: 4px;
}

.downloadable-viewer-head h3 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.08;
  margin-bottom: 6px;
}

.downloadable-viewer-head p {
  color: var(--muted-fg);
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
}

.downloadable-viewer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.downloadable-viewer-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.downloadable-viewer-stats svg {
  width: 16px;
  height: 16px;
}

.downloadable-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  align-items: flex-end;
}

.downloadable-actions .btn-gradient,
.downloadable-actions .btn-ghost {
  min-width: 0;
  width: auto;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1;
}

.downloadable-actions .btn-ghost {
  background: #111;
  color: #fff;
  border: 0;
}

.downloadable-actions .btn-gradient svg,
.downloadable-actions .btn-ghost svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.downloadable-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(40vh, 320px);
  overflow-y: auto;
  padding: 10px 8px 10px 0;
  align-content: start;
}

.downloadable-assets-grid::-webkit-scrollbar {
  width: 8px;
}

.downloadable-assets-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.downloadable-asset-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
  position: relative;
  aspect-ratio: 1 / 1;
  isolation: isolate;
  margin: 0 0 2px;
}

.downloadable-asset-card img,
.downloadable-asset-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #0c0c0c;
}

.downloadable-asset-type {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-fg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.downloadable-asset-type svg {
  width: 16px;
  height: 16px;
}

.downloadable-asset-remove {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.downloadable-asset-remove svg {
  width: 15px;
  height: 15px;
}

.downloadable-locked {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.04);
  padding: 24px;
  color: var(--muted-fg);
}

.downloadable-locked strong {
  display: block;
  color: var(--card-fg);
  font-family: 'Sora', sans-serif;
  margin-bottom: 8px;
}

#newDlDialog .dialog-card {
  max-width: 520px;
}

#newDlDialog .actions {
  position: sticky;
  bottom: -24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--card) 22%);
  padding-top: 18px;
  margin-top: 18px;
}

@media(max-width:900px) {
  .downloadable-viewer-cover {
    display: none;
  }

  .downloadable-viewer-main {
    margin: 0 16px 16px;
  }

  .downloadable-viewer-card {
    padding: 22px 20px 22px;
    max-height: calc(90vh - 175px);
  }

  .downloadable-viewer-head {
    flex-direction: column;
  }

  .downloadable-actions {
    width: 100%;
  }

  .downloadable-actions .btn-gradient,
  .downloadable-actions .btn-ghost {
    width: 100%;
    min-width: 0;
  }

  .downloadable-viewer-head h3 {
    font-size: 1.5rem;
  }
}

@media(max-width:680px) {
  .downloadable-assets-grid {
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  }
}

@media(max-width:520px) {
  .downloadable-assets-grid {
    gap: 12px;
  }

  .downloadable-asset-card {
    flex-basis: calc(50% - 6px);
    min-width: 0;
    max-width: none;
  }
}

#downloadableModal.modal-overlay {
  align-items: center;
  justify-content: center;
  padding-top: max(24px, calc((100vh - min(820px, 90vh)) / 2));
  padding-bottom: max(24px, calc((100vh - min(820px, 90vh)) / 2));
}

/* Edit profile form in dashboard */
.edit-form {
  text-align: left
}

.edit-form label {
  display: block;
  font-size: 11px;
  color: var(--muted-fg);
  margin-bottom: 4px;
  margin-top: 12px
}

.edit-form input,
.edit-form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--muted);
  color: var(--card-fg);
  font-size: 14px;
  outline: none
}

.edit-form input::placeholder,
.edit-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.35)
}

.edit-form input:focus,
.edit-form textarea:focus {
  border-color: var(--primary)
}

.edit-form textarea {
  resize: vertical;
  min-height: 60px
}

.edit-form .social-inputs {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.edit-form .social-inputs input {
  font-size: 13px
}

.edit-form .form-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px
}

/* Responsive profile header on dashboard */
.dash-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0
}

/* Misc */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px
}

.text-center {
  text-align: center
}

.mt-1 {
  margin-top: 4px
}

.mt-2 {
  margin-top: 8px
}

.mt-3 {
  margin-top: 12px
}

.mt-4 {
  margin-top: 16px
}

.mb-2 {
  margin-bottom: 8px
}

.mb-4 {
  margin-bottom: 16px
}

/* Quitamos el padding global para las páginas de login y registro */
#page-login,
#page-register {
  padding-top: 0;
  padding-bottom: 0;
  height: 100vh;
  /* Forzamos que la página mida exactamente el alto de pantalla */
  overflow: hidden;
  /* Evitamos cualquier scroll accidental */
}

/* Centramos el contenido en el espacio restante debajo del navbar */
.auth-page {
  padding-top: 60px;
  /* Solo el alto del navbar para que no lo tape */
  height: 100%;
  /* Ocupa el 100% del alto del padre (#page-login) */
  min-height: auto;
  /* Reseteamos el min-height que tenías antes */
  display: flex;
  align-items: center;
  /* Centrado vertical */
  justify-content: center;
  /* Centrado horizontal */
}

/* Reducimos un poco el margen del logo para que quepa mejor en pantallas pequeñas */
.auth-form .logo {
  margin-bottom: 20px;
}

/* Estilo para el perfil en el Navbar */
.nav-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  /* Fondo sutil para que parezca un botón */
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.nav-user-info:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  border-color: var(--primary);
  /* Se ilumina al pasar el mouse */
}

.nav-avatar {
  width: 36px;
  /* Un poco más grande */
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  /* Inicial muy gruesa */
  font-size: 16px;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.2);
  /* Brillo suave */
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  font-family: 'Sora', sans-serif;
}

@media(max-width: 768px) {
  .nav-user-info {
    display: none;
  }

  .tabs-pill-container {
    display: flex;
    width: fit-content;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    padding: 4px;
    margin: 18px 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    scrollbar-width: none;
  }

  .tabs-pill-container::-webkit-scrollbar {
    display: none;
  }

  .tab-pill {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  #page-dashboard .dashboard-tab-pill {
    min-width: 40px;
    justify-content: center;
    padding: 8px 10px;
    gap: 0;
  }

  #page-dashboard .dashboard-tab-pill .tab-pill-label {
    display: none;
  }

  #page-dashboard .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px;
    scrollbar-width: none;
  }

  #page-dashboard .tabs::-webkit-scrollbar {
    display: none;
  }

  #page-dashboard .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #page-dashboard .profile-card-inner {
    padding: 18px 18px 20px;
  }

  #page-dashboard .profile-header-main {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  #page-dashboard .profile-info-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  #page-dashboard .info-left {
    text-align: center;
  }

  #page-dashboard .profile-stats-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  #page-dashboard .info-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #page-dashboard .info-actions .btn-gradient,
  #page-dashboard .info-actions .btn-view-public,
  #page-dashboard .info-actions .btn-edit {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 11px 16px;
  }

  #page-dashboard .avatar-box {
    width: 104px;
    height: 104px;
    margin-top: -52px;
  }

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

  .profile-actions .creator-subscribe-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .profile-actions .creator-follow-btn,
  .profile-actions .creator-message-btn {
    width: 100%;
  }

  .share-sheet {
    right: 12px;
    left: 12px;
    bottom: 16px;
    width: auto;
    grid-template-columns: 1fr;
  }

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

  .creator-friends-section {
    margin-top: 48px;
  }
}

@media(max-width: 560px) {
  #page-dashboard .profile-card {
    padding: 0 12px;
  }

  #page-dashboard .profile-card-inner {
    padding: 16px 14px 18px;
  }

  #page-dashboard .info-left h1 {
    font-size: 24px;
  }

  #page-dashboard .info-left .bio {
    font-size: 13px;
  }

  #page-dashboard .profile-link-row {
    justify-content: center;
  }

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

#upload-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: min(92vw, 420px);
  background: rgba(10, 10, 10, 0.92);
  color: white;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  z-index: 10000;
  animation: slideUp 0.3s ease-out;
}

#upload-status.is-visible {
  display: inline-flex;
}

#upload-status[data-tone="loading"] {
  border-color: rgba(255, 255, 255, 0.18);
}

#upload-status[data-tone="success"] {
  border-color: rgba(255, 255, 255, 0.22);
}

#upload-status[data-tone="error"] {
  border-color: rgba(255, 255, 255, 0.18);
}

.status-icon {
  width: 18px;
  height: 18px;
  color: #fff;
  flex: 0 0 auto;
  opacity: 0.98;
}

.status-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.status-message {
  flex: 1;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Ajustes para el Dashboard estático */
#dashViewMode,
#dashEditMode {
  transition: all 0.3s ease;
  width: 100%;
}

/* Mejoras al formulario de edición */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 0;
}

.edit-form label {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--card-fg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: -8px;
  /* Acerca el label al input */
}

.edit-form input,
.edit-form textarea {
  background: var(--muted) !important;
  border: 2px solid transparent !important;
  color: var(--card-fg) !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  font-size: 14px;
}

.edit-form input:focus,
.edit-form textarea:focus {
  border-color: var(--primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}



/* --- NUEVOS ESTILOS DASHBOARD --- */
.profile-card-inner {
  background: white;
  border-radius: 24px;
  padding: 24px;
  color: #1a1028;
}

.profile-header-main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.avatar-box {
  width: 120px;
  height: 120px;
  background: #f0f0f0;
  border-radius: 20px;
  border: 4px solid white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin-top: -60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.avatar-box .placeholder span {
  font-size: 10px;
  color: #aaa;
  display: block;
  margin-top: 4px;
}

.profile-info-grid {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.info-left h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 2px;
}

.info-left .username {
  color: #888;
  font-size: 14px;
  margin-bottom: 12px;
}

.info-left .bio {
  font-size: 14px;
  color: #444;
  margin-bottom: 4px;
}

.info-left .sub-info {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 12px;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.profile-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 107, 107, 0.16);
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s, background .2s, border-color .2s;
}

.profile-link-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.28);
}

.profile-link-chip.website {
  max-width: 100%;
  color: var(--card-fg);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.profile-link-chip.website span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-link-chip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.creator-socials {
  margin-top: 14px;
}

.creator-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  color: #666;
  font-size: 13px;
  font-weight: 600;
}

.creator-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.creator-stat svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.creator-friends {
  margin-top: 18px;
}

.creator-friends h4 {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: var(--card-fg);
  margin-bottom: 10px;
}

.creator-friends-inline {
  margin-top: 20px;
}

.creator-friends-inline-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.creator-friends-inline-list::-webkit-scrollbar {
  display: none;
}

.creator-friend-inline-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 58px;
  flex: 0 0 58px;
  background: transparent;
  color: #3b334f;
}

.creator-friend-inline-card img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.creator-friend-inline-card span {
  font-size: 10px;
  font-weight: 500;
  color: #6f6684;
  max-width: 58px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.creator-message-btn {
  background: linear-gradient(135deg, #6f46c6, #5a39b8);
  box-shadow: 0 14px 30px rgba(91, 61, 153, 0.24);
}

.creator-follow-btn {
  background: linear-gradient(135deg, #c4365a, #5b3d99);
  box-shadow: 0 14px 30px rgba(10, 10, 16, 0.26);
}

.creator-subscribe-btn {
  background: linear-gradient(135deg, #ef6a7b, #d84f67);
  box-shadow: 0 14px 30px rgba(216, 79, 103, 0.24);
  min-height: 74px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.profile-stats-row {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

/* Botones de acción */
.info-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-edit {
  background: #e61919;
  /* Rosa de la imagen */
  color: white;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-view-public {
  background: #111;
  color: white;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tabs Estilo Píldora */
.tabs-pill-container {
  display: inline-flex;
  background: white;
  padding: 6px;
  border-radius: 99px;
  gap: 4px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tab-pill {
  background: transparent;
  color: #666;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tab-pill.active {
  background: #111;
  color: white;
}

/* Botón + Nueva */
.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.btn-new-post {
  background: #e61919;
  color: white;
  padding: 8px 20px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 94, 125, 0.3);
}

/* Empty State */
.dash-empty {
  text-align: center;
  padding: 60px 20px;
}

.btn-create-first {
  background: #e61919;
  color: white;
  border-radius: 99px;
  padding: 12px 32px;
  font-weight: 700;
  margin-top: 20px;
}


.btn-gradient {
  background: var(--gradient-brand);
  /* Usa el degradado intenso */
  color: white !important;
  border: none;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
  /* Este es el efecto de brillo abajo */
}

.btn-gradient:hover {
  transform: translateY(-2px);
  /* Pequeño salto al pasar el mouse */
  filter: brightness(1.1);
  /* Brilla un poco más */
  box-shadow: 0 10px 25px -4px rgba(230, 25, 25, 0.5);
}

.btn-gradient:active {
  transform: translateY(0);
  /* Efecto de presionado */
}


/* Se oculta en móvil para usar el menú hamburguesa */
