 :root {
  --social-bg: #f7f8fb;
  --social-card: rgba(255, 255, 255, 0.92);
  --social-ink: #101114;
  --social-soft: #707684;
  --social-muted: #eef0f5;
  --social-line: rgba(16, 17, 20, 0.08);
  --social-accent: #ff4f7b;
  --social-blue: #3b82f6;
  --social-green: #0f9f6e;
  --social-warn: #f59e0b;
  --social-shadow: 0 22px 54px -34px rgba(15, 23, 42, 0.5);
  --social-radius: 18px;
  --social-font: "DM Sans", "Inter", system-ui, sans-serif;
  --social-display: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--social-bg);
}

body.social-app {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 251, 0.96)),
    radial-gradient(circle at 16% 0%, rgba(255, 79, 123, 0.18), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(59, 130, 246, 0.16), transparent 26%);
  color: var(--social-ink);
  font-family: var(--social-font);
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.social-shell {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 76px 12px 100px;
}

.social-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  width: min(640px, 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: rgba(247, 248, 251, 0.82);
  border-bottom: 1px solid var(--social-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-lockup img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.brand-lockup strong {
  font-family: var(--social-display);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.social-search-pill {
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--social-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--social-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--social-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--social-ink);
  cursor: pointer;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-chat-launcher,
.social-game-launcher {
  position: relative;
  border: 0;
  color: white;
  background: linear-gradient(135deg, #101114, #2f5fff 58%, #ff4f7b);
  box-shadow: 0 14px 28px -16px rgba(47, 95, 255, 0.9);
}

.social-game-launcher {
  background: linear-gradient(135deg, #f59e0b, #ff4f7b);
  box-shadow: 0 14px 28px -16px rgba(245, 158, 11, 0.9);
}

.social-chat-launcher::after,
.social-game-launcher::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(255, 79, 123, 0.38);
  opacity: 0;
  animation: socialPulse 2.5s ease-out infinite;
}

.social-game-launcher::after {
  border-color: rgba(245, 158, 11, 0.42);
  animation-delay: 0.55s;
}

@keyframes socialPulse {
  0% { transform: scale(0.82); opacity: 0.72; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stories-rail,
.premium-rail,
.filters-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 2px 12px;
}

.stories-rail::-webkit-scrollbar,
.premium-rail::-webkit-scrollbar,
.filters-rail::-webkit-scrollbar {
  display: none;
}

.story-card {
  width: 78px;
  flex: 0 0 78px;
  scroll-snap-align: start;
  text-align: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.story-ring {
  width: 68px;
  height: 68px;
  margin: 0 auto 6px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4f7b, #f59e0b 48%, #3b82f6);
}

.story-ring img,
.story-add-inner {
  width: 100%;
  height: 100%;
  border: 3px solid white;
  border-radius: 50%;
  object-fit: cover;
  background: var(--social-muted);
}

.story-add-inner {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--social-ink), #3b82f6);
}

.story-card span {
  display: block;
  overflow: hidden;
  color: var(--social-ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-titleline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 2px 12px;
}

.section-titleline h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 900;
}

.section-titleline a,
.section-titleline button {
  border: 0;
  background: transparent;
  color: var(--social-blue);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.premium-mini-card {
  width: 148px;
  min-height: 174px;
  flex: 0 0 148px;
  overflow: hidden;
  border: 1px solid var(--social-line);
  border-radius: var(--social-radius);
  background: var(--social-card);
  box-shadow: var(--social-shadow);
  scroll-snap-align: start;
}

.premium-mini-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--social-muted);
}

.premium-mini-body {
  padding: 10px;
}

.premium-mini-body strong,
.premium-mini-body span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-mini-body strong {
  font-size: 0.86rem;
  font-weight: 900;
}

.premium-mini-body span {
  margin-top: 3px;
  color: var(--social-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

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

.social-card {
  overflow: hidden;
  border: 1px solid var(--social-line);
  border-radius: var(--social-radius);
  background: var(--social-card);
  box-shadow: var(--social-shadow);
}

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

.post-author {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--social-muted);
}

.post-author strong,
.post-author span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-author strong {
  font-size: 0.88rem;
  font-weight: 900;
}

.post-author span {
  color: var(--social-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.post-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.post-chip.promo {
  background: rgba(255, 79, 123, 0.12);
  color: #be123c;
}

.promoted-card {
  border-color: rgba(255, 79, 123, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 250, 0.95));
  box-shadow: 0 28px 62px -36px rgba(190, 18, 60, 0.66);
}

.promoted-card .post-head {
  background: linear-gradient(90deg, rgba(255, 79, 123, 0.08), rgba(59, 130, 246, 0.07));
}

.promoted-card .post-chip.promo {
  background: linear-gradient(135deg, #ff4f7b, #f59e0b);
  color: white;
}

.post-chip.market {
  background: rgba(15, 159, 110, 0.12);
  color: #047857;
}

.post-chip.tourism {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.post-media {
  position: relative;
  overflow: hidden;
  background: #e7eaf0;
}

.post-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--media-bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.08);
  transform: scale(1.12);
  opacity: 0.55;
}

.post-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 520px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  display: block;
}

.post-body {
  padding: 11px 12px 12px;
}

.post-body h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  line-height: 1.25;
}

.post-body p {
  margin: 0;
  color: #30343b;
  font-size: 0.9rem;
  line-height: 1.42;
}

.post-price {
  margin: 8px 0 0;
  color: var(--social-green);
  font-size: 1.05rem;
  font-weight: 950;
}

.post-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--social-line);
}

.post-actions button,
.post-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-right: 1px solid var(--social-line);
  background: transparent;
  color: var(--social-ink);
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
}

.post-actions > *:last-child {
  border-right: 0;
}

.liked {
  color: var(--social-accent) !important;
}

.comments-box {
  display: none;
  border-top: 1px solid var(--social-line);
  padding: 10px 12px 12px;
  background: rgba(247, 248, 251, 0.8);
}

.comments-box.open {
  display: block;
}

.comment-list {
  display: grid;
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  margin-bottom: 10px;
}

.comment-item {
  padding: 8px 10px;
  border-radius: 13px;
  background: white;
  font-size: 0.82rem;
  line-height: 1.35;
}

.comment-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.74rem;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.comment-form input,
.search-input,
.form-control {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--social-line);
  border-radius: 14px;
  background: white;
  padding: 0 12px;
  color: var(--social-ink);
  outline: none;
}

