/* ══════════════════════════════════════════════════════════════════
   SORRY KITTY — WORLD CHAT & FINAL HOME DESIGN
   ══════════════════════════════════════════════════════════════════ */

/* ── WORLD CHAT LIVE PREVIEW ON HOME ── */
.wc-home-preview-section {
  padding: 16px 18px 6px;
}
.wc-home-preview-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wc-home-preview-scroll::-webkit-scrollbar {
  display: none;
}
.wc-home-preview-card {
  flex: 0 0 250px;
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 14px 12px;
  box-shadow: 0 4px 18px rgba(16, 42, 86, 0.05);
  border: 1.5px solid #edf2f9;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-tap-highlight-color: transparent;
}
.wc-home-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 119, 242, 0.12);
  border-color: #dbeafe;
}
.wc-home-preview-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.wc-home-preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.wc-home-preview-meta {
  display: flex;
  flex-direction: column;
}
.wc-home-preview-name {
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wc-home-preview-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
.wc-home-preview-text {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  line-height: 1.35;
  margin-bottom: 10px;
}
.wc-home-preview-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wc-home-preview-tag--music {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: #ddd6fe;
}

/* ── FIND YOUR CONVERSATION SECTION ── */
.wc-home-topics-section {
  padding: 10px 18px 16px;
}
.wc-home-topics-hdr {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.wc-home-topics-title {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: #0B1B4A;
}
.wc-home-topics-sub {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  color: #8b5cf6;
  font-weight: 700;
}
.wc-home-topics-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wc-home-topics-scroll::-webkit-scrollbar {
  display: none;
}
.wc-topic-pill {
  padding: 8px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(16, 42, 86, 0.04);
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.wc-topic-pill:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-1px);
}
.wc-topic-pill--btn {
  background: #1677F2;
  color: #ffffff;
  border-color: #1677F2;
  box-shadow: 0 4px 14px rgba(22, 119, 242, 0.28);
}
.wc-topic-pill--btn:hover {
  background: #0f62cf;
  border-color: #0f62cf;
  color: #ffffff;
}

/* ── TRANSLATION BANNER ── */
.wc-trans-banner {
  margin: 6px 18px 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 12px 14px;
  border: 1.5px solid #e2edff;
  box-shadow: 0 4px 16px rgba(16, 42, 86, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wc-trans-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wc-trans-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
.wc-trans-banner-info {
  display: flex;
  flex-direction: column;
}
.wc-trans-banner-title {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  color: #7c3aed;
  font-weight: 700;
  line-height: 1.2;
}
.wc-trans-banner-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}
.wc-trans-banner-pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.wc-trans-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ══════════════════════════════════════════════════════════════════
   WORLD CHAT TAB PAGE (#tab-worldchat)
   ══════════════════════════════════════════════════════════════════ */
#tab-worldchat {
  display: none;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #f0f4ff 0%, #f6f8ff 35%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Header */
.wc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(209, 229, 255, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(16, 42, 86, 0.04);
}
.wc-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wc-topbar-title {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: #0B1B4A;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wc-topbar-sep {
  color: #cbd5e1;
  font-weight: 300;
  margin: 0 2px;
}
.wc-topbar-wc {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #0B1B4A;
  display: flex;
  align-items: center;
  gap: 4px;
}
.wc-live-pill {
  padding: 2px 8px;
  background: #ffe4e6;
  color: #e11d48;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #fecdd3;
  margin-left: 4px;
}
.wc-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e11d48;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.wc-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wc-notif-bell {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
}
.wc-notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  line-height: 1.2;
}
.wc-user-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.wc-user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #1677F2;
}
.wc-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

/* Tagline Banner */
.wc-tagline-bar {
  padding: 4px 20px 2px;
  font-family: 'Caveat', cursive;
  font-size: 15px;
  color: #7c3aed;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Chat Messages Container */
.wc-messages-area {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 16px 140px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Individual Message Layouts */
.wc-msg {
  display: flex;
  gap: 10px;
  max-width: 86%;
  animation: msgPopIn 0.22s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes msgPopIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Left Message */
.wc-msg--left {
  align-self: flex-start;
}
.wc-msg--left .wc-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.wc-msg-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wc-msg-author {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
}
.wc-msg--left .wc-msg-bubble {
  background: #ffffff;
  border-radius: 18px 18px 18px 6px;
  padding: 10px 14px;
  border: 1.5px solid #edf2f9;
  box-shadow: 0 3px 12px rgba(16, 42, 86, 0.05);
  color: #0B1B4A;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

/* Right Message */
.wc-msg--right {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.wc-msg--right .wc-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.wc-msg--right .wc-msg-content {
  align-items: flex-end;
}
.wc-msg--right .wc-msg-author {
  padding-right: 4px;
  flex-direction: row-reverse;
}
.wc-msg--right .wc-msg-bubble {
  background: #eaf2ff;
  border-radius: 18px 18px 6px 18px;
  padding: 10px 14px;
  border: 1.5px solid #c7dcff;
  box-shadow: 0 3px 12px rgba(22, 119, 242, 0.08);
  color: #0B1B4A;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

.wc-msg-time {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  float: right;
  margin-left: 8px;
  margin-top: 3px;
}

/* System Pill */
.wc-msg-system {
  align-self: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px dashed #bfdbfe;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: #475569;
  font-weight: 700;
  margin: 4px auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(16, 42, 86, 0.04);
}

/* Floating "New messages" pill */
.wc-new-msg-pill {
  position: absolute;
  bottom: 126px;
  left: 50%;
  transform: translateX(-50%);
  background: #1677F2;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(22, 119, 242, 0.35);
  z-index: 105;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 5px;
  border: none;
  animation: floatBounce 1s infinite alternate ease-in-out;
}
@keyframes floatBounce {
  from { transform: translate(-50%, 0); }
  to   { transform: translate(-50%, -4px); }
}

/* Bottom Composer */
.wc-composer-wrap {
  position: absolute;
  bottom: 66px;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  z-index: 108;
  pointer-events: none;
}
.wc-composer {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 32px;
  padding: 6px 8px 6px 14px;
  border: 1.5px solid rgba(209, 229, 255, 0.8);
  box-shadow: 0 8px 26px rgba(16, 42, 86, 0.12);
}
.wc-emoji-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.wc-emoji-btn:hover {
  transform: scale(1.15);
}
.wc-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #0B1B4A;
  outline: none;
  padding: 6px 2px;
}
.wc-input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}
.wc-send-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #1677F2;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(22, 119, 242, 0.35);
  transition: transform 0.15s, background 0.15s;
}
.wc-send-btn:hover {
  background: #0f62cf;
  transform: scale(1.05);
}
.wc-send-btn:active {
  transform: scale(0.92);
}
.wc-send-btn svg {
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.4;
}
.wc-send-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
  transform: none !important;
}

/* ── WORLD CHAT EMPTY STATE ── */
.wc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
  gap: 10px;
  text-align: center;
  flex: 1;
}
.wc-empty-icon {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(22,119,242,0.18));
}
.wc-empty-title {
  font-size: 17px;
  font-weight: 800;
  color: #1e3a5f;
  letter-spacing: -0.3px;
}
.wc-empty-sub {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  max-width: 280px;
  line-height: 1.5;
}

/* ── HOME PREVIEW LIST (dynamic container) ── */
.wc-home-preview-list {
  display: flex;
  gap: 12px;
  min-width: 100%;
}
.wc-home-preview-list:empty::after {
  content: '';
  display: block;
  width: 250px;
  height: 88px;
  background: rgba(0,0,0,0.04);
  border-radius: 20px;
  flex-shrink: 0;
}
