/* ── Twemoji cross-platform emoji ── */
img.emoji {
  height: 1.2em;
  width: 1.2em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.2em;
  display: inline-block;
}

/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #EDE9FE;
  color: #1e1e1e;
  height: 100vh;
  overflow: hidden;
}

/* ── Auth Page ── */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2E1065 0%, #4C1D95 100%);
  overflow: auto;
}
.auth-container {
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  width: 400px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-logo {
  font-size: 48px;
  font-weight: 800;
  color: #3B0764;
  margin-bottom: 4px;
}
.auth-tagline {
  color: #5B21B6;
  margin-bottom: 32px;
  font-size: 16px;
}
.auth-form h2 {
  color: #3B0764;
  margin-bottom: 20px;
  font-size: 22px;
}
.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #C4B5FD;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.auth-form input:focus {
  border-color: #4C1D95;
}
.auth-form button {
  width: 100%;
  padding: 14px;
  background: #3B0764;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}
.auth-form button:hover { background: #2E1065; transform: scale(1.02); }
.auth-form button:active { transform: scale(0.98); }
.auth-switch {
  margin-top: 16px;
  color: #666;
  font-size: 14px;
}
.auth-switch a {
  color: #4C1D95;
  font-weight: 600;
  text-decoration: none;
}
.auth-error {
  color: #DC2626;
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
}

/* ── App Layout ── */
#app {
  display: flex;
  height: 100vh;
}

/* ── Sidebar ── */
#sidebar {
  width: 220px;
  min-width: 220px;
  background: linear-gradient(180deg, #0D0017 0%, #2E1065 30%, #5B21B6 60%, #A78BFA 85%, #C4B5FD 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}
.sidebar-logo {
  font-size: 32px;
  font-weight: 800;
  color: white;
  text-align: center;
  padding: 24px 0 16px;
}
.sidebar-buttons {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 12px 12px;
  gap: 6px;
  justify-content: space-evenly;
}
.sidebar-btn {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
}
.sidebar-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.05);
}
.sidebar-btn.active {
  background: white;
  color: #3B0764;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.sidebar-btn.coming-soon { opacity: 0.7; }
.badge {
  background: #FBBF24;
  color: #1e1e1e;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Main Content ── */
#content {
  flex: 1;
  overflow-y: auto;
  background: #EDE9FE;
}
.page { display: none; height: 100%; }
.page.active { display: flex; flex-direction: column; }

/* ── Home Page ── */
.home-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px;
  text-align: center;
}
.home-welcome h1 {
  color: #3B0764;
  font-size: 36px;
  margin-bottom: 8px;
}
.home-welcome p {
  color: #4B5563;
  font-size: 18px;
  margin-bottom: 36px;
}
.home-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 500px;
  width: 100%;
}
.home-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(59,7,100,0.12);
  border: 2px solid transparent;
}
.home-card:hover {
  transform: scale(1.05);
  border-color: #4C1D95;
  box-shadow: 0 8px 24px rgba(59,7,100,0.2);
}
.home-card-icon { font-size: 36px; margin-bottom: 8px; }
.home-card-title { font-weight: 700; color: #3B0764; font-size: 16px; }
.home-card-desc { color: #6B7280; font-size: 13px; margin-top: 4px; }

/* ── Coming Soon Page ── */
.coming-soon-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #3B0764;
}
.coming-soon-page h2 { font-size: 28px; margin-bottom: 8px; }
.coming-soon-page p { font-size: 18px; color: #5B21B6; }

/* ── Top Bar (reused across pages) ── */
.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #DDD6FE;
  min-height: 60px;
}
.top-bar .close-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #3B0764;
  font-weight: 700;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s;
}
.top-bar .close-btn:hover { background: #EDE9FE; }
.top-bar .search-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid #C4B5FD;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
}
.top-bar .search-input:focus { border-color: #4C1D95; }
.top-bar .add-btn {
  background: #3B0764;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
}
.top-bar .add-btn:hover { background: #2E1065; transform: scale(1.05); }

/* ── Chat Page ── */
.chat-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.chat-list {
  width: 280px;
  min-width: 280px;
  background: white;
  border-right: 1px solid #DDD6FE;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.chat-list-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #EDE9FE;
  transition: background 0.15s;
}
.chat-list-item:hover { background: #EDE9FE; }
.chat-list-item.active { background: #DDD6FE; }
.chat-list-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3B0764;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}
.chat-list-info { flex: 1; min-width: 0; }
.chat-list-name { font-weight: 600; font-size: 14px; color: #1e1e1e; }
.chat-list-preview {
  font-size: 12px;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #EDE9FE;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-bubble {
  max-width: 65%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}
.chat-bubble.mine {
  background: #3B0764;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.chat-bubble.theirs {
  background: white;
  color: #3B0764;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  border: 1px solid #DDD6FE;
}
.chat-bubble .bubble-sender {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.8;
}
.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #DDD6FE;
}
.chat-input-bar input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #C4B5FD;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
}
.chat-input-bar input:focus { border-color: #4C1D95; }
.chat-input-bar button {
  background: #3B0764;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-input-bar button:hover { background: #2E1065; }
.chat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #5B21B6;
  font-size: 16px;
}

/* ── Feed Page ── */
.feed-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.channel-list {
  width: 280px;
  min-width: 280px;
  background: white;
  border-right: 1px solid #DDD6FE;
  overflow-y: auto;
}
.channel-item {
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #EDE9FE;
  transition: background 0.15s;
}
.channel-item:hover { background: #EDE9FE; }
.channel-item.active { background: #DDD6FE; }
.channel-item-name { font-weight: 600; font-size: 14px; color: #3B0764; }
.channel-item-desc { font-size: 12px; color: #6B7280; margin-top: 2px; }
.channel-item-subs { font-size: 11px; color: #5B21B6; margin-top: 4px; }
.feed-main {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.feed-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #5B21B6;
  font-size: 16px;
}

/* ── Post Card (reused) ── */
.post-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(59,7,100,0.1);
  border: 1px solid #EDE9FE;
}
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3B0764;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.post-meta .post-author { font-weight: 600; color: #1e1e1e; font-size: 14px; }
.post-meta .post-time { font-size: 12px; color: #9CA3AF; }
.post-genre {
  margin-left: auto;
  background: #DDD6FE;
  color: #3B0764;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.post-content {
  font-size: 15px;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 12px;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.post-like-btn {
  background: none;
  border: 2px solid #C4B5FD;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  color: #4C1D95;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.post-like-btn:hover { background: #EDE9FE; }
.post-like-btn.liked {
  background: #3B0764;
  color: white;
  border-color: #3B0764;
}
.post-channel-tag {
  font-size: 12px;
  color: #5B21B6;
}

/* ── Post Comments ── */
.post-comment-btn {
  background: none;
  border: 2px solid #C4B5FD;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  color: #4C1D95;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.post-comment-btn:hover { background: #EDE9FE; }
.post-comment-btn.active {
  background: #F5F3FF;
  border-color: #7C3AED;
}
.post-comments {
  margin-top: 12px;
  border-top: 1px solid #EDE9FE;
  padding-top: 12px;
}
.comments-list {
  max-height: 300px;
  overflow-y: auto;
}
.comment-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}
.comment-item + .comment-item {
  border-top: 1px solid #F5F3FF;
}
.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5B21B6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: #1e1e1e;
}
.comment-time {
  font-weight: 400;
  color: #9CA3AF;
  font-size: 11px;
}
.comment-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
  margin-top: 2px;
  word-break: break-word;
}
.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.comment-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #C4B5FD;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.comment-input:focus {
  border-color: #7C3AED;
}
.comment-submit {
  background: #7C3AED;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-submit:hover {
  background: #5B21B6;
}

/* ── Post Media ── */
.post-media {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
}
.post-media img, .post-media video {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.post-media-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.post-media-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #F5F3FF;
  border: 2px solid #DDD6FE;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #3B0764;
  transition: all 0.2s;
}
.post-media-btn:hover {
  background: #EDE9FE;
  border-color: #7C3AED;
}

/* ── Membership Page ── */
.membership-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  overflow-y: auto;
  flex: 1;
}
.membership-page h2 {
  color: #3B0764;
  font-size: 28px;
  margin-bottom: 8px;
}
.membership-page .subtitle {
  color: #4B5563;
  margin-bottom: 32px;
}
.tier-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1100px;
}
.tier-card {
  background: white;
  border-radius: 20px;
  padding: 28px 24px;
  width: 200px;
  box-shadow: 0 4px 16px rgba(59,7,100,0.12);
  border: 2px solid #DDD6FE;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(59,7,100,0.2); }
.tier-card.current { border-color: #4C1D95; }
.tier-card h3 { color: #3B0764; font-size: 20px; margin-bottom: 4px; }
.tier-card .tier-price { color: #5B21B6; font-size: 14px; margin-bottom: 16px; }
.tier-card ul {
  list-style: none;
  text-align: left;
  font-size: 13px;
  color: #4B5563;
  margin-bottom: 20px;
  flex: 1;
}
.tier-card ul li {
  padding: 4px 0;
  border-bottom: 1px solid #EDE9FE;
}
.tier-card ul li::before { content: '✓ '; color: #4C1D95; font-weight: 700; }
.tier-card button {
  background: #3B0764;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
}
.tier-card button:hover { background: #2E1065; }
.tier-card button.current-btn {
  background: #DDD6FE;
  color: #3B0764;
  cursor: default;
}

/* ── For You Page ── */
.foryou-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.genre-sidebar {
  width: 240px;
  min-width: 240px;
  background: white;
  border-right: 1px solid #DDD6FE;
  overflow-y: auto;
  padding: 12px;
}
.genre-sidebar h3 {
  color: #3B0764;
  font-size: 16px;
  padding: 8px 12px;
  margin-bottom: 4px;
}
.genre-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #4B5563;
  transition: all 0.15s;
}
.genre-btn:hover { background: #EDE9FE; color: #3B0764; }
.genre-btn.active { background: #3B0764; color: white; font-weight: 600; }
.foryou-main {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ── Likes / Trending / Posts Pages ── */
.simple-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.simple-page .posts-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

/* ── Create Post / Create Channel Forms ── */
.create-form {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(59,7,100,0.1);
  border: 1px solid #EDE9FE;
}
.create-form h3 {
  color: #3B0764;
  margin-bottom: 12px;
}
.create-form textarea,
.create-form input,
.create-form select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #C4B5FD;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
  font-family: inherit;
  resize: vertical;
}
.create-form textarea:focus,
.create-form input:focus,
.create-form select:focus { border-color: #4C1D95; }
.create-form button {
  background: #3B0764;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.create-form button:hover { background: #2E1065; }

/* ── Account Page ── */
.account-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  gap: 24px;
}
.account-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  width: 500px;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(59,7,100,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.account-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #3B0764;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.account-card h2 { color: #3B0764; margin-bottom: 4px; }
.account-card .account-username { color: #6B7280; margin-bottom: 8px; }
.account-card .account-tier {
  display: inline-block;
  background: #DDD6FE;
  color: #3B0764;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.account-card input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #C4B5FD;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  text-align: center;
}
.account-card input:focus { border-color: #4C1D95; }
.account-card .btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.account-card .btn-row button {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  font-size: 14px;
}
.btn-primary { background: #3B0764; color: white; }
.btn-primary:hover { background: #2E1065; }
.btn-danger { background: #FEE2E2; color: #DC2626; }
.btn-danger:hover { background: #FECACA; }

/* ── Modal / Dialog ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: white;
  border-radius: 20px;
  padding: 32px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal h3 { color: #3B0764; margin-bottom: 16px; }
.modal input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #C4B5FD;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
}
.modal input:focus { border-color: #4C1D95; }
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.modal-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 14px;
  transition: background 0.2s;
}
.modal-actions .btn-cancel { background: #F3F4F6; color: #6B7280; }
.modal-actions .btn-cancel:hover { background: #E5E7EB; }

/* ── Channel Subscribe Button ── */
.subscribe-btn {
  background: #3B0764;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
}
.subscribe-btn:hover { background: #2E1065; }
.subscribe-btn.subscribed {
  background: #DDD6FE;
  color: #3B0764;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #A78BFA; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7C3AED; }

/* ── Access Denied ── */
.access-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #3B0764;
  padding: 40px;
  text-align: center;
}
.access-denied h2 { margin-bottom: 8px; }
.access-denied p { color: #4B5563; margin-bottom: 20px; }
.access-denied button {
  background: #3B0764;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.access-denied button:hover { background: #2E1065; }

/* ── Mini Games (Arcade Theme) ── */
@keyframes arcadeGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(167,139,250,0.3), 0 0 20px rgba(124,58,237,0.15); }
  50% { box-shadow: 0 0 16px rgba(167,139,250,0.5), 0 0 30px rgba(124,58,237,0.25); }
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}
/* ── Oreo AI Chat ── */
.oreo-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 100%;
}
.oreo-sidebar {
  width: 260px;
  min-width: 260px;
  background: #1a0533;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.oreo-new-chat-btn {
  margin: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.oreo-new-chat-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}
.oreo-conv-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 16px;
}
.oreo-conv-group-label {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 12px 6px;
}
.oreo-conv-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 2px;
}
.oreo-conv-item:hover {
  background: rgba(255,255,255,0.08);
}
.oreo-conv-item.active {
  background: rgba(255,255,255,0.14);
}
.oreo-conv-item-inner {
  flex: 1;
  min-width: 0;
}
.oreo-conv-title {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.oreo-conv-actions {
  display: none;
  gap: 4px;
  flex-shrink: 0;
}
.oreo-conv-item:hover .oreo-conv-actions {
  display: flex;
}
.oreo-conv-action-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s;
}
.oreo-conv-action-btn:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}
.oreo-delete-btn:hover {
  color: #f87171;
}
.oreo-conv-empty {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  text-align: center;
  padding: 32px 16px;
}

/* Oreo main area */
.oreo-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #EDE9FE;
  overflow: hidden;
}
.oreo-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px;
  text-align: center;
}
.oreo-welcome-icon {
  font-size: 72px;
  margin-bottom: 16px;
}
.oreo-welcome h2 {
  color: #3B0764;
  font-size: 28px;
  margin-bottom: 8px;
}
.oreo-welcome p {
  color: #4B5563;
  font-size: 16px;
  max-width: 400px;
  margin-bottom: 24px;
}
.oreo-start-btn {
  background: #3B0764;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.oreo-start-btn:hover {
  background: #2E1065;
  transform: scale(1.03);
}

/* Chat topbar */
.oreo-chat-topbar {
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #DDD6FE;
  min-height: 56px;
  display: flex;
  align-items: center;
}
.oreo-chat-title {
  font-weight: 600;
  color: #3B0764;
  font-size: 15px;
}

/* Messages area */
.oreo-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.oreo-empty-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #6B7280;
  font-size: 15px;
  text-align: center;
  min-height: 300px;
}
.oreo-msg {
  display: flex;
  gap: 12px;
  max-width: 85%;
}
.oreo-msg-user {
  align-self: flex-end;
  justify-content: flex-end;
}
.oreo-msg-assistant {
  align-self: flex-start;
}
.oreo-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3B0764;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.oreo-msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
.oreo-msg-bubble-user {
  background: #3B0764;
  color: white;
  border-bottom-right-radius: 6px;
}
.oreo-msg-bubble-assistant {
  background: white;
  color: #1e1e1e;
  border: 1px solid #DDD6FE;
  border-bottom-left-radius: 6px;
}

/* Input area */
.oreo-input-area {
  padding: 16px 24px;
  background: #EDE9FE;
}
.oreo-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: white;
  border: 2px solid #C4B5FD;
  border-radius: 24px;
  padding: 8px 8px 8px 20px;
  transition: border-color 0.2s;
  max-width: 800px;
  margin: 0 auto;
}
.oreo-input-wrap:focus-within {
  border-color: #7C3AED;
}
#oreo-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  line-height: 1.5;
  max-height: 150px;
  padding: 4px 0;
  background: transparent;
}
.oreo-send-btn {
  background: #3B0764;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.oreo-send-btn:hover {
  background: #2E1065;
  transform: scale(1.05);
}
.oreo-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.oreo-disclaimer {
  text-align: center;
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 8px;
}

/* Typing indicator */
.oreo-typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.oreo-typing span {
  width: 8px;
  height: 8px;
  background: #A78BFA;
  border-radius: 50%;
  animation: oreoBounce 1.4s infinite ease-in-out both;
}
.oreo-typing span:nth-child(1) { animation-delay: -0.32s; }
.oreo-typing span:nth-child(2) { animation-delay: -0.16s; }
.oreo-typing span:nth-child(3) { animation-delay: 0s; }
@keyframes oreoBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Oreo sidebar scrollbar */
.oreo-conv-list::-webkit-scrollbar { width: 4px; }
.oreo-conv-list::-webkit-scrollbar-track { background: transparent; }
.oreo-conv-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.oreo-conv-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ── Pinned Bottom Sidebar Button ── */
.sidebar-btn.pinned-bottom {
  margin-top: auto;
  background: rgba(255,215,0,0.2);
  border: 1px solid rgba(255,215,0,0.4);
  color: #FBBF24;
  font-weight: 700;
}
.sidebar-btn.pinned-bottom:hover {
  background: rgba(255,215,0,0.3);
}
.sidebar-btn.pinned-bottom.active {
  background: #FBBF24;
  color: #3B0764;
}

/* ── Settings Page ── */
.settings-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.settings-sidebar {
  width: 220px;
  min-width: 220px;
  background: white;
  border-right: 1px solid #DDD6FE;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-tab-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #4B5563;
  font-weight: 500;
  transition: all 0.15s;
}
.settings-tab-btn:hover { background: #EDE9FE; color: #3B0764; }
.settings-tab-btn.active { background: #3B0764; color: white; font-weight: 600; }
.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.settings-section {
  max-width: 600px;
}
.settings-section h3 {
  color: #3B0764;
  font-size: 18px;
  margin-bottom: 16px;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #EDE9FE;
}
.settings-row label:first-child {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
}
.settings-row input[type="range"] {
  width: 180px;
  accent-color: #7C3AED;
}
.settings-row span {
  font-size: 13px;
  color: #6B7280;
  min-width: 40px;
  text-align: right;
}
.settings-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.settings-action-btn {
  padding: 12px 16px;
  background: #F5F3FF;
  border: 2px solid #DDD6FE;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #3B0764;
  transition: all 0.2s;
}
.settings-action-btn:hover { background: #EDE9FE; border-color: #7C3AED; }
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-field label {
  font-size: 13px;
  font-weight: 600;
  color: #3B0764;
}
.settings-field input, .settings-field select {
  padding: 12px 14px;
  border: 2px solid #C4B5FD;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
}
.settings-field input:focus { border-color: #4C1D95; }

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #D1D5DB;
  border-radius: 26px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: #7C3AED; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* Parental Controls Grid */
.parental-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.parental-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #F9FAFB;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}

/* Blocked Users */
.blocked-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #FEF2F2;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}
.btn-small-danger {
  background: #DC2626;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}
.btn-secondary {
  background: #F3F4F6;
  color: #374151;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary:hover { background: #E5E7EB; }

/* ── Media Page ── */
.media-page {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.media-empty h3 { color: #3B0764; margin-bottom: 8px; }
.media-empty p { color: #6B7280; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.media-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(59,7,100,0.1);
}
.media-item:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(59,7,100,0.2); }
.media-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-item-info { padding: 10px 12px; }

/* ── Profiles Page ── */
.profiles-page {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.profile-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  width: 500px;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(59,7,100,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-avatar-display {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #EDE9FE;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 3px solid #7C3AED;
}
.profile-avatar-display:hover { transform: scale(1.05); border-color: #3B0764; }
.profile-stats {
  background: white;
  border-radius: 20px;
  padding: 24px;
  width: 500px;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(59,7,100,0.12);
}
.leaderboard-grid { display: flex; flex-direction: column; gap: 4px; }
.leaderboard-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #F9FAFB;
  border-radius: 8px;
}
.leaderboard-rank { font-weight: 700; color: #7C3AED; width: 40px; }
.leaderboard-game { flex: 1; font-size: 13px; color: #374151; }
.leaderboard-score { font-weight: 700; color: #3B0764; }

/* ── Short Videos Page ── */
.short-videos-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.short-video-card {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.short-video-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.short-video-visual {
  width: 100%;
  height: 100%;
  position: relative;
}
.short-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}
.short-video-sidebar {
  position: absolute;
  right: 16px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.short-video-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: white;
  font-size: 12px;
  cursor: pointer;
}
.short-video-action-icon { font-size: 28px; }
.short-video-info {
  position: absolute;
  bottom: 60px;
  left: 16px;
  right: 80px;
  color: white;
}
.short-video-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.short-video-avatar { font-size: 24px; }
.short-video-follow-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 8px;
}
.short-video-caption {
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.short-video-nav {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sv-nav-btn {
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.sv-nav-btn:hover { background: rgba(255,255,255,0.3); }
.filter-btn {
  padding: 12px;
  background: #F5F3FF;
  border: 2px solid #DDD6FE;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #3B0764;
  transition: all 0.2s;
}
.filter-btn:hover { background: #EDE9FE; border-color: #7C3AED; }

/* ── Mission Statement Page ── */
.mission-page {
  flex: 1;
  overflow-y: auto;
}
.mission-hero {
  background: linear-gradient(135deg, #3B0764, #7C3AED);
  padding: 60px 40px;
  text-align: center;
  color: white;
}
.mission-icon { font-size: 64px; margin-bottom: 16px; }
.mission-hero h1 { font-size: 36px; margin-bottom: 8px; }
.mission-tagline { font-size: 18px; opacity: 0.9; }
.mission-content { padding: 40px; max-width: 800px; margin: 0 auto; }
.mission-section { margin-bottom: 32px; }
.mission-section h2 { color: #3B0764; font-size: 24px; margin-bottom: 12px; }
.mission-section p { color: #4B5563; line-height: 1.7; font-size: 15px; }
.mission-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.mission-value-card {
  background: #F9FAFB;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #E5E7EB;
}
.mission-value-icon { font-size: 32px; margin-bottom: 8px; }
.mission-value-card h3 { color: #3B0764; font-size: 16px; margin-bottom: 4px; }
.mission-value-card p { color: #6B7280; font-size: 13px; line-height: 1.5; }
.mission-list {
  list-style: none;
  padding: 0;
}
.mission-list li {
  padding: 12px 0;
  border-bottom: 1px solid #EDE9FE;
  color: #4B5563;
  font-size: 14px;
  line-height: 1.5;
}
.mission-list li::before { content: '✦ '; color: #7C3AED; font-weight: 700; }

/* ── Ideas Page ── */
.ideas-page {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.ideas-sidebar {
  width: 250px;
  min-width: 250px;
  background: white;
  border-right: 1px solid #DDD6FE;
  overflow-y: auto;
}
.idea-list-item {
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #EDE9FE;
  transition: background 0.15s;
}
.idea-list-item:hover { background: #EDE9FE; }
.idea-list-item.active { background: #DDD6FE; }
.idea-list-title { font-weight: 600; font-size: 14px; color: #1F2937; }
.idea-list-date { font-size: 11px; color: #6B7280; margin-top: 2px; }
.ideas-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ideas-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 40px;
}
.ideas-empty h3 { color: #3B0764; margin-bottom: 8px; }
.ideas-empty p { color: #6B7280; max-width: 400px; }
.idea-editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #DDD6FE;
}
.idea-title-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #C4B5FD;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.idea-title-input:focus { border-color: #7C3AED; }
.idea-editor-actions { display: flex; gap: 8px; }
.idea-content-input {
  flex: 1;
  padding: 20px;
  border: none;
  outline: none;
  font-size: 15px;
  line-height: 1.6;
  resize: none;
  font-family: inherit;
}
.idea-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
  background: #F9FAFB;
  border-top: 1px solid #E5E7EB;
}

/* ── Donations Page ── */
.donations-page {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.donation-hero {
  text-align: center;
  margin-bottom: 32px;
}
.donation-progress-container {
  max-width: 500px;
  margin: 0 auto;
}
.donation-progress-bar {
  height: 24px;
  background: #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.donation-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C3AED, #A78BFA);
  border-radius: 12px;
  transition: width 0.5s;
}
.donation-progress-labels {
  display: flex;
  justify-content: space-between;
}
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 32px;
}
.donation-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(59,7,100,0.1);
}
.donation-card h3 { color: #3B0764; margin-bottom: 16px; }
.donation-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.donation-amount-btn {
  padding: 10px 20px;
  background: #F5F3FF;
  border: 2px solid #DDD6FE;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  color: #3B0764;
  font-size: 16px;
  transition: all 0.2s;
}
.donation-amount-btn:hover { background: #EDE9FE; border-color: #7C3AED; }
.donors-list { display: flex; flex-direction: column; gap: 8px; }
.donor-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #EDE9FE;
  font-size: 13px;
}
.donor-name { flex: 1; font-weight: 500; color: #1F2937; }
.donor-amount { font-weight: 700; color: #22C55E; margin-right: 12px; }
.donor-time { color: #9CA3AF; font-size: 11px; }
.donation-unlock-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.donation-unlock-section h3 { color: #3B0764; margin-bottom: 16px; }
.unlock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.unlock-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(59,7,100,0.1);
}
.unlock-item span { font-size: 32px; display: block; margin-bottom: 4px; }
.unlock-item div { font-size: 13px; font-weight: 600; color: #3B0764; }

/* ── News Page ── */
.news-page {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.news-header {
  margin-bottom: 24px;
}
.news-header h2 { color: #3B0764; margin-bottom: 4px; }
.news-date { color: #6B7280; font-size: 14px; }
.news-region { color: #9CA3AF; font-size: 12px; margin-top: 4px; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-article {
  background: white;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(59,7,100,0.1);
  border: 2px solid transparent;
}
.news-article:hover { border-color: #DDD6FE; }
.news-article.expanded { border-color: #7C3AED; }
.news-article-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.news-icon { font-size: 28px; flex-shrink: 0; }
.news-article-meta h3 { color: #1F2937; font-size: 16px; margin-bottom: 4px; }
.news-article-info { display: flex; gap: 12px; align-items: center; }
.news-category {
  background: #EDE9FE;
  color: #5B21B6;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.news-time { color: #9CA3AF; font-size: 12px; }
.news-article-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #EDE9FE;
}
.news-article-content p { color: #4B5563; font-size: 14px; line-height: 1.6; }
.news-thumb {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.news-source {
  font-size: 11px;
  color: #6B7280;
  display: inline-flex;
  align-items: center;
}

/* ── Mobile Hamburger ── */
#mobile-menu-btn {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1001;
  background: #7C3AED;
  color: white;
  border: none;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

/* ── Mobile Responsiveness ── */
@media (max-width: 768px) {
  #mobile-menu-btn { display: block; }
  #sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: left 0.3s ease;
  }
  #sidebar.open { left: 0; }
  #content { margin-left: 0; width: 100%; }
  .auth-container { width: 90%; min-width: 0; }
  .game-card { width: 100% !important; }
  .chat-layout { flex-direction: column; }
  .chat-list { max-height: 200px; overflow-y: auto; }
  .feed-layout { flex-direction: column; }
  .channel-list { max-height: 150px; overflow-y: auto; }
  .foryou-layout { flex-direction: column; }
  .genre-sidebar { max-height: 120px; overflow-y: auto; }
  .settings-layout { flex-direction: column; }
  .settings-sidebar { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .tier-cards { flex-direction: column; }
  .top-bar { padding-left: 52px; }
  .home-cards { grid-template-columns: 1fr; }
}