.comment-form button,
.primary-btn {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--social-ink);
  color: white;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.state-card {
  padding: 28px 18px;
  text-align: center;
  color: var(--social-soft);
}

.social-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  width: min(640px, 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--social-line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.social-nav-item {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 16px;
  color: #657083;
  font-size: 0.66rem;
  font-weight: 900;
}

.social-nav-item.active {
  color: var(--social-ink);
  background: #f0f2f6;
}

.social-nav-item.publish {
  color: white;
  background: linear-gradient(135deg, var(--social-accent), var(--social-blue));
}

.social-nav-item svg {
  width: 21px;
  height: 21px;
}

.publish-grid,
.search-results,
.market-grid {
  display: grid;
  gap: 12px;
}

.publish-card,
.result-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--social-line);
  border-radius: var(--social-radius);
  background: var(--social-card);
  box-shadow: var(--social-shadow);
}

.publish-card .icon-bubble,
.result-card img,
.result-card .icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--social-muted);
}

.publish-card strong,
.result-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 950;
}

.publish-card span,
.result-card span {
  display: block;
  margin-top: 3px;
  color: var(--social-soft);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--social-line);
  border-radius: 999px;
  background: white;
  color: var(--social-soft);
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.active {
  background: var(--social-ink);
  color: white;
}

.composer-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--social-line);
  border-radius: 24px;
  background: var(--social-card);
  box-shadow: var(--social-shadow);
}

.composer-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--social-line);
  border-radius: 18px;
  background: #f0f2f6;
}

.composer-mode {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 950;
  cursor: pointer;
}

.composer-mode.active {
  background: white;
  color: var(--social-ink);
  box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.7);
}

.composer-media {
  position: relative;
  min-height: 310px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(16, 17, 20, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 79, 123, 0.12), rgba(59, 130, 246, 0.12)),
    #f8fafc;
  cursor: pointer;
}

.composer-media input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.composer-media-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f1115;
  display: none;
}

.composer-media.has-preview .composer-media-preview {
  display: block;
}

.composer-media-copy {
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 26px;
  color: var(--social-soft);
  text-align: center;
}

.composer-media.has-preview .composer-media-copy {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--social-ink);
  backdrop-filter: blur(16px);
}

.composer-media-copy strong {
  color: var(--social-ink);
  font-size: 1rem;
  font-weight: 950;
}

.composer-grid {
  display: grid;
  gap: 10px;
}

.composer-grid label {
  display: grid;
  gap: 6px;
  color: var(--social-soft);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.composer-grid textarea {
  min-height: 108px;
  resize: vertical;
  padding-top: 12px;
}

.composer-grid select,
.composer-grid input,
.composer-grid textarea {
  border: 1px solid var(--social-line);
  border-radius: 16px;
  background: white;
  color: var(--social-ink);
  outline: none;
  padding: 12px;
}

.composer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.composer-actions {
  display: grid;
  gap: 8px;
}

.composer-status {
  min-height: 18px;
  color: var(--social-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.social-unified {
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(247,248,251,.96)),
    radial-gradient(circle at 10% 0%, rgba(255,79,123,.12), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(59,130,246,.12), transparent 24%) !important;
  color: var(--social-ink);
}

.social-unified .bottom-nav {
  border-top: 1px solid var(--social-line) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.social-unified .nav-item {
  border-radius: 16px;
}

.social-unified .card,
.social-unified .premium-card,
.social-unified form,
.social-unified .modern-glass {
  border-color: var(--social-line) !important;
  border-radius: 20px !important;
  box-shadow: var(--social-shadow) !important;
}

.social-unified .upload-area,
.social-unified .mini-photo-picker,
.social-unified #image-upload-container,
.social-unified #gallery-upload-container {
  border: 1px dashed rgba(16,17,20,.16) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, rgba(255,79,123,.10), rgba(59,130,246,.10)),
    #f8fafc !important;
  overflow: hidden;
  cursor: pointer;
}

.social-unified input[type="file"] {
  cursor: pointer;
}

.profile-hero {
  position: relative;
  overflow: visible;
  margin-bottom: 14px;
}

.profile-cover {
  height: 148px;
  background:
    linear-gradient(135deg, rgba(255, 79, 123, 0.78), rgba(59, 130, 246, 0.7)),
    url("../placeholder.svg") center/cover;
}

.profile-main {
  display: grid;
  gap: 14px;
  padding: 0 16px 18px;
}

.profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  margin-top: -46px;
}

.profile-avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  border: 4px solid white;
  border-radius: 50%;
  object-fit: cover;
  background: var(--social-muted);
  box-shadow: 0 18px 34px -20px rgba(15, 23, 42, 0.7);
}

.profile-photo-button {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--social-ink);
  color: white;
  cursor: pointer;
}

.profile-title {
  min-width: 0;
  padding-bottom: 8px;
}

.profile-title h1 {
  margin: 0;
  overflow: hidden;
  font-size: 1.48rem;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-title p {
  margin: 5px 0 0;
  color: var(--social-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-bio {
  margin: 0;
  color: #30343b;
  font-size: 0.9rem;
  line-height: 1.42;
}

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

.profile-stat {
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid var(--social-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.profile-stat strong {
  font-size: 1rem;
  font-weight: 950;
}

.profile-stat span {
  color: var(--social-soft);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.profile-create-business,
.profile-message-btn,
.profile-premium-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--social-ink), #2f5fff);
  color: white;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 22px 36px -24px rgba(47, 95, 255, 0.9);
}

.profile-premium-btn {
  background: linear-gradient(135deg, #ff4f7b, #f59e0b);
  box-shadow: 0 22px 36px -24px rgba(255, 79, 123, 0.9);
}

.profile-wallet-card,
.profile-admin-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.profile-wallet-card {
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(250, 204, 21, 0.28), transparent 32%),
    linear-gradient(135deg, #10251c, #0f9f6e);
}

.profile-admin-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.16), transparent 32%),
    white;
}

.profile-wallet-card span,
.profile-admin-card span {
  display: block;
  color: inherit;
  opacity: 0.72;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-wallet-card strong,
.profile-admin-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.18rem;
  font-weight: 950;
}

.profile-wallet-card p,
.profile-admin-card p {
  margin: 5px 0 0;
  color: inherit;
  opacity: 0.76;
  font-size: 0.86rem;
  line-height: 1.4;
}

.profile-wallet-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.profile-wallet-actions a,
.profile-admin-card a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 950;
}

.profile-admin-card a {
  background: var(--social-ink);
  color: white;
}

.profile-business-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
}

.profile-business-rail::-webkit-scrollbar {
  display: none;
}

.profile-business-card {
  width: 156px;
  flex: 0 0 156px;
  overflow: hidden;
  border: 1px solid var(--social-line);
  border-radius: var(--social-radius);
  background: white;
  box-shadow: var(--social-shadow);
}

.profile-business-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: var(--social-muted);
}

.profile-business-card div {
  padding: 10px;
}

.profile-business-card strong,
.profile-business-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-business-card strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.profile-business-card span {
  margin-top: 3px;
  color: var(--social-soft);
  font-size: 0.72rem;
  font-weight: 850;
}

.profile-empty-card {
  padding: 18px;
  color: var(--social-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.market-composer {
  display: none;
  padding: 12px;
  margin-bottom: 14px;
}

.market-composer.open {
  display: block;
}

.private-chat-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  pointer-events: none;
}

.private-chat-root.open {
  display: block;
  pointer-events: auto;
}

.private-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.private-chat-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(640px, 100%);
  max-height: min(78vh, 620px);
  transform: translate(-50%, 100%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--social-line);
  border-radius: 26px 26px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -30px 70px -46px rgba(15, 23, 42, 0.7);
  transition: transform 0.24s ease;
}

.private-chat-root.open .private-chat-panel {
  transform: translate(-50%, 0);
}

.private-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--social-line);
}

.private-chat-target {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.private-chat-target img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--social-muted);
}

.private-chat-target strong,
.private-chat-target span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-chat-target strong {
  font-size: 0.9rem;
  font-weight: 950;
}

.private-chat-target span {
  color: var(--social-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.private-chat-content {
  min-height: 260px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.private-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 14px 12px;
}

.private-chat-state {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 22px;
  color: var(--social-soft);
  text-align: center;
  font-weight: 850;
}

.private-chat-state.compact {
  min-height: 120px;
  font-size: 0.86rem;
}

.private-chat-state svg {
  width: 34px;
  height: 34px;
  color: var(--social-accent);
}

.private-message {
  max-width: 82%;
  align-self: flex-start;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 18px 18px 18px 6px;
  background: #f0f2f6;
  color: var(--social-ink);
}

.private-message.mine {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, var(--social-accent), var(--social-blue));
  color: white;
}

.private-message div {
  font-size: 0.9rem;
  line-height: 1.35;
}

.private-message span {
  opacity: 0.72;
  font-size: 0.68rem;
  font-weight: 850;
  text-align: right;
}

.private-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--social-line);
  background: white;
}

.private-chat-form input {
  min-height: 44px;
  border: 1px solid var(--social-line);
  border-radius: 999px;
  background: #f7f8fb;
  padding: 0 14px;
  outline: none;
}

.private-chat-form button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--social-ink);
  color: white;
  cursor: pointer;
}

.secret-number-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 10px calc(16px + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.secret-number-sheet {
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px -44px rgba(15, 23, 42, 0.9);
}

.secret-number-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: white;
  background:
    radial-gradient(circle at 88% 0%, rgba(250, 204, 21, 0.34), transparent 38%),
    linear-gradient(135deg, #101114, #ff4f7b);
}

.secret-number-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.secret-number-head p {
  margin: 4px 0 0;
  opacity: 0.78;
  font-size: 0.82rem;
  font-weight: 800;
}

.secret-number-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

.secret-number-metrics div,
.secret-number-player,
.secret-number-result-card {
  border: 1px solid var(--social-line);
  border-radius: 16px;
  background: #f8fafc;
  padding: 10px;
}

.secret-number-metrics span,
.secret-number-player span,
.secret-number-result-card span {
  display: block;
  color: var(--social-soft);
  font-size: 0.7rem;
  font-weight: 900;
}

.secret-number-metrics strong,
.secret-number-player strong {
  display: block;
  margin-top: 3px;
  font-size: 0.95rem;
  font-weight: 950;
}

.secret-number-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.secret-number-actions input {
  min-height: 44px;
  border: 1px solid var(--social-line);
  border-radius: 14px;
  padding: 0 12px;
  outline: none;
}

.secret-number-actions button,
#secret-number-refresh-btn {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--social-ink);
  color: white;
  padding: 0 12px;
  font-weight: 950;
}

.secret-number-players,
.secret-number-result-list {
  display: grid;
  gap: 8px;
}

@media (min-width: 760px) {
  .social-shell {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 380px) {
  .brand-lockup strong {
    font-size: 1.25rem;
  }

  .social-search-pill {
    font-size: 0;
    justify-content: center;
  }

  .post-actions button,
  .post-actions a {
    font-size: 0;
  }
}
