/* ============================================================
   FatakNews.in — Main Stylesheet
   Social-media inspired, youth-first design
   ============================================================ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --red:       #FF2D2D;
  --red-dark:  #C0001A;
  --orange:    #FF6B1A;
  --yellow:    #FFD700;
  --green:     #00C853;
  --blue:      #2979FF;
  --purple:    #AA00FF;
  --bg:        #0A0A0F;
  --bg2:       #111118;
  --bg3:       #1A1A24;
  --card:      #16161F;
  --card2:     #1E1E2A;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --text:      #F0F0F5;
  --muted:     #7A7A95;
  --muted2:    #5A5A75;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --transition: 0.2s ease;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }
body { font-family: 'Space Grotesk', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: clip; max-width: 100%; }
body.home-page,
body.home-page .page-wrapper,
body.home-page .home-grid { background: #fff; }
body.home-page .page-wrapper,
body.home-page .home-grid {
  background:
    linear-gradient(180deg, #F2F2F5 0%, #E8E8EE 100%);
}
@media (min-width: 769px) {
  body.home-page .page-wrapper,
  body.home-page .home-grid {
    background:
      linear-gradient(180deg, #F7F7F9 0%, #EEEEF3 100%);
  }
}
body.home-page .home-grid.home-desktop-only { display: block; }
body.home-page .cat-tab {
  background: #fff;
  border-color: var(--cat-color, #DBDBDB);
  color: #111;
}
body.home-page .cat-tab:hover {
  color: #111;
  border-color: var(--cat-color, #111);
  background: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--cat-color, #111) 22%, transparent);
}
body.home-page .cat-tab.active {
  background: #fff;
  color: #111;
  border-color: var(--cat-color, #111);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--cat-color, #111) 18%, transparent);
}
body.home-page .featured-card,
body.home-page .news-card {
  background: #fff;
  border-color: #DBDBDB;
}
body.home-page .news-card {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #FF2D2D, #FFD700, #FF6B1A, var(--card-cat-color, #FF2D2D), #FF2D2D) border-box;
  background-size: 100% 100%, 220% 220%;
  animation: home-card-border-flow 5s linear infinite;
  /* Keep cards visible even if the reveal observer does not run. */
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
body.home-page .news-card.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
}
body.home-page .news-card.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}
body.home-page .featured-card:hover {
  background: #fff;
  border-color: #CFCFCF;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
body.home-page .news-card:hover {
  background: #fff;
  border-color: #CFCFCF;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--card-cat-color, #FF2D2D) 24%, transparent);
}
body.home-page .featured-card-body,
body.home-page .news-card-body {
  background: #fff;
}
body.home-page .featured-card-title,
body.home-page .news-card-title,
body.home-page .featured-card-title a,
body.home-page .news-card-title a {
  color: #111;
}
body.home-page .featured-card-meta,
body.home-page .news-card-meta,
body.home-page .news-card-actions,
body.home-page .news-card-actions .action-btn,
body.home-page .news-card-actions span.action-btn {
  color: #666;
}
body.home-page .news-card-actions {
  border-top: 1px solid #EFEFEF;
}
body.home-page .news-card-actions .action-btn:hover {
  color: #111;
  background: #F5F5F5;
}
body.trending-page .page-wrapper,
body.trending-page .home-grid,
body.explore-page .page-wrapper,
body.explore-page .home-grid,
body.community-page .page-wrapper,
body.community-page .home-grid {
  background: #fff;
}
body.explore-page .page-wrapper,
body.explore-page .home-grid {
  background:
    linear-gradient(180deg, #E8E8EC 0%, #DADAE0 100%);
}
body.trending-page .page-wrapper,
body.trending-page .home-grid {
  background:
    linear-gradient(180deg, #E8E8EC 0%, #DADAE0 100%);
}
body.community-page .page-wrapper,
body.community-page .home-grid {
  background:
    linear-gradient(180deg, #E8E8EC 0%, #DADAE0 100%);
}
body.trending-page .sidebar-widget,
body.trending-page .news-card,
body.explore-page .sidebar-widget,
body.explore-page .explore-card,
body.community-page .sidebar-widget,
body.community-page .community-card {
  background: #fff;
  border: 1px solid #DBDBDB;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);
}
body.trending-page .page-hero,
body.explore-page .explore-hero,
body.community-page .page-hero {
  margin-bottom: 24px;
  background: #fff;
}
body.trending-page .page-hero,
body.explore-page .explore-hero {
  box-shadow: 0 16px 32px rgba(255, 107, 26, 0.08);
}
body.community-page .page-hero {
  box-shadow: 0 16px 32px rgba(41, 121, 255, 0.08);
}
body.trending-page .news-card,
body.explore-page .explore-card,
body.community-page .community-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
body.trending-page .news-card:hover,
body.explore-page .explore-card:hover,
body.community-page .community-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-cat-color, #FF2D2D) 55%, #DBDBDB);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--card-cat-color, #FF2D2D) 18%, transparent);
}
body.trending-page .news-card-body,
body.explore-page .explore-card,
body.community-page .community-card {
  color: #111;
}
body.trending-page .news-card-title,
body.trending-page .news-card-title a,
body.explore-page .explore-card h2,
body.explore-page .explore-card h2 a,
body.community-page .community-card-title,
body.community-page .community-card-title a,
body.trending-page .trending-title a {
  color: #111;
}
body.trending-page .news-card-meta,
body.trending-page .trending-meta,
body.explore-page .explore-meta,
body.explore-page .explore-summary,
body.explore-page .explore-social-label,
body.community-page .community-user span,
body.community-page .community-card-excerpt,
body.trending-page .widget-title,
body.explore-page .widget-title,
body.community-page .widget-title {
  color: #666;
}
body.explore-page .explore-meta { color: #5F5878; }
body.explore-page .explore-summary { color: #4C465F; }
body.explore-page .explore-social-label { color: #5B5572; }
body.explore-page .explore-caption { color: #3F3955; }
body.explore-page .explore-actions,
body.explore-page .explore-actions .action-btn,
body.explore-page .explore-actions span.action-btn { color: #5F5878; }
body.explore-page .explore-actions .action-btn:hover { color: #1E1A33; }
body.trending-page .widget-title::after,
body.explore-page .widget-title::after,
body.community-page .widget-title::after {
  background: #EFEFEF;
}
body.community-page .community-card-footer,
body.trending-page .trending-item,
body.explore-page .explore-actions {
  border-color: #EFEFEF;
}
body.explore-page .explore-kicker span {
  background: #fff;
  color: #111;
  border: 1px solid #DBDBDB;
}
body.explore-page .explore-hero,
body.explore-page .explore-grid,
body.explore-page .explore-card,
body.explore-page .explore-card > *,
body.explore-page .explore-card-head > *,
body.explore-page .sidebar-widget {
  min-width: 0;
  max-width: 100%;
}
body.explore-page .explore-hero,
body.explore-page .explore-card,
body.explore-page .sidebar-widget {
  width: 100%;
  overflow: hidden;
}
body.explore-page .explore-summary,
body.explore-page .explore-caption,
body.explore-page .explore-card h2,
body.explore-page .explore-card h2 a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.explore-page .explore-embed {
  background: #FAFAFA;
  border-color: #EAEAEA;
}
body.explore-page .explore-embed,
body.explore-page .explore-embed iframe,
body.explore-page .explore-embed .instagram-media,
body.explore-page .explore-embed .twitter-tweet,
body.explore-page .explore-embed .twitter-tweet-rendered,
body.explore-page .explore-embed .tiktok-embed {
  width: 100% !important;
  max-width: 100% !important;
}
body.explore-page .explore-embed .instagram-media {
  min-width: 0 !important;
  margin: 0 auto !important;
}
body.explore-page .explore-embed .twitter-tweet,
body.explore-page .explore-embed .twitter-tweet-rendered {
  margin: 0 auto !important;
}
body.trending-page .action-btn:hover,
body.explore-page .action-btn:hover,
body.community-page .action-btn:hover {
  color: #111;
  background: #F5F5F5;
}
body.community-page .btn-write {
  box-shadow: 0 14px 24px rgba(255, 45, 45, 0.12);
}
body.category-page .page-wrapper,
body.category-page .home-grid {
  background: linear-gradient(180deg, #E8E8EC 0%, #DADAE0 100%);
}
body.category-page .sidebar-widget,
body.category-page .news-card {
  background: #fff;
  border: 1px solid #DBDBDB;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);
}
body.category-page .category-page-hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.98)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--category-accent, #FF2D2D) 24%, #fff), rgba(255,255,255,0.9)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 16px 32px color-mix(in srgb, var(--category-accent, #FF2D2D) 12%, transparent);
}
body.category-page .category-page-title {
  font-family: 'Baloo 2', cursive;
  font-size: 38px;
  line-height: 1.1;
  color: var(--category-accent, #FF2D2D);
}
body.category-page .category-page-desc {
  color: #6F688A;
  margin-top: 8px;
}
body.category-page .news-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
body.category-page .news-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-cat-color, #FF2D2D) 55%, #DBDBDB);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--card-cat-color, #FF2D2D) 18%, transparent);
}
body.category-page .news-card-body,
body.category-page .news-card-title,
body.category-page .news-card-title a,
body.category-page .tag-chip,
body.category-page .widget-title,
body.category-page .action-btn {
  color: #111;
}
body.category-page .news-card-meta,
body.category-page .news-card-actions,
body.category-page .news-card-actions .action-btn,
body.category-page .news-card-actions span.action-btn,
body.category-page .widget-title,
body.category-page .category-page-desc,
  body.category-page .sidebar-widget p {
  color: #666;
}
body.category-page .news-card-actions { border-top: 1px solid #EFEFEF; }
body.category-page .widget-title::after { background: #EFEFEF; }
body.category-page .action-btn:hover {
  color: #111;
  background: #F5F5F5;
}
body.category-page .tag-chip {
  background: #fff;
  border-color: #DBDBDB;
}
body.category-page .tag-chip:hover {
  color: #111;
  border-color: #CFCFCF;
  background: #FAFAFA;
}
body.category-page .ticker-wrap { background: #fff; border-bottom: 1px solid #F0E6F3; }
body.category-page .ticker-label { background: var(--red); color: #fff; }
body.category-page .ticker-track span { color: #111; }
body.category-page .ticker-track span::before { color: #FF8A2A; }
body.category-page .ticker-track a { color: #111; }
body.category-page .navbar {
  background: #FCF8F3;
  border-bottom: 1px solid rgba(95, 84, 150, 0.14);
  backdrop-filter: none;
}
body.category-page .logo-text { color: #2C2944; }
body.category-page .nav-search input {
  background: #FCF8F3;
  border-color: #E7E1F5;
  color: #27233D;
}
body.category-page .nav-search i { color: #8A83A5; }
body.category-page .nav-search input:focus {
  background: #FCF8F3;
  border-color: #FF5A5F;
}
body.category-page .nav-link { color: #6F688A; }
body.category-page .nav-link:hover,
body.category-page .nav-link.active {
  color: #27233D;
  background: #F6F1FF;
}
body.category-page .btn-ghost {
  border-color: #E7E1F5;
  color: #6F688A;
}
body.category-page .btn-ghost:hover {
  border-color: #FF5A5F;
  color: #FF5A5F;
}
body.category-page .nav-notif {
  background: #F3EEFF;
  color: #7D73A8;
  box-shadow: inset 0 0 0 1px rgba(130, 118, 186, 0.12);
}
body.category-page .nav-notif:hover {
  color: #27233D;
  background: #EEE8F7;
}
body.category-page .nav-avatar { border-color: #E7E1F5; }
body.category-page .user-menu,
body.category-page .notif-panel,
body.category-page .search-dropdown {
  background: #FCF8F3;
  border-color: #E7E1F5;
}
body.category-page .user-menu-header,
body.category-page .notif-item:hover,
body.category-page .user-menu-links a:hover,
body.category-page .search-result-item:hover {
  background: #F8F4FF;
}
body.category-page .notif-header,
body.category-page .notif-item,
body.category-page .user-menu-links hr,
body.category-page .search-result-item {
  border-color: #EEE8F7;
}
body.category-page .notif-item p,
body.category-page .user-menu-header span,
body.category-page .user-menu-links a,
body.category-page .search-result-item {
  color: #6F688A;
}
body.category-page .notif-item p strong,
body.category-page .user-menu-header strong {
  color: #27233D;
}
@keyframes home-card-border-flow {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 200% 50%; }
}

@keyframes mobile-spotlight-glow {
  0%, 100% {
    box-shadow:
      0 20px 40px rgba(41, 37, 63, 0.10),
      0 6px 18px rgba(255, 107, 26, 0.14);
  }
  50% {
    box-shadow:
      0 24px 46px rgba(41, 37, 63, 0.16),
      0 10px 24px rgba(255, 107, 26, 0.24);
  }
}
@keyframes mobile-spotlight-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home-page .news-card {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .mobile-home-card,
  .mobile-home-trendingcard {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ─── Ticker ────────────────────────────────────────────────── */
.ticker-wrap { background: var(--red); overflow: hidden; position: relative; height: 36px; display: flex; align-items: center; }
.ticker-label { position: absolute; left: 0; top: 0; height: 100%; background: var(--bg); color: var(--red); font-weight: 800; font-size: 11px; padding: 0 18px; display: flex; align-items: center; gap: 6px; letter-spacing: 2px; text-transform: uppercase; z-index: 2; white-space: nowrap; }
.ticker-inner { padding-left: 140px; overflow: hidden; width: 100%; }
.ticker-track { display: flex; gap: 60px; white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker-track span { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; }
.ticker-track span::before { content: "\26A1\0020"; }
.ticker-track a { color: #fff; }
.ticker-track a:hover { text-decoration: underline; }
body.home-page .ticker-wrap,
body.explore-page .ticker-wrap,
body.community-page .ticker-wrap,
body.trending-page .ticker-wrap { background: #fff; border-bottom: 1px solid #F0E6F3; }
body.home-page .ticker-label,
body.explore-page .ticker-label,
body.community-page .ticker-label,
body.trending-page .ticker-label { background: var(--red); color: #fff; }
body.home-page .ticker-track span,
body.explore-page .ticker-track span,
body.community-page .ticker-track span,
body.trending-page .ticker-track span { color: #111; }
body.home-page .ticker-track span::before,
body.explore-page .ticker-track span::before,
body.community-page .ticker-track span::before,
body.trending-page .ticker-track span::before { color: #FF8A2A; }
body.home-page .ticker-track a,
body.explore-page .ticker-track a,
body.community-page .ticker-track a,
body.trending-page .ticker-track a { color: #111; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar { background: rgba(10,10,15,0.96); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: 62px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-brandcopy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.logo-text { font-family: 'Baloo 2', cursive; font-size: 22px; font-weight: 700; }
.logo-text strong { color: var(--red); }
.nav-brand-slogan { display: none; font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #8A83A5; line-height: 1.2; }
.nav-search { flex: 1; max-width: 420px; position: relative; }
.nav-search form { position: relative; }
.nav-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.nav-search input { width: 100%; background: var(--bg3); border: 1px solid var(--border); color: var(--text); padding: 10px 16px 10px 40px; border-radius: 50px; font-size: 14px; transition: var(--transition); }
.nav-search input:focus { outline: none; border-color: var(--red); background: var(--card2); }
.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; z-index: 100; max-height: 400px; overflow-y: auto; }
.search-dropdown.show { display: block; }
.search-result-item { padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.search-result-item:hover { background: var(--bg3); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 50px; font-size: 14px; font-weight: 500; color: var(--muted); transition: var(--transition); cursor: pointer; white-space: nowrap; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg3); }
.nav-link.active i { color: var(--red); }
.nav-dropdown-trigger { user-select: none; }
.mega-dropdown { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; min-width: 800px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; transform: translateX(-50%) translateY(8px); }
.nav-dropdown-trigger:hover .mega-dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); display: grid; }
.mega-col { display: flex; flex-direction: column; gap: 6px; }
.mega-head { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.mega-item { font-size: 13px; color: var(--muted); padding: 4px 0; transition: var(--transition); }
.mega-item:hover { color: var(--text); padding-left: 4px; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.btn-write { background: var(--red); color: #fff; padding: 8px 18px; border-radius: 50px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.btn-write:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { padding: 8px 18px; border: 1px solid var(--border2); border-radius: 50px; font-size: 14px; font-weight: 500; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-primary { background: var(--red); color: #fff; padding: 8px 18px; border-radius: 50px; font-size: 14px; font-weight: 600; transition: var(--transition); }
.btn-primary:hover { background: var(--red-dark); }
.nav-notif { position: relative; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg3); font-size: 16px; color: var(--muted); transition: var(--transition); }
.nav-notif:hover { color: var(--text); background: var(--card2); }
.nav-mobile-search { display: none; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--bg3); font-size: 16px; color: var(--muted); transition: var(--transition); }
.nav-mobile-search:hover { color: var(--text); background: var(--card2); }
.notif-badge { position: absolute; top: 4px; right: 4px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.notif-panel { display: none; position: absolute; right: 0; top: calc(100% + 12px); width: 360px; background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 200; }
.nav-notif.open .notif-panel { display: block; }
.notif-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.notif-header button { font-size: 12px; color: var(--red); background: none; border: none; cursor: pointer; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { padding: 14px 20px; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--border); transition: var(--transition); }
.notif-item:hover { background: var(--bg3); }
.notif-item.unread { border-left: 3px solid var(--red); }
.notif-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notif-item p { font-size: 13px; color: var(--muted); }
.notif-item p strong { color: var(--text); }
.notif-item time { font-size: 11px; color: var(--muted2); }
.nav-user { position: relative; cursor: pointer; }
.nav-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border2); transition: var(--transition); }
.nav-user:hover .nav-avatar { border-color: var(--red); }
.user-menu { display: none; position: absolute; right: 0; top: calc(100% + 12px); width: 260px; background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 200; overflow: hidden; }
.nav-user.open .user-menu { display: block; }
.user-menu-header { padding: 18px; display: flex; align-items: center; gap: 12px; background: var(--bg3); }
.user-menu-header img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.user-menu-header strong { display: block; font-size: 14px; }
.user-menu-header span { font-size: 12px; color: var(--muted); }
.user-menu-links { padding: 8px 0; }
.user-menu-links a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; font-size: 14px; color: var(--muted); transition: var(--transition); }
.user-menu-links a:hover { color: var(--text); background: var(--bg3); }
.user-menu-links a i { width: 16px; text-align: center; }
.user-menu-links hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.text-red { color: var(--red) !important; }
.mobile-menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid var(--border); background: var(--bg3); }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav-overlay { display: none; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 84px;
  right: 14px;
  width: min(88vw, 340px);
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 16px 14px;
  border-radius: 24px;
  background: rgba(255,255,255,0.98);
  border: 1px solid #ECE7F6;
  box-shadow: 0 22px 48px rgba(30, 24, 64, 0.18);
  z-index: 1260;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: 0.22s ease;
}
.mobile-nav.open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 14px; font-size: 15px; color: #6F688A; transition: 0.2s ease; border-radius: 12px; }
.mobile-nav-link:hover { color: #27233D; background: #F8F4FF; }
.mobile-nav-link i { width: 18px; text-align: center; color: #7D73A8; }
.mobile-nav-adminmenu { margin: -2px -2px 0; border-radius: 26px; overflow: hidden; border: 1px solid #EEE8F7; background: #FFFDFB; }
.mobile-nav-adminmenuhead { display: flex; align-items: center; gap: 16px; padding: 18px 18px 16px; background: linear-gradient(180deg, #F5F0FF 0%, #FBF8FF 100%); }
.mobile-nav-adminavatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mobile-nav-adminmeta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-adminmeta strong { font-size: 18px; font-weight: 800; line-height: 1.2; color: #2C2944; }
.mobile-nav-adminmeta span { font-size: 13px; color: #7D73A8; }
.mobile-nav-adminlinks { display: flex; flex-direction: column; padding-top: 10px; background: #FFFDFB; }
.mobile-nav-adminlinks .mobile-nav-link { gap: 14px; padding: 16px 18px; color: #6F688A; border-top: 1px solid #F0EBF8; border-radius: 0; }
.mobile-nav-adminlinks .mobile-nav-link i { color: #7D73A8; }
.mobile-nav-adminfooter { border-top: 1px solid #F0EBF8; margin-top: 10px; padding-bottom: 14px; background: #FFFDFB; }
.mobile-nav-adminfooter .mobile-nav-link { gap: 14px; padding: 18px; border-radius: 0; }
.mobile-nav-adminlogout,
.mobile-nav-adminlogout i { color: #FF4B4B !important; }
.mobile-nav-social { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; width: 100%; padding: 12px 18px 0; }
.mobile-nav-social a { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F5F1FD; border: 1px solid #E7E1F5; color: #7D73A8; font-size: 16px; transition: 0.2s ease; }
.mobile-nav-social a:hover { color: #FF3B57; border-color: #FFCCD6; background: #FFF6F8; }

/* ─── Page Wrapper ──────────────────────────────────────────── */
body.home-page .navbar,
body.trending-page .navbar,
body.explore-page .navbar,
body.community-page .navbar,
body.search-page .navbar,
body.profile-page .navbar,
body.single-post-page .navbar {
  background: #FCF8F3;
  border-bottom: 1px solid rgba(95, 84, 150, 0.14);
  backdrop-filter: none;
}
body.home-page .logo-text,
body.trending-page .logo-text,
body.explore-page .logo-text,
body.community-page .logo-text,
body.search-page .logo-text,
body.profile-page .logo-text,
body.single-post-page .logo-text { color: #2C2944; }
body.home-page .nav-search input,
body.trending-page .nav-search input,
body.explore-page .nav-search input,
body.community-page .nav-search input,
body.search-page .nav-search input,
body.profile-page .nav-search input,
body.single-post-page .nav-search input {
  background: #FCF8F3;
  border-color: #E7E1F5;
  color: #27233D;
}
body.home-page .nav-search i,
body.trending-page .nav-search i,
body.explore-page .nav-search i,
body.community-page .nav-search i,
body.search-page .nav-search i,
body.profile-page .nav-search i,
body.single-post-page .nav-search i { color: #8A83A5; }
body.home-page .nav-search input:focus,
body.trending-page .nav-search input:focus,
body.explore-page .nav-search input:focus,
body.community-page .nav-search input:focus,
body.search-page .nav-search input:focus,
body.profile-page .nav-search input:focus,
body.single-post-page .nav-search input:focus {
  background: #FCF8F3;
  border-color: #FF5A5F;
}
body.home-page .nav-link,
body.trending-page .nav-link,
body.explore-page .nav-link,
body.community-page .nav-link,
body.search-page .nav-link,
body.profile-page .nav-link,
body.single-post-page .nav-link { color: #6F688A; }
body.home-page .nav-link:hover,
body.home-page .nav-link.active,
body.trending-page .nav-link:hover,
body.trending-page .nav-link.active,
body.explore-page .nav-link:hover,
body.explore-page .nav-link.active,
body.community-page .nav-link:hover,
body.community-page .nav-link.active,
body.search-page .nav-link:hover,
body.search-page .nav-link.active,
body.profile-page .nav-link:hover,
body.profile-page .nav-link.active,
body.single-post-page .nav-link:hover,
body.single-post-page .nav-link.active {
  color: #27233D;
  background: #F6F1FF;
}
body.home-page .btn-ghost,
body.trending-page .btn-ghost,
body.explore-page .btn-ghost,
body.community-page .btn-ghost,
body.search-page .btn-ghost,
body.profile-page .btn-ghost,
body.single-post-page .btn-ghost {
  border-color: #E7E1F5;
  color: #6F688A;
}
body.home-page .btn-ghost:hover,
body.trending-page .btn-ghost:hover,
body.explore-page .btn-ghost:hover,
body.community-page .btn-ghost:hover,
body.search-page .btn-ghost:hover,
body.profile-page .btn-ghost:hover,
body.single-post-page .btn-ghost:hover {
  border-color: #FF5A5F;
  color: #FF5A5F;
}
body.home-page .nav-notif,
body.trending-page .nav-notif,
body.explore-page .nav-notif,
body.community-page .nav-notif,
body.search-page .nav-notif,
body.profile-page .nav-notif,
body.single-post-page .nav-notif {
  background: #F3EEFF;
  color: #7D73A8;
  box-shadow: inset 0 0 0 1px rgba(130, 118, 186, 0.12);
}
body.home-page .nav-notif:hover,
body.trending-page .nav-notif:hover,
body.explore-page .nav-notif:hover,
body.community-page .nav-notif:hover,
body.search-page .nav-notif:hover,
body.profile-page .nav-notif:hover,
body.single-post-page .nav-notif:hover {
  color: #27233D;
  background: #EEE8F7;
}
body.home-page .nav-avatar,
body.trending-page .nav-avatar,
body.explore-page .nav-avatar,
body.community-page .nav-avatar,
body.search-page .nav-avatar,
body.profile-page .nav-avatar,
body.single-post-page .nav-avatar { border-color: #E7E1F5; }
body.home-page .nav-mobile-search,
body.trending-page .nav-mobile-search,
body.explore-page .nav-mobile-search,
body.community-page .nav-mobile-search,
body.profile-page .nav-mobile-search,
body.single-post-page .nav-mobile-search,
body.category-page .nav-mobile-search {
  background: #F3EEFF;
  color: #7D73A8;
  box-shadow: inset 0 0 0 1px rgba(130, 118, 186, 0.12);
}
body.home-page .nav-mobile-search:hover,
body.trending-page .nav-mobile-search:hover,
body.explore-page .nav-mobile-search:hover,
body.community-page .nav-mobile-search:hover,
body.profile-page .nav-mobile-search:hover,
body.single-post-page .nav-mobile-search:hover,
body.category-page .nav-mobile-search:hover {
  color: #27233D;
  background: #EEE8F7;
}
body.home-page .user-menu,
body.home-page .notif-panel,
body.home-page .search-dropdown,
body.trending-page .user-menu,
body.trending-page .notif-panel,
body.trending-page .search-dropdown,
body.explore-page .user-menu,
body.explore-page .notif-panel,
body.explore-page .search-dropdown,
body.community-page .user-menu,
body.community-page .notif-panel,
body.community-page .search-dropdown,
body.search-page .user-menu,
body.search-page .notif-panel,
body.search-page .search-dropdown,
body.profile-page .user-menu,
body.profile-page .notif-panel,
body.profile-page .search-dropdown,
body.single-post-page .user-menu,
body.single-post-page .notif-panel,
body.single-post-page .search-dropdown {
  background: #FCF8F3;
  border-color: #E7E1F5;
}
body.home-page .user-menu-header,
body.home-page .notif-item:hover,
body.home-page .user-menu-links a:hover,
body.home-page .search-result-item:hover,
body.trending-page .user-menu-header,
body.trending-page .notif-item:hover,
body.trending-page .user-menu-links a:hover,
body.trending-page .search-result-item:hover,
body.explore-page .user-menu-header,
body.explore-page .notif-item:hover,
body.explore-page .user-menu-links a:hover,
body.explore-page .search-result-item:hover,
body.community-page .user-menu-header,
body.community-page .notif-item:hover,
body.community-page .user-menu-links a:hover,
body.community-page .search-result-item:hover,
body.search-page .user-menu-header,
body.search-page .notif-item:hover,
body.search-page .user-menu-links a:hover,
body.search-page .search-result-item:hover,
body.profile-page .user-menu-header,
body.profile-page .notif-item:hover,
body.profile-page .user-menu-links a:hover,
body.profile-page .search-result-item:hover,
body.single-post-page .user-menu-header,
body.single-post-page .notif-item:hover,
body.single-post-page .user-menu-links a:hover,
body.single-post-page .search-result-item:hover { background: #F8F4FF; }
body.home-page .notif-header,
body.home-page .notif-item,
body.home-page .user-menu-links hr,
body.home-page .search-result-item,
body.trending-page .notif-header,
body.trending-page .notif-item,
body.trending-page .user-menu-links hr,
body.trending-page .search-result-item,
body.explore-page .notif-header,
body.explore-page .notif-item,
body.explore-page .user-menu-links hr,
body.explore-page .search-result-item,
body.community-page .notif-header,
body.community-page .notif-item,
body.community-page .user-menu-links hr,
body.community-page .search-result-item,
body.search-page .notif-header,
body.search-page .notif-item,
body.search-page .user-menu-links hr,
body.search-page .search-result-item,
body.profile-page .notif-header,
body.profile-page .notif-item,
body.profile-page .user-menu-links hr,
body.profile-page .search-result-item,
body.single-post-page .notif-header,
body.single-post-page .notif-item,
body.single-post-page .user-menu-links hr,
body.single-post-page .search-result-item { border-color: #EEE8F7; }
body.home-page .notif-item p,
body.home-page .user-menu-header span,
body.home-page .user-menu-links a,
body.home-page .search-result-item,
body.trending-page .notif-item p,
body.trending-page .user-menu-header span,
body.trending-page .user-menu-links a,
body.trending-page .search-result-item,
body.explore-page .notif-item p,
body.explore-page .user-menu-header span,
body.explore-page .user-menu-links a,
body.explore-page .search-result-item,
body.community-page .notif-item p,
body.community-page .user-menu-header span,
body.community-page .user-menu-links a,
body.community-page .search-result-item,
body.search-page .notif-item p,
body.search-page .user-menu-header span,
body.search-page .user-menu-links a,
body.search-page .search-result-item,
body.profile-page .notif-item p,
body.profile-page .user-menu-header span,
body.profile-page .user-menu-links a,
body.profile-page .search-result-item,
body.single-post-page .notif-item p,
body.single-post-page .user-menu-header span,
body.single-post-page .user-menu-links a,
body.single-post-page .search-result-item { color: #6F688A; }
body.home-page .notif-item p strong,
body.home-page .user-menu-header strong,
body.trending-page .notif-item p strong,
body.trending-page .user-menu-header strong,
body.explore-page .notif-item p strong,
body.explore-page .user-menu-header strong,
body.community-page .notif-item p strong,
body.community-page .user-menu-header strong,
body.search-page .notif-item p strong,
body.search-page .user-menu-header strong,
body.profile-page .notif-item p strong,
body.profile-page .user-menu-header strong,
body.single-post-page .notif-item p strong,
body.single-post-page .user-menu-header strong { color: #27233D; }
.search-page,
body.search-page .page-wrapper,
body.search-page .home-grid {
  background: #fff;
}
body.search-page .page-wrapper,
body.search-page .home-grid {
  background: linear-gradient(180deg, #E8E8EC 0%, #DADAE0 100%);
}
body.search-page .sidebar-widget,
body.search-page .news-card {
  background: #fff;
  border: 1px solid #DBDBDB;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);
}
body.search-page .news-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
body.search-page .news-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-cat-color, #FF2D2D) 55%, #DBDBDB);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--card-cat-color, #FF2D2D) 18%, transparent);
}
body.search-page .news-card-body,
body.search-page .news-card-title,
body.search-page .news-card-title a,
body.search-page .suggest-info strong,
body.search-page .widget-title,
body.search-page .action-btn {
  color: #111;
}
body.search-page .news-card-meta,
body.search-page .news-card-actions,
body.search-page .news-card-actions .action-btn,
body.search-page .news-card-actions span.action-btn,
body.search-page .widget-title,
body.search-page .suggest-info span,
body.search-page .sidebar-widget p,
body.search-page .empty-state p {
  color: #666;
}
body.search-page .news-card-actions { border-top: 1px solid #EFEFEF; }
body.search-page .widget-title::after { background: #EFEFEF; }
body.search-page .action-btn:hover { color: #111; background: #F5F5F5; }
body.search-page .form-control {
  background: #fff;
  border-color: #E7E1F5;
  color: #27233D;
}
body.search-page .form-control::placeholder { color: #8B84A5; }
body.search-page .form-control:focus { outline: none; border-color: #FF5A5F; }
body.search-page .ticker-wrap { background: #fff; border-bottom: 1px solid #F0E6F3; }
body.search-page .ticker-label { background: var(--red); color: #fff; }
body.search-page .ticker-track span { color: #111; }
body.search-page .ticker-track span::before { color: #FF8A2A; }
body.search-page .ticker-track a { color: #111; }
.page-wrapper { min-height: calc(100vh - 98px); }

/* ─── HOME / FEED LAYOUT ────────────────────────────────────── */
.home-grid { max-width: 1400px; margin: 0 auto; padding: 24px 20px; display: grid; grid-template-columns: 1fr 340px; gap: 28px; }
.feed-col { min-width: 0; }
.sidebar-col { min-width: 0; }

/* ─── Hero / Breaking Slider ────────────────────────────────── */
.hero-section { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; background: var(--card); min-height: 480px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%, transparent 100%); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 50px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.hero-title { font-family: 'Baloo 2', cursive; font-size: clamp(20px, 3vw, 32px); font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.hero-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: rgba(255,255,255,0.7); }
.hero-dots { position: absolute; bottom: 24px; right: 32px; display: flex; gap: 6px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.hero-dot.active { background: var(--red); width: 24px; border-radius: 4px; }

/* ─── Category Tabs ─────────────────────────────────────────── */
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab { padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; background: var(--card); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; cursor: pointer; transition: var(--transition); }
.cat-tab:hover { color: var(--text); border-color: var(--border2); }
.cat-tab.active { background: var(--red); color: #fff; border-color: var(--red); }
body.home-page .home-latest-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) 420px; gap: 28px; align-items: start; }
body.home-page .home-latest-main,
body.home-page .home-latest-sidebar { min-width: 0; }
body.home-page .home-latest-main > .widget-title { margin-bottom: 16px; }
body.home-page .home-latest-sidebar { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; gap: 20px; }
body.home-page .home-latest-sidebar .sidebar-widget { margin-bottom: 0; }
body.home-page .home-latest-sidebar .home-sidebar-feed-widget {
  background: #fff;
  box-shadow: 0 18px 36px rgba(24, 24, 31, 0.10), 0 4px 14px rgba(24, 24, 31, 0.06);
}
body.home-page .home-latest-sidebar .home-sidebar-feed-widget .trending-num { color: #444; }
body.home-page .home-latest-sidebar .home-sidebar-feed-widget .trending-title a { color: #111; }
body.home-page .home-secondary-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
body.home-page .home-secondary-widgets .sidebar-widget { margin-bottom: 0; height: 100%; }
body.home-page .home-topics-section { margin-top: 28px; width: 100%; }
body.home-page .home-topics-widget {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-color: #DBDBDB;
  box-shadow: 0 10px 24px rgba(17,17,17,0.04);
}
body.home-page .home-topics-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
body.home-page .home-topics-row::-webkit-scrollbar { display: none; }
body.home-page .home-topics-row .tag-chip {
  white-space: nowrap;
  flex: 0 0 auto;
  background: #fff;
  color: var(--topic-color, #111);
  border: 1px solid var(--topic-color, #111);
}
body.home-page .home-topics-row .tag-chip:hover {
  color: var(--topic-color, #111);
  border-color: var(--topic-color, #111);
  background: color-mix(in srgb, var(--topic-color, #111) 8%, #fff);
}
body.home-page .home-follow-section { margin-top: 28px; width: 100%; }
body.home-page .home-follow-section .home-follow-widget {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.home-page .home-follow-widget .home-follow-row {
  display: flex;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 6px 4px 10px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}
body.home-page .home-follow-widget .home-follow-row::-webkit-scrollbar { display: none; }
body.home-page .home-follow-widget .suggest-item {
  flex: 0 0 250px;
  min-width: 250px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(180deg, rgba(233,236,244,0.92), rgba(221,225,236,0.96));
  color: #111;
  box-shadow: 0 10px 24px rgba(17,17,17,0.05);
  backdrop-filter: blur(10px);
  scroll-snap-align: start;
}
body.home-page .home-follow-widget .suggest-item > a:first-child {
  order: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
body.home-page .home-follow-widget .suggest-avatar {
  width: 56px;
  height: 56px;
}
body.home-page .home-follow-widget .suggest-info {
  order: 2;
  flex: 1 1 100%;
  min-width: 0;
  text-align: center;
}
body.home-page .home-follow-widget .suggest-info strong {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 15px;
  line-height: 1.35;
  color: #111;
}
body.home-page .home-follow-widget .suggest-info strong a {
  color: #111;
  overflow-wrap: anywhere;
}
body.home-page .home-follow-widget .suggest-info strong a:hover {
  color: var(--red);
}
body.home-page .home-follow-widget .suggest-info span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #555;
  line-height: 1.45;
}
body.home-page .home-follow-widget .btn-follow {
  order: 3;
  margin: 12px auto 0;
  align-self: center;
  flex-shrink: 0;
}
body.home-page .home-category-rail-section { margin-top: 28px; }
body.home-page .home-category-rail-wrap { position: relative; padding: 0; overflow: hidden; }
body.home-page .home-category-rail { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
body.home-page .home-category-rail::-webkit-scrollbar { display: none; }
body.home-page .home-category-rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: 0 10px 24px rgba(17,17,17,0.10);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
body.home-page .home-category-rail-btn { display: none; }
body.home-page .home-category-rail-btn:hover { color: var(--orange); border-color: rgba(255,107,26,0.28); }
body.home-page .home-category-rail-btn[disabled] { opacity: 0.45; cursor: default; }
body.home-page .home-category-rail-btn-prev { left: 0; }
body.home-page .home-category-rail-btn-next { right: 0; }
body.home-page .home-category-card {
  min-width: 320px;
  max-width: 320px;
  background: linear-gradient(180deg, #fff 0%, #FFF9F4 100%);
  border: 1px solid color-mix(in srgb, var(--category-card-accent, #FF6B1A) 24%, #E7E0DA);
  border-radius: 20px;
  padding: 14px 15px;
  box-shadow: 0 16px 30px rgba(17,17,17,0.06);
  scroll-snap-align: start;
}
body.home-page .home-category-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
body.home-page .home-category-card-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--category-card-accent, #FF6B1A); margin-bottom: 6px; }
body.home-page .home-category-card h3 { font-size: 19px; line-height: 1.1; color: #111; }
body.home-page .home-category-card-link { font-size: 12px; font-weight: 700; color: var(--category-card-accent, #FF6B1A); white-space: nowrap; }
body.home-page .home-category-card-list { display: flex; flex-direction: column; gap: 6px; }
body.home-page .home-category-card-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid rgba(17,17,17,0.08);
}
body.home-page .home-category-card-item:first-child { border-top: none; padding-top: 0; }
body.home-page .home-category-card-rank { font-size: 19px; line-height: 1; font-weight: 900; color: color-mix(in srgb, var(--category-card-accent, #FF6B1A) 70%, #111); }
body.home-page .home-category-card-title { font-size: 13px; line-height: 1.35; color: #1C1C1C; font-weight: 700; }
body.home-page .home-category-card-item-empty { cursor: default; }
body.home-page .home-category-card-item-empty .home-category-card-title { color: #6F688A; font-weight: 600; }
body.home-page .home-category-card-item:hover .home-category-card-title,
body.home-page .home-category-card-link:hover,
body.home-page .home-category-card h3 a:hover { color: var(--category-card-accent, #FF6B1A); }

/* ─── News Card ─────────────────────────────────────────────── */
.news-feed { display: flex; flex-direction: column; gap: 14px; }
.news-card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; gap: 0; transition: var(--transition); border: 1px solid transparent; }
.news-card:hover { border-color: var(--border2); background: var(--card2); transform: translateX(2px); }
.news-card-img { width: 160px; height: 110px; flex-shrink: 0; object-fit: cover; display: block; }
.news-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.news-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.news-card-title { font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-title:hover { color: var(--red); }
.news-card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin-top: auto; }
.news-card-meta img { width: 20px; height: 20px; border-radius: 50%; }
.news-card-actions { display: flex; align-items: center; gap: 12px; padding: 8px 16px 12px; }
.action-btn { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 50px; transition: var(--transition); }
.action-btn:hover { color: var(--text); background: var(--bg3); }
.action-btn.liked { color: var(--red); background: rgba(255,45,45,0.08); }
.action-btn.liked i { color: var(--red); }
.action-btn.bookmarked { color: var(--yellow); }

/* ─── Featured Grid ─────────────────────────────────────────── */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.featured-card { background: var(--card); border-radius: var(--radius); overflow: hidden; transition: var(--transition); border: 1px solid transparent; }
.featured-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }
.featured-card-img { width: 100%; height: 180px; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.featured-card-body { padding: 16px; }
.featured-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: inline-block; }
.featured-card-title { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-card-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 10px; }

/* ─── Community / Post Cards ────────────────────────────────── */
.community-feed { display: flex; flex-direction: column; gap: 12px; }
.community-card { background: var(--card); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border); transition: var(--transition); }
.community-card:hover { border-color: var(--border2); }
.community-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.community-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.community-user { flex: 1; }
.community-user strong { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.community-user span { font-size: 12px; color: var(--muted); }
.verified-icon { color: var(--blue); font-size: 12px; }
.badge-icon { font-size: 11px; }
.community-card-title { font-family: 'Baloo 2', cursive; font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.community-card-title a:hover { color: var(--red); }
.community-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.community-card-img { width: 100%; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; max-height: 360px; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.community-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag-chip { padding: 4px 12px; background: var(--bg3); border-radius: 50px; font-size: 12px; color: var(--muted); transition: var(--transition); }
.tag-chip:hover { color: var(--red); background: rgba(255,45,45,0.1); }
.community-card-footer { display: flex; align-items: center; gap: 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.community-card-footer .action-btn { flex: 1; justify-content: center; }
.community-stories-card {
  margin-bottom: 20px;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
.community-story-strip { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 2px; scrollbar-width: none; }
.community-story-strip::-webkit-scrollbar { display: none; }
.community-create-cta { margin: 0 0 20px; }
.explore-hero { margin-bottom: 24px; background: linear-gradient(135deg, rgba(255,122,66,0.18), rgba(41,121,255,0.09)); }
.explore-hero h1 { font-family: 'Baloo 2', cursive; font-size: 38px; line-height: 1.08; margin-bottom: 8px; }
.explore-hero p { color: var(--muted); max-width: 720px; }
.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.explore-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); color: #1E1A33; }
.explore-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.explore-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.explore-kicker span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bg3); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.explore-card h2 { font-size: 22px; line-height: 1.2; }
.explore-card h2 a:hover { color: var(--red); }
.explore-meta { display: flex; flex-direction: column; gap: 4px; color: #5F5878; font-size: 12px; font-weight: 600; white-space: nowrap; text-align: right; }
.explore-summary { color: #4C465F; font-size: 15px; line-height: 1.75; font-weight: 500; }
.explore-embed { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.explore-embed-image { display: block; aspect-ratio: 16 / 9; background: #F6F1FF; }
.explore-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.explore-embed-video { aspect-ratio: 16 / 9; }
.explore-embed-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.explore-embed-social { padding: 14px; }
.explore-social-host { min-height: 72px; }
.explore-social-label { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #5B5572; margin-bottom: 10px; }
.explore-caption { color: #3F3955; line-height: 1.82; font-size: 15px; font-weight: 500; }
.explore-caption p { margin-bottom: 16px; }
.explore-caption p:last-child { margin-bottom: 0; }
.explore-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--border); }
.explore-social-fallback { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text); font-weight: 700; }

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar-widget { background: var(--card); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; border: 1px solid var(--border); }
.widget-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.widget-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Trending widget */
.trending-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.trending-item:last-child { border-bottom: none; }
.trending-num { font-size: 24px; font-weight: 800; color: var(--border2); line-height: 1; flex-shrink: 0; width: 28px; }
.trending-title { font-size: 13px; font-weight: 600; line-height: 1.4; }
.trending-title a:hover { color: var(--red); }
.trending-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Suggested users */
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.suggest-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.suggest-info { flex: 1; }
.suggest-info strong { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.suggest-info span { font-size: 12px; color: var(--muted); }
.btn-follow { padding: 5px 14px; border: 1px solid var(--red); border-radius: 50px; font-size: 12px; font-weight: 600; color: var(--red); transition: var(--transition); background: none; cursor: pointer; }
.btn-follow:hover, .btn-follow.following { background: var(--red); color: #fff; }
.newsletter-inline-msg {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.newsletter-inline-msg--success { background: rgba(0, 200, 83, 0.10); color: #0A9E48; }
.newsletter-inline-msg--error { background: rgba(255, 45, 45, 0.08); color: #D12626; }

/* ─── Single Post Page ──────────────────────────────────────── */
.site-breadcrumb { margin-bottom: 16px; }
.site-breadcrumb ol { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.site-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.site-breadcrumb a,
.site-breadcrumb span[aria-current="page"] {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(112,100,164,0.16);
  color: #5F5878;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.site-breadcrumb a:hover { color: #27233D; border-color: rgba(255,90,95,0.28); background: #fff; }
.site-breadcrumb span[aria-current="page"] { color: #27233D; background: #FFF4EF; border-color: rgba(255,90,95,0.18); }
.site-breadcrumb-sep { display: inline-flex; align-items: center; color: #A39BBF; font-size: 11px; }

.post-page { max-width: 1400px; margin: 0 auto; padding: 32px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.post-main {
  background: #fff;
  border: 1px solid rgba(112, 100, 164, 0.18);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(39, 35, 61, 0.10), 0 2px 10px rgba(39, 35, 61, 0.04);
  padding: 28px 26px 32px;
  overflow: hidden;
}
.post-header { margin-bottom: 24px; }
.post-cat-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.post-title { font-family: 'Baloo 2', cursive; font-size: clamp(24px, 4vw, 40px); font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.post-excerpt { font-size: 18px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.post-meta-bar { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.post-author { display: flex; align-items: center; gap: 10px; }
.post-author-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.post-author-info { min-width: 0; }
.post-author-info strong { font-size: 14px; display: flex; align-items: center; gap: 4px; }
.post-author-info span { font-size: 12px; color: var(--muted); }
.post-meta-extra { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); margin-left: auto; }
.post-meta-extra span { display: flex; align-items: center; gap: 5px; }
.post-cover { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 32px; display: block; aspect-ratio: 16 / 9; }
.post-cover-fallback { margin-bottom: 32px; padding: 30px 28px; border-radius: var(--radius-lg); border: 1px dashed #FFB67D; background: linear-gradient(135deg, #FFF7F0 0%, #FFFFFF 100%); color: #27233D; display: flex; flex-direction: column; gap: 10px; }
.post-cover-fallback-badge { display: inline-flex; align-items: center; width: fit-content; padding: 6px 12px; border-radius: 999px; background: #FFE3D1; color: #C94D00; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-cover-fallback strong { font-size: 18px; line-height: 1.4; }
.post-cover-fallback p { margin: 0; font-size: 14px; line-height: 1.6; color: #6F688A; }
.post-content { font-size: 17px; line-height: 1.85; color: #D0D0E0; }
.post-content h2 { font-family: 'Baloo 2', cursive; font-size: 26px; font-weight: 800; margin: 32px 0 16px; color: var(--text); }
.post-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; color: var(--text); }
.post-content p { margin-bottom: 20px; }
.post-content ul,
.post-content ol {
  margin: 0 0 20px 24px;
  padding-left: 12px;
  list-style-position: outside;
}
.post-content li {
  margin-bottom: 10px;
  padding-left: 6px;
}
.post-content li:last-child { margin-bottom: 0; }
.post-content img { border-radius: var(--radius); margin: 24px 0; }
.post-content blockquote { border-left: 4px solid var(--red); padding: 16px 24px; background: var(--card2); border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; font-size: 18px; font-style: italic; color: var(--text); }
.post-content h4 { font-size: 18px; font-weight: 700; margin: 20px 0 10px; color: var(--text); }
.post-content pre { margin: 24px 0; padding: 16px 18px; border-radius: 18px; background: #11131A; border: 1px solid rgba(255,255,255,0.08); color: #F6F3FF; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.post-content .editor-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.10); margin: 28px 0; }
.post-content .editor-note,
.post-content .editor-keypoints,
.post-content .editor-faq { margin: 26px 0; padding: 18px 20px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.08); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); }
.post-content .editor-note strong,
.post-content .editor-keypoints h3,
.post-content .editor-faq h3 { display: block; margin-bottom: 10px; color: #FFD36C; }
.post-content .editor-keypoints ul,
.post-content .editor-note p:last-child,
.post-content .editor-faq p:last-child { margin-bottom: 0; }
.post-content .editor-cta-wrap { margin: 28px 0; }
.post-content .editor-cta-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 800; letter-spacing: 0.02em; text-decoration: none; box-shadow: 0 16px 30px rgba(0,0,0,0.18); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.post-content .editor-cta-button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(0,0,0,0.22); }
.post-content a:not(.editor-cta-button) { color: #0000EE; text-decoration: underline; }
.post-content a:not(.editor-cta-button):visited { color: #551A8B; }
.post-content a:not(.editor-cta-button):hover { color: #0000EE; }
.post-actions-bar { display: flex; align-items: center; gap: 8px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 32px 0; }
.post-action-big { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; font-size: 15px; font-weight: 600; background: var(--card2); border: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.post-action-big:hover { border-color: var(--red); color: var(--red); }
.post-action-big.liked { background: rgba(255,45,45,0.15); border-color: var(--red); color: var(--red); }
.post-action-big.liked i { color: var(--red); }

/* ─── Comments ──────────────────────────────────────────────── */
body.single-post-page { background: #FFFDFB; color: #27233D; }
body.single-post-page .page-wrapper { background: linear-gradient(180deg, #FFFDFB 0%, #F8F5FF 100%); }
body.single-post-page .post-page { background: transparent; color: #27233D; }
body.single-post-page .post-main {
  background: #fff;
  border-color: #E8E1F3;
  box-shadow: 0 22px 54px rgba(53, 45, 88, 0.10), 0 3px 14px rgba(53, 45, 88, 0.05);
}
body.single-post-page .post-excerpt { color: #6F688A; }
body.single-post-page .post-meta-bar,
body.single-post-page .post-actions-bar { border-color: #ECE7F6; }
body.single-post-page .post-author-info span,
body.single-post-page .post-meta-extra { color: #8B84A5; }
body.single-post-page .post-content { color: #27233D; }
body.single-post-page .post-content h2,
body.single-post-page .post-content h3,
body.single-post-page .post-content h4 { color: #27233D; }
body.single-post-page .post-content blockquote { background: #FFF7F4; color: #27233D; border-left-color: #FF5A5F; }
body.single-post-page .post-content pre { background: #1C1A26; color: #F8F4FF; border-color: rgba(39,35,61,0.12); }
body.single-post-page .post-content .editor-divider { border-top-color: #ECE7F6; }
body.single-post-page .post-content .editor-note,
body.single-post-page .post-content .editor-keypoints,
body.single-post-page .post-content .editor-faq { background: #FFFDFB; border-color: #ECE7F6; box-shadow: 0 12px 24px rgba(53,45,88,0.05); }
body.single-post-page .post-content .editor-note strong,
body.single-post-page .post-content .editor-keypoints h3,
body.single-post-page .post-content .editor-faq h3 { color: #C76700; }
body.single-post-page .post-content .editor-cta-button { box-shadow: 0 14px 24px rgba(53,45,88,0.14); }
body.single-post-page .sidebar-widget,
body.single-post-page .comment-form,
body.single-post-page .comment-body,
body.single-post-page .post-action-big { background: #fff; border-color: #ECE7F6; color: #27233D; }
body.single-post-page .post-action-big.liked {
  background: rgba(255, 45, 45, 0.12);
  border-color: #FF4A4A;
  color: #FF2D55;
}
body.single-post-page .post-action-big.liked i { color: #FF2D55; }
body.single-post-page .comment-form textarea { background: #fff; border-color: #E7E1F5; color: #27233D; }
body.single-post-page .comment-text,
body.single-post-page .widget-title,
body.single-post-page .trending-title,
body.single-post-page .trending-meta { color: #6F688A; }
body.single-post-page .widget-title::after,
body.single-post-page .trending-item { border-color: #EFEAF8; }
.comments-section { margin-top: 32px; }
.comments-section h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.comment-form { background: var(--card); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; border: 1px solid var(--border); }
.comment-form textarea { width: 100%; background: var(--bg3); border: 1px solid var(--border); color: var(--text); padding: 14px; border-radius: var(--radius); font-size: 14px; resize: vertical; min-height: 100px; transition: var(--transition); }
.comment-form textarea:focus { outline: none; border-color: var(--red); }
.comment-form-footer { display: flex; justify-content: flex-end; margin-top: 12px; }
.comment-item { display: flex; gap: 12px; margin-bottom: 20px; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body { flex: 1; background: var(--card); border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--border); }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.comment-header strong { font-size: 13px; }
.comment-header time { font-size: 11px; color: var(--muted); }
.comment-text { font-size: 14px; color: var(--muted); line-height: 1.6; }
.comment-actions { margin-top: 10px; display: flex; gap: 12px; }
.comment-action { font-size: 12px; color: var(--muted2); cursor: pointer; transition: var(--transition); }
.comment-action:hover { color: var(--red); }
.post-related-shell { max-width: 1400px; margin: 0 auto 32px; padding: 0 20px 8px; }
.post-related-panel {
  background: #fff;
  border: 1px solid #E8E1F3;
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(53, 45, 88, 0.10), 0 3px 14px rgba(53, 45, 88, 0.05);
  padding: 24px 22px 26px;
}
.related-posts-section { margin-top: 34px; }
.related-posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related-post-card {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--related-card-color, #FF6B1A) 40%, #fff), #F3EAFD) border-box;
  border: 1px solid transparent;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--related-card-color, #FF6B1A) 10%, transparent);
}
.related-post-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--related-card-color, #FF6B1A) 12%, #F8F5FF);
  overflow: hidden;
}
.related-post-media img { width: 100%; height: 100%; object-fit: cover; }
.related-post-mediafallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--related-card-color, #FF6B1A);
  font-size: 38px;
}
.related-post-body { padding: 16px 16px 18px; }
.related-post-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.related-post-body h4 {
  font-size: 17px;
  line-height: 1.28;
  color: #27233D;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-post-body p {
  font-size: 13px;
  line-height: 1.55;
  color: #6F688A;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-post-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #8B84A5;
  font-size: 12px;
}
.related-post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.related-posts-empty { font-size: 14px; color: var(--muted); }

/* ─── Profile Page ──────────────────────────────────────────── */
.profile-cover { height: 240px; background: linear-gradient(135deg, var(--bg3), var(--card2)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { background: var(--card); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 0 28px 24px; margin-bottom: 24px; border: 1px solid var(--border); border-top: none; }
.profile-avatar-wrap { position: relative; margin-top: -52px; margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid var(--card); }
.profile-stats { display: flex; gap: 28px; }
.profile-stat { text-align: center; }
.profile-stat strong { display: block; font-size: 20px; font-weight: 800; }
.profile-stat span { font-size: 12px; color: var(--muted); }
.profile-meta-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.profile-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #FFF6F1;
  border: 1px solid #F1DFD4;
  color: #5F5878;
  font-size: 13px;
  font-weight: 700;
}
.profile-meta-chip:hover { color: #27233D; border-color: #E7CCC0; background: #FFFDFB; }
.profile-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.badge-pill { padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 4px; }

/* ─── Auth Pages ────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: radial-gradient(ellipse at 20% 50%, rgba(255,45,45,0.08) 0%, transparent 60%); }
.auth-card { width: 100%; max-width: 480px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .logo-icon { width: 52px; height: 52px; font-size: 24px; margin: 0 auto 12px; }
.auth-logo h1 { font-family: 'Baloo 2', cursive; font-size: 28px; font-weight: 800; }
.auth-logo p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.form-control { width: 100%; background: var(--bg3); border: 1px solid var(--border); color: var(--text); padding: 12px 16px; border-radius: var(--radius); font-size: 15px; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--red); background: var(--card2); }
.form-control::placeholder { color: var(--muted2); }
.btn-block { width: 100%; padding: 13px; font-size: 16px; font-weight: 700; border-radius: var(--radius); background: var(--red); color: #fff; border: none; cursor: pointer; transition: var(--transition); margin-top: 8px; }
.btn-block:hover { background: var(--red-dark); transform: translateY(-1px); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted2); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-footer a { color: var(--red); font-weight: 600; }

/* ─── Admin / Panel Common ──────────────────────────────────── */
.panel-layout { min-height: 100vh; }
.panel-sidebar { width: 260px; flex-shrink: 0; background: var(--card); border-right: 1px solid var(--border); position: fixed; top: 0; left: 0; height: 100%; overflow-y: auto; z-index: 100; padding-top: 20px; }
.panel-logo { padding: 0 20px 24px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.panel-nav { padding: 8px 0; }
.panel-nav-section { padding: 8px 20px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--muted2); margin-top: 16px; }
.panel-nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 20px; font-size: 14px; color: var(--muted); transition: var(--transition); border-left: 3px solid transparent; }
.panel-nav-link:hover { color: var(--text); background: var(--bg3); border-left-color: var(--border2); }
.panel-nav-link.active { color: var(--red); background: rgba(255,45,45,0.08); border-left-color: var(--red); font-weight: 600; }
.panel-nav-link i { width: 18px; text-align: center; }
.panel-sidebar-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; color: var(--text); box-shadow: var(--shadow); }
.panel-sidebar-overlay { display: none; }
.panel-sidebar-mobilebar { display: none; }
.settings-page { max-width: 980px; margin: 0 auto; padding: 32px 20px; }
.settings-hero { margin-bottom: 24px; }
.settings-title { font-family: 'Baloo 2', cursive; font-size: 38px; line-height: 1.1; margin-bottom: 8px; }
.settings-subtitle { color: var(--muted); }
.settings-form { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-card { min-width: 0; }
.settings-mainstack { display: grid; gap: 20px; min-width: 0; }
.settings-avatarpanel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.settings-avatarpreview { width: 120px; height: 120px; }
.settings-helptext { font-size: 13px; color: var(--muted); }
.settings-caption { font-size: 12px; color: var(--muted); }
.settings-avataractions,
.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.settings-avataractions { justify-content: center; }
.settings-splitgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-formgroup-last { margin-bottom: 0; }
.panel-main { margin-left: 260px; width: calc(100% - 260px); max-width: calc(100% - 260px); min-width: 0; padding: 28px; }
.panel-main > * { min-width: 0; max-width: 100%; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.panel-header h1 { font-size: 24px; font-weight: 800; }
.panel-header > * { min-width: 0; }
.panel-header-actions { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; min-width: 0; }
.panel-inline-grid { display: grid; gap: 20px; align-items: start; min-width: 0; }
.panel-inline-grid > * { min-width: 0; }
.panel-grid-2 { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel-split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.panel-filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.panel-filter-form .form-control { flex: 1 1 180px; min-width: 0; width: auto !important; }
.panel-filter-form .btn-sm { flex-shrink: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; align-items: flex-start; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-info { min-width: 0; flex: 1; }
.stat-info strong { font-size: 28px; font-weight: 800; line-height: 1; display: block; }
.stat-info span { font-size: 13px; color: var(--muted); overflow-wrap: break-word; word-break: normal; }
.stat-trend { font-size: 12px; color: var(--green); margin-top: 4px; display: block; }
.data-table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.table-header h3 { font-size: 16px; font-weight: 700; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 20px; background: var(--bg3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); text-align: left; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg3); }
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.status-published { background: rgba(0,200,83,0.15); color: var(--green); }
.status-pending { background: rgba(255,215,0,0.15); color: var(--yellow); }
.status-rejected { background: rgba(255,45,45,0.15); color: var(--red); }
.status-draft { background: rgba(122,122,149,0.15); color: var(--muted); }
.btn-sm { padding: 6px 14px; border-radius: var(--radius); font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition); border: 1px solid transparent; }
.btn-approve { background: rgba(0,200,83,0.15); color: var(--green); border-color: rgba(0,200,83,0.3); }
.btn-approve:hover { background: var(--green); color: #000; }
.btn-reject { background: rgba(255,45,45,0.15); color: var(--red); border-color: rgba(255,45,45,0.3); }
.btn-reject:hover { background: var(--red); color: #fff; }
.btn-edit { background: rgba(41,121,255,0.15); color: var(--blue); border-color: rgba(41,121,255,0.3); }
.btn-edit:hover { background: var(--blue); color: #fff; }
.btn-delete { background: rgba(255,45,45,0.1); color: var(--red); border-color: rgba(255,45,45,0.2); }
.btn-delete:hover { background: var(--red); color: #fff; }

/* ─── Toast Notifications ───────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--card2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease; min-width: 280px; max-width: 360px; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--blue); }
.toast i { font-size: 16px; flex-shrink: 0; }
.toast.success i { color: var(--green); }
.toast.error i   { color: var(--red); }
.toast.info i    { color: var(--blue); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── Create Post Page ──────────────────────────────────────── */
.create-page { max-width: 860px; margin: 0 auto; padding: 32px 20px; }
.create-header { margin-bottom: 28px; }
.create-breadcrumb { flex-wrap: wrap; }
.create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.create-main,
.create-side { min-width: 0; }
.create-topactions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.create-topactions > * { min-width: 0; }
.create-ai-promptgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 14px; }
.create-ai-selectgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.create-insightsgrid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.create-coverdrop { width: 100%; }
.create-meta-card { overflow: hidden; }
.create-title-input { width: 100%; background: none; border: none; border-bottom: 2px solid var(--border); color: var(--text); font-family: 'Baloo 2', cursive; font-size: 32px; font-weight: 800; padding: 16px 0; margin-bottom: 20px; }
.create-title-input:focus { outline: none; border-bottom-color: var(--red); }
.create-title-input::placeholder { color: var(--muted2); }
.create-toolbar { display: flex; gap: 10px; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; flex-wrap: wrap; align-items: center; }
.toolbar-group { display: flex; align-items: center; gap: 6px; padding-right: 10px; border-right: 1px solid var(--border); }
.toolbar-group:last-child { padding-right: 0; border-right: none; }
.toolbar-btn { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 8px; font-size: 14px; color: var(--muted); cursor: pointer; transition: var(--transition); border: 1px solid transparent; }
.toolbar-btn-text { width: auto; min-width: 38px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; }
.toolbar-btn-wide { min-width: 50px; }
.toolbar-btn:hover { color: var(--text); background: var(--bg3); }
.toolbar-colorpicker { position: relative; min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); border: 1px solid transparent; background: transparent; cursor: pointer; transition: var(--transition); overflow: hidden; }
.toolbar-colorpicker:hover { color: var(--text); background: var(--bg3); }
.toolbar-colorpicker input[type="color"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.create-toolbar-panels { display: flex; flex-direction: column; gap: 0; }
.toolbar-inline-panel { padding: 14px 16px 16px; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)); border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.toolbar-inline-panel[hidden] { display: none !important; }
.toolbar-inline-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.toolbar-inline-panel-head strong { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted2); }
.toolbar-inline-close { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); border: 1px solid var(--border); background: var(--bg3); cursor: pointer; transition: var(--transition); }
.toolbar-inline-close:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }
.toolbar-inline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.toolbar-inline-grid--cta { grid-template-columns: 1.2fr 1.2fr auto auto; align-items: end; }
.toolbar-inline-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.toolbar-inline-color { display: grid; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2); }
.toolbar-inline-color input[type="color"] { width: 52px; height: 42px; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: transparent; cursor: pointer; overflow: hidden; }
.toolbar-inline-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.toolbar-inline-color input[type="color"]::-webkit-color-swatch { border: none; border-radius: 11px; }
.toolbar-inline-color input[type="color"]::-moz-color-swatch { border: none; border-radius: 11px; }
.create-editor { width: 100%; background: var(--card); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); color: var(--text); padding: 20px; font-size: 16px; line-height: 1.8; min-height: 400px; resize: vertical; }
.create-editor:focus { outline: none; border-color: var(--red); }
.create-editor h2 { font-family: 'Baloo 2', cursive; font-size: 30px; line-height: 1.2; margin: 28px 0 14px; color: var(--text); }
.create-editor h3 { font-size: 24px; line-height: 1.3; margin: 24px 0 12px; color: var(--text); }
.create-editor h4 { font-size: 18px; line-height: 1.4; margin: 20px 0 10px; color: var(--text); }
.create-editor p { margin-bottom: 18px; }
.create-editor ul,
.create-editor ol { margin: 0 0 18px 24px; padding-left: 12px; }
.create-editor blockquote { margin: 22px 0; padding: 16px 18px; border-left: 4px solid var(--red); border-radius: 0 14px 14px 0; background: var(--bg3); font-size: 17px; font-style: italic; }
.create-editor pre { margin: 22px 0; padding: 16px 18px; border-radius: 16px; background: #101018; border: 1px solid rgba(255,255,255,0.08); overflow-x: auto; font-size: 14px; line-height: 1.7; }
.create-editor img { max-width: 100%; height: auto; border-radius: 16px; margin: 22px 0; }
.create-editor .editor-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.12); margin: 24px 0; }
.create-editor .editor-note,
.create-editor .editor-keypoints,
.create-editor .editor-faq { margin: 22px 0; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); }
.create-editor .editor-note strong,
.create-editor .editor-keypoints h3,
.create-editor .editor-faq h3 { display: block; margin-bottom: 10px; color: #FFD36C; }
.create-editor .editor-keypoints ul,
.create-editor .editor-note p:last-child,
.create-editor .editor-faq p:last-child { margin-bottom: 0; }
.create-editor .editor-cta-wrap { margin: 24px 0; }
.create-editor .editor-cta-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 800; letter-spacing: 0.02em; text-decoration: none; box-shadow: 0 14px 28px rgba(0,0,0,0.16); }
.create-sidebar { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.create-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.create-widget label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); display: block; margin-bottom: 10px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A95' fill='none' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ─── Pagination ────────────────────────────────────────────── */
body.community-create-page .community-create-shell { max-width: none; padding: 0; }
body.community-create-page .community-create-header {
  margin-bottom: 24px;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid #DBDBDB;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,248,244,0.96));
  box-shadow: 0 14px 32px rgba(17,17,17,0.05);
}
body.community-create-page .community-create-title {
  margin-bottom: 10px;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  color: #111;
}
body.community-create-page .community-create-intro,
body.community-create-page .community-create-sidebar-copy {
  max-width: 680px;
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}
body.community-create-page .community-create-layout { align-items: start; }
body.community-create-page .community-create-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.community-create-page .create-title-input {
  background: #fff;
  border: 1px solid #DBDBDB;
  border-radius: 24px;
  color: #111;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(17,17,17,0.04);
}
body.community-create-page .create-title-input:focus { border-color: #FF5A5F; }
body.community-create-page .create-title-input::placeholder { color: #7B7396; }
body.community-create-page .create-editor {
  background: #fff;
  border: 1px solid #DBDBDB;
  border-radius: 24px;
  color: #111;
  box-shadow: 0 10px 24px rgba(17,17,17,0.04);
}
body.community-create-page .create-editor:focus { border-color: #FF5A5F; }
body.community-create-page .create-editor::placeholder { color: #8B84A5; }
body.community-create-page .create-widget,
body.community-create-page .sidebar-widget {
  border-color: #DBDBDB;
  box-shadow: 0 10px 24px rgba(17,17,17,0.04);
}
body.community-create-page .create-widget {
  background: #fff;
  border-radius: 24px;
  padding: 18px;
}
body.community-create-page .create-widget label { color: #6F688A; }
body.community-create-page .form-control {
  background: #fff;
  border-color: #E7E1F5;
  color: #27233D;
}
body.community-create-page .form-control::placeholder { color: #8B84A5; }
body.community-create-page .form-control:focus {
  background: #fff;
  border-color: #FF5A5F;
}
body.community-create-page input[type="file"].form-control { padding-block: 11px; }
body.community-create-page .community-create-alt { margin-top: 10px; }
body.community-create-page .community-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
body.community-create-page .community-create-actions .btn-write,
body.community-create-page .community-create-actions .btn-ghost {
  flex: 1 1 180px;
  min-height: 46px;
  justify-content: center;
}

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 28px 0; }
.page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); color: var(--muted); font-size: 14px; cursor: pointer; transition: var(--transition); }
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--card); border-top: 1px solid var(--border); margin-top: 60px; }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 48px 20px 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 12px 0 20px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: 'Baloo 2', cursive; font-size: 24px; font-weight: 700; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: var(--bg3); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; transition: var(--transition); }
.footer-social a:hover { color: var(--red); border-color: var(--red); }
.footer-col h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--muted2); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--text); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted2); }

.mobile-home-shell { display: none; background: linear-gradient(180deg, #F2F2F5 0%, #E8E8EE 100%); }
.mobile-home-frame { background: linear-gradient(180deg, #F2F2F5 0%, #E8E8EE 100%); color: #27233D; min-height: 100vh; }
.mobile-home-status { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 8px; font-size: 14px; font-weight: 700; }
.mobile-home-status-icons { display: flex; align-items: center; gap: 8px; color: #5B5873; }
.mobile-home-livebar { display: flex; align-items: center; min-height: 42px; background: linear-gradient(90deg, #6A38D0 0 18%, #FF2D55 18% 100%); color: #fff; overflow: hidden; }
.mobile-home-livebadge { align-self: stretch; display: flex; align-items: center; padding: 0 16px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.6px; }
.mobile-home-livecopy { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 14px; }
.mobile-home-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 14px 4px; background: #fff; border-bottom: 1px solid rgba(95, 84, 150, 0.14); }
.mobile-home-brand { display: flex; align-items: center; gap: 0; }
.mobile-home-brandmark { width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-home-brandmark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mobile-home-brandcopy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mobile-home-brandtext { font-family: Georgia, 'Times New Roman', serif; font-size: 12px; font-weight: 700; color: #2C2944; }
.mobile-home-brandtext span { color: #FF3B57; }
.mobile-home-brandslogan { font-size: 8px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #8A83A5; line-height: 1.2; }
.mobile-home-topactions { display: flex; align-items: center; gap: 12px; }
.mobile-home-iconbtn,
.mobile-home-userbtn { position: relative; width: 36px; height: 36px; border-radius: 50%; background: #F3EEFF; color: #7D73A8; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: inset 0 0 0 1px rgba(130, 118, 186, 0.12); }
.mobile-home-userbtn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #EEE8F7; display: block; }
.mobile-home-menubtn { position: relative; width: 42px; height: 42px; border: 0; flex-direction: column; gap: 4px; border-radius: 14px; background: #F3EEFF; box-shadow: inset 0 0 0 1px rgba(130, 118, 186, 0.12); display: flex; align-items: center; justify-content: center; }
.mobile-home-menubtn span { width: 18px; height: 2px; border-radius: 999px; background: #5D5877; transition: 0.2s ease; }
.mobile-home-menubtn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-home-menubtn.open span:nth-child(2) { opacity: 0; }
.mobile-home-menubtn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-home-menuoverlay { display: none; position: fixed; inset: 0; background: rgba(15, 13, 24, 0.42); backdrop-filter: blur(4px); z-index: 1250; }
.mobile-home-menuoverlay.open { display: block; }
.mobile-home-menu {
  position: fixed;
  top: 84px;
  right: 14px;
  width: min(88vw, 340px);
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 16px 14px;
  border-radius: 24px;
  background: rgba(255,255,255,0.98);
  border: 1px solid #ECE7F6;
  box-shadow: 0 22px 48px rgba(30, 24, 64, 0.18);
  z-index: 1260;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: 0.22s ease;
}
.mobile-home-menu.open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-home-menuhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mobile-home-menuhead strong { font-size: 13px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: #8A83A5; }
.mobile-home-menuclose { width: 34px; height: 34px; border-radius: 12px; border: 0; background: #F5F1FD; color: #5D5877; display: flex; align-items: center; justify-content: center; }
.mobile-home-menugroup { border-top: 1px solid #F0EBF8; padding-top: 12px; margin-top: 12px; }
.mobile-home-menugroup:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.mobile-home-menutitle { font-size: 12px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: #8A83A5; margin-bottom: 10px; }
.mobile-home-menusub {
  display: grid;
  gap: 0;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #EEE8F7;
  box-shadow: 0 8px 20px rgba(68, 58, 118, 0.04);
}
.mobile-home-menusub a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #F1ECF8;
  color: #27233D;
  font-size: 14px;
  font-weight: 700;
}
.mobile-home-menusub a:last-child { border-bottom: 0; }
.mobile-home-menusub a i { width: 18px; text-align: center; color: #8A83A5; }
.mobile-home-adminmenu { margin: -2px -2px 0; border-radius: 26px; overflow: hidden; border: 1px solid #EEE8F7; background: #FFFDFB; }
.mobile-home-adminmenuhead { display: flex; align-items: center; gap: 16px; padding: 18px 18px 16px; background: linear-gradient(180deg, #F5F0FF 0%, #FBF8FF 100%); }
.mobile-home-adminavatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mobile-home-adminmeta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-home-adminmeta strong { font-size: 18px; font-weight: 800; line-height: 1.2; color: #2C2944; }
.mobile-home-adminmeta span { font-size: 13px; color: #7D73A8; }
.mobile-home-adminlinks { display: flex; flex-direction: column; padding-top: 10px; background: #FFFDFB; }
.mobile-home-adminlinks a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: #6F688A; font-size: 15px; font-weight: 500; border-top: 1px solid #F0EBF8; }
.mobile-home-adminlinks a i { width: 18px; text-align: center; color: #7D73A8; }
.mobile-home-adminfooter { border-top: 1px solid #F0EBF8; margin-top: 10px; background: #FFFDFB; }
.mobile-home-adminlogout { display: flex; align-items: center; gap: 14px; padding: 18px; color: #FF4B4B; font-size: 15px; font-weight: 600; }
.mobile-home-adminlogout i { width: 18px; text-align: center; color: #FF4B4B; }
.mobile-home-menusocial { border-top: 1px solid #F0EBF8; padding-top: 12px; margin-top: 12px; }
.mobile-home-menusociallinks { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mobile-home-menusociallinks a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F5F1FD;
  border: 1px solid #E7E1F5;
  color: #7D73A8;
  font-size: 16px;
  transition: 0.2s ease;
}
.mobile-home-menusociallinks a:hover {
  color: #FF3B57;
  border-color: #FFCCD6;
  background: #FFF6F8;
}
.mobile-home-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #FF3850; }
.mobile-home-stories { display: flex; gap: 18px; overflow-x: auto; padding: 18px 18px 12px; scrollbar-width: none; }
.mobile-home-stories::-webkit-scrollbar { display: none; }
.mobile-story-chip { min-width: 74px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #5E597B; font-size: 13px; font-weight: 600; background: transparent; border: 0; padding: 0; }
.mobile-story-chip span:last-child { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-story-ring { --story-color: #FF3654; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--story-color), #805CFF) border-box; border: 3px solid transparent; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--story-color); box-shadow: 0 10px 20px rgba(89, 78, 150, 0.08); }
.mobile-story-entry .mobile-story-ring { padding: 3px; }
.mobile-story-entry .mobile-story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.mobile-story-self .mobile-story-ring { position: relative; }
.mobile-story-self.is-empty .mobile-story-ring { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #D8D0F4, #C7C0E4) border-box; }
.mobile-story-count,
.mobile-story-plus { position: absolute; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #FF3650; color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 3px #F4F1FF; }
.mobile-story-count { top: -1px; right: -1px; }
.mobile-story-plus { right: -1px; bottom: -1px; cursor: pointer; z-index: 2; }
.mobile-story-entry.is-seen .mobile-story-ring { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #D8D0F4, #C7C0E4) border-box; }
.mobile-story-add .mobile-story-ring { color: #E2DBFB; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #D9D0FA, #F1ECFF) border-box; }
.mobile-home-pills { display: flex; gap: 10px; overflow-x: auto; padding: 8px 18px 18px; scrollbar-width: none; }
.mobile-home-pills::-webkit-scrollbar { display: none; }
.mobile-home-pill { padding: 11px 20px; border-radius: 999px; background: #fff; color: #111; font-size: 15px; font-weight: 700; border: 1px solid var(--pill-color, #E4DCF7); white-space: nowrap; }
.mobile-home-pill.active { background: #fff; color: #111; border-color: var(--pill-color, #111); box-shadow: 0 6px 14px color-mix(in srgb, var(--pill-color, #111) 12%, transparent); }
.mobile-home-newsletter {
  margin: 0 18px 112px;
  padding: 18px 16px;
  border-radius: 24px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #FF2D2D, #FF6B1A, #FFD700) border-box;
  border: 1px solid transparent;
  box-shadow: 0 16px 32px rgba(255, 107, 26, 0.08);
}
.mobile-home-newsletterhead h2 { font-size: 23px; line-height: 1.1; color: #27233D; margin: 10px 0 8px; }
.mobile-home-newsletterhead p { color: #7A7398; font-size: 14px; line-height: 1.6; }
.mobile-home-newsletterbadge { display: inline-flex; align-items: center; gap: 7px; color: #FF4A43; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.4px; }
.mobile-home-newsletterform { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 16px; }
.mobile-home-newsletterinput {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid #E7E1F5;
  background: #fff;
  color: #27233D;
  font-size: 14px;
}
.mobile-home-newsletterinput:focus { outline: none; border-color: #FF6B1A; }
.mobile-home-newsletterbtn {
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FF5366, #FF304B);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  min-height: 48px;
}
.mobile-home-newslettermsg {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}
.mobile-home-newslettermsg--success { background: rgba(0, 200, 83, 0.10); color: #0A9E48; }
.mobile-home-newslettermsg--error { background: rgba(255, 45, 45, 0.08); color: #D12626; }
.mobile-home-topicsrail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 18px 22px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.mobile-home-topicsrail::-webkit-scrollbar { display: none; }
.mobile-home-topicchip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--mobile-topic-color, #111);
  color: var(--mobile-topic-color, #111);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(17,17,17,0.05);
}
.mobile-home-followrail {
  --mobile-follow-card-width: min(54vw, 164px);
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 6px 118px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.mobile-home-followrail::-webkit-scrollbar { display: none; }
.mobile-home-followcard {
  flex: 0 0 var(--mobile-follow-card-width);
  width: var(--mobile-follow-card-width);
  min-width: var(--mobile-follow-card-width);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 12px;
  border-radius: 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}
.mobile-home-followavatarlink { display: inline-flex; justify-content: center; width: 100%; }
.mobile-home-followavatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.95);
  box-shadow: 0 10px 18px rgba(111,93,168,0.16);
}
.mobile-home-followbody {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.mobile-home-followbody strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #27233D;
  font-size: 14px;
  line-height: 1.3;
}
.mobile-home-followbody strong a { color: #27233D; }
.mobile-home-followbody span {
  color: #7A7398;
  font-size: 12px;
  line-height: 1.45;
}
.mobile-home-followcard .btn-follow {
  margin-top: 2px;
  min-height: 34px;
  padding: 0 14px;
  background: #fff;
  font-size: 11px;
}
.mobile-home-hero { position: relative; margin: 0 18px 24px; min-height: 248px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #F3DCCF, #3A364F); box-shadow: 0 18px 34px rgba(74, 63, 130, 0.18); }
.mobile-home-heroimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mobile-home-heroimg--placeholder { background: linear-gradient(180deg, #F1DDCF, #6C667D); }
.mobile-home-herogradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 33, 51, 0.04), rgba(36, 33, 51, 0.82)); }
.mobile-home-herocontent { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.mobile-home-herobadge { display: inline-flex; align-items: center; gap: 6px; background: #FF3A56; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 14px; }
.mobile-home-herocontent h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; line-height: 1.22; margin-bottom: 12px; }
.mobile-home-herometa { display: flex; gap: 14px; flex-wrap: wrap; color: rgba(255,255,255,0.84); font-size: 13px; font-weight: 500; }
.mobile-home-herodots { position: absolute; right: 20px; bottom: 22px; display: flex; gap: 6px; }
.mobile-home-herodots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.mobile-home-herodots span.active { width: 24px; border-radius: 999px; background: #FF3B57; }
.mobile-home-sectionhead { display: flex; align-items: center; gap: 12px; margin: 0 18px 14px; color: #FF3B57; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.mobile-home-sectionhead::after { content: ''; flex: 1; height: 2px; background: rgba(255, 59, 87, 0.18); }
.mobile-home-sectionhint {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #FFF4E9;
  color: #FF6B1A;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.mobile-home-sectionlink { margin-left: auto; flex-shrink: 0; font-size: 11px; letter-spacing: 1.2px; color: #2979FF; font-weight: 800; text-transform: uppercase; }
.mobile-home-sectionlink::after { content: none; }
.mobile-home-list { padding: 0 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.mobile-home-categoryrail {
  --mobile-category-card-width: min(82vw, 320px);
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  padding: 4px max(18px, calc((100vw - var(--mobile-category-card-width)) / 2)) 24px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(18px, calc((100vw - var(--mobile-category-card-width)) / 2));
  scroll-behavior: smooth;
  perspective: 1000px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-home-categoryrail::-webkit-scrollbar { display: none; }
.mobile-home-categorycard {
  flex: 0 0 var(--mobile-category-card-width);
  width: var(--mobile-category-card-width);
  min-width: var(--mobile-category-card-width);
  scroll-snap-align: center;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--mobile-category-color, #FF6B1A) 90%, #fff), #FFD4B9) border-box;
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 16px 16px 14px;
  box-shadow:
    0 20px 40px rgba(41, 37, 63, 0.10),
    0 6px 18px color-mix(in srgb, var(--mobile-category-color, #FF6B1A) 16%, transparent);
  opacity: 0.44;
  transform: scale(0.84);
  transform-origin: center center;
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
  filter: saturate(0.82);
  will-change: transform;
}
.mobile-home-categorycard.is-prev,
.mobile-home-categorycard.is-next {
  opacity: 0.72;
  transform: scale(0.9);
}
.mobile-home-categorycard.is-active {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1);
  animation: mobile-spotlight-glow 2.8s ease-in-out infinite, mobile-spotlight-float 2.8s ease-in-out infinite;
}
.mobile-home-categoryrail:not([data-slider-bound="true"]) .mobile-home-categorycard:first-child {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1);
}
.mobile-home-categorycardhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.mobile-home-categorycardkicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--mobile-category-color, #FF6B1A);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.mobile-home-categorycard h3 {
  font-size: 20px;
  line-height: 1.1;
  color: #27233D;
}
.mobile-home-categorycardlink {
  flex-shrink: 0;
  color: var(--mobile-category-color, #FF6B1A);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.mobile-home-categorycardlist { display: flex; flex-direction: column; gap: 8px; }
.mobile-home-categoryitem {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--mobile-category-color, #FF6B1A) 16%, #ECE5F7);
}
.mobile-home-categoryitem:first-child { padding-top: 0; border-top: 0; }
.mobile-home-categoryrank {
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  color: color-mix(in srgb, var(--mobile-category-color, #FF6B1A) 78%, #27233D);
}
.mobile-home-categorytitle {
  font-size: 14px;
  line-height: 1.42;
  color: #27233D;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mobile-home-categoryitem-empty { cursor: default; }
.mobile-home-categoryitem-empty .mobile-home-categorytitle {
  color: #8B84A5;
  font-weight: 600;
}
.mobile-home-categorycard h3 a:hover,
.mobile-home-categorycardlink:hover,
.mobile-home-categoryitem:hover .mobile-home-categorytitle {
  color: var(--mobile-category-color, #FF6B1A);
}
.mobile-home-featuredslider {
  --featured-card-width: min(82vw, 308px);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 4px max(18px, calc((100vw - var(--featured-card-width)) / 2)) 28px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(18px, calc((100vw - var(--featured-card-width)) / 2));
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  perspective: 1000px;
}
.mobile-home-featuredslider::-webkit-scrollbar { display: none; }
.mobile-home-featuredslide {
  flex: 0 0 var(--featured-card-width);
  width: var(--featured-card-width);
  min-width: var(--featured-card-width);
  scroll-snap-align: center;
  opacity: 0.44;
  transform: scale(0.84);
  transform-origin: center center;
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
  filter: saturate(0.82);
  will-change: transform;
}
.mobile-home-featuredslide.is-prev,
.mobile-home-featuredslide.is-next {
  opacity: 0.72;
  transform: scale(0.9);
}
.mobile-home-featuredslide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1);
  animation: mobile-spotlight-glow 2.8s ease-in-out infinite, mobile-spotlight-float 2.8s ease-in-out infinite;
}
.mobile-home-featuredslider:not([data-slider-bound="true"]) .mobile-home-featuredslide:first-child {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1);
}
.mobile-home-featuredvisual {
  position: relative;
  display: block;
  min-height: 360px;
  border-radius: 26px;
  overflow: hidden;
  background: #1E2330;
  box-shadow: 0 26px 44px rgba(17, 17, 17, 0.18);
}
.mobile-home-featuredimg,
.mobile-home-featuredvisual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobile-home-featuredicon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 56px;
}
.mobile-home-featuredoverlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 21, 32, 0.02) 0%, rgba(18, 21, 32, 0.26) 42%, rgba(18, 21, 32, 0.92) 100%),
    linear-gradient(120deg, color-mix(in srgb, var(--mobile-card-color, #FF5F66) 30%, transparent), transparent 48%);
}
.mobile-home-featuredcontent {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
  z-index: 1;
}
.mobile-home-featuredtopline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.mobile-home-featuredkicker,
.mobile-home-featuredtag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.mobile-home-featuredkicker {
  background: #FFFFFF;
  color: #111827;
}
.mobile-home-featuredtag {
  background: color-mix(in srgb, var(--mobile-card-color, #FF5F66) 20%, rgba(255, 255, 255, 0.14));
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--mobile-card-color, #FF5F66) 42%, rgba(255, 255, 255, 0.18));
}
.mobile-home-featuredcontent h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.18;
  margin-bottom: 10px;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.mobile-home-featuredcontent p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mobile-home-featuredmeta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}
.mobile-home-featuredmeta span {
  position: relative;
}
.mobile-home-featuredmeta span + span::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-50%);
}
.mobile-home-card {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #FF2D2D, #FFD700, #FF6B1A, var(--mobile-card-color, #FF2D2D), #FF2D2D) border-box;
  background-size: 100% 100%, 220% 220%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--mobile-card-color, #FF2D2D) 14%, transparent);
  animation: home-card-border-flow 5s linear infinite;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    box-shadow 0.2s ease;
  transition-delay: var(--mobile-reveal-delay, 0ms);
}
.mobile-home-card.reveal-ready {
  opacity: 0;
  transform: translate3d(var(--mobile-reveal-x, 0px), 20px, 0);
}
.mobile-home-card.reveal-ready.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.mobile-home-card.is-visible:hover,
.mobile-home-card.is-visible:active {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--mobile-card-color, #FF2D2D) 24%, transparent);
}
.mobile-home-cardmedia { display: flex; align-items: center; justify-content: center; height: 148px; color: #7B57E8; font-size: 42px; overflow: hidden; }
.mobile-home-cardmedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.mobile-home-cardbody { padding: 14px 16px 12px; }
.mobile-home-cardtag { font-size: 12px; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 6px; }
.mobile-home-cardbody h3 { font-size: 18px; line-height: 1.28; color: #27233D; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mobile-home-cardmeta { display: flex; gap: 10px; flex-wrap: wrap; color: #8E87A8; font-size: 14px; }
.mobile-home-cardactions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #E7E1F5; }
.mobile-home-cardactions > * { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; color: #8F88A9; font-size: 14px; font-weight: 600; background: transparent; border: 0; text-decoration: none; }
.mobile-home-cardactions > * + * { border-left: 1px solid #E7E1F5; }
.mobile-home-cardactionbtn { cursor: pointer; }
.mobile-home-cardactionbtn:focus-visible { outline: 2px solid rgba(255, 59, 87, 0.28); outline-offset: -2px; }
.mobile-home-cardactionbtn.liked,
.mobile-home-cardactionbtn.bookmarked { color: #27233D; }
.mobile-home-cardactions .fa-heart { color: #FF3B57; }
.mobile-home-cardactions .fa-comment { color: #9C8EE3; }
.mobile-home-cardactions .fa-thumbtack { color: #FF5F66; }
.mobile-home-cardactions .fa-arrow-up-right-from-square { color: #8F88A9; }
.mobile-home-breaking { padding: 0 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.mobile-home-trending { padding: 0 18px 102px; display: flex; flex-direction: column; gap: 12px; }
.mobile-home-trendingcard {
  display: flex;
  gap: 12px;
  align-items: stretch;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #FF2D2D, #FFD700, #FF6B1A, var(--mobile-card-color, #FF2D2D), #FF2D2D) border-box;
  background-size: 100% 100%, 220% 220%;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 10px;
  animation: home-card-border-flow 5s linear infinite;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--mobile-card-color, #FF2D2D) 14%, transparent);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    box-shadow 0.2s ease;
  transition-delay: var(--mobile-reveal-delay, 0ms);
}
.mobile-home-trendingcard.reveal-ready {
  opacity: 0;
  transform: translate3d(var(--mobile-reveal-x, 0px), 20px, 0);
}
.mobile-home-trendingcard.reveal-ready.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.mobile-home-trendingcard.is-visible:hover,
.mobile-home-trendingcard.is-visible:active {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--mobile-card-color, #FF2D2D) 24%, transparent);
}
.mobile-home-trendingmedia {
  width: 88px;
  min-width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7B57E8;
  font-size: 28px;
}
.mobile-home-trendingmedia img { width: 100%; height: 100%; object-fit: cover; }
.mobile-home-trendingbody { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.mobile-home-trendingtopline { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mobile-home-trendingrank { font-size: 11px; font-weight: 900; color: #8A83A5; letter-spacing: 1.2px; }
.mobile-home-trendingtag { font-size: 11px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.mobile-home-trendingbody h3 { font-size: 16px; line-height: 1.3; color: #27233D; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mobile-home-trendingmeta { display: flex; gap: 10px; flex-wrap: wrap; color: #8E87A8; font-size: 12px; }
.mobile-home-bottomnav { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 520px); background: #fff; border-top: 1px solid #E5DDF7; display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 1200; }
.mobile-home-bottomnav a, .mobile-home-bottomnav button { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #867F9F; font-size: 12px; font-weight: 700; background: transparent; border: 0; padding: 0; }
.mobile-home-bottomnav a i, .mobile-home-bottomnav button i { font-size: 21px; }
.mobile-home-bottomnav a.active, .mobile-home-bottomnav button.active { color: #FF3B57; }
.mobile-home-compose { transform: translateY(-18px); }
.mobile-home-compose i { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FF5366, #FF304B); color: #fff; font-size: 24px; box-shadow: 0 14px 26px rgba(255, 76, 106, 0.28); }
.mobile-section-bottomnav { display: none; }
.mobile-section-compose { transform: translateY(-18px); }
.mobile-section-bottomnav a,
.mobile-section-bottomnav button { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #867F9F; font-size: 12px; font-weight: 700; background: transparent; border: 0; padding: 0; }
.mobile-section-bottomnav a i,
.mobile-section-bottomnav button i { font-size: 21px; }
.mobile-section-bottomnav a.active,
.mobile-section-bottomnav button.active { color: #FF3B57; }
.mobile-section-compose i { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FF5366, #FF304B); color: #fff; font-size: 24px; box-shadow: 0 14px 26px rgba(255, 76, 106, 0.28); }
.footer-links-shell { max-width: 1200px; margin: 0 auto; padding: 36px 20px 28px; }
.footer-links-hero {
  padding: 30px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.12), rgba(41, 121, 255, 0.08));
  border: 1px solid #E8E1F3;
  box-shadow: 0 20px 44px rgba(53, 45, 88, 0.08);
  margin-bottom: 22px;
}
.footer-links-hero h1 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  color: #27233D;
  margin-bottom: 10px;
}
.footer-links-hero p { max-width: 680px; font-size: 15px; line-height: 1.7; color: #6F688A; }
.footer-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.footer-links-card {
  background: #fff;
  border: 1px solid #E8E1F3;
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 16px 34px rgba(53, 45, 88, 0.08);
}
.footer-links-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #27233D;
  margin-bottom: 16px;
}
.footer-links-list { display: flex; flex-direction: column; gap: 10px; }
.footer-links-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #FCFAFF;
  border: 1px solid #EEE8F7;
  color: #544F6F;
  font-size: 14px;
  font-weight: 700;
}
.footer-links-item span { display: inline-flex; align-items: center; gap: 10px; }
.footer-links-item:hover { border-color: #D9CFF4; color: #27233D; }
.footer-links-copy { font-size: 14px; line-height: 1.75; color: #6F688A; margin-bottom: 18px; }
.footer-links-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-links-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FCFAFF;
  border: 1px solid #EEE8F7;
  color: #7A7398;
}
.footer-links-social a:hover { color: #FF3B57; border-color: #FFCCD6; }
body.footer-links-page .page-wrapper { background: linear-gradient(180deg, #FFFDFB 0%, #F8F5FF 100%); }
body.footer-links-page .site-footer { display: none; }
.story-composer-modal,
.story-viewer-modal { position: fixed; inset: 0; z-index: 1300; }
.story-composer-modal {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px));
}
.story-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 9, 17, 0.78); backdrop-filter: blur(6px); }
.story-composer-panel,
.story-viewer-panel { position: relative; z-index: 1; width: min(100% - 28px, 420px); margin: 24px auto; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38); }
.story-composer-panel {
  background: linear-gradient(180deg, #231B35, #171522);
  color: #fff;
  padding: 24px 20px 22px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.story-modal-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.6px; color: #A89ED5; margin-bottom: 10px; }
.story-composer-panel h2 { font-size: 28px; line-height: 1.05; margin-bottom: 10px; }
.story-composer-panel p { color: rgba(255,255,255,0.72); margin-bottom: 18px; }
.story-composer-form { display: grid; gap: 16px; }
.story-composer-form label span { display: block; font-size: 13px; font-weight: 700; color: #D7D0F3; margin-bottom: 8px; }
.story-composer-form textarea,
.story-composer-form input[type="file"] { width: 100%; border: 1px solid rgba(215, 208, 243, 0.16); border-radius: 18px; background: rgba(255,255,255,0.06); color: #fff; padding: 14px 16px; }
.story-composer-form textarea { min-height: 112px; resize: vertical; }
.story-color-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.story-color-option { position: relative; }
.story-color-option input { position: absolute; opacity: 0; pointer-events: none; }
.story-color-option span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--story-bg); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18); }
.story-color-option input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255, 122, 66, 0.55); }
.story-upload-preview { min-height: 78px; border-radius: 20px; background: rgba(255,255,255,0.06); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.story-upload-preview img { width: 100%; max-height: 180px; object-fit: cover; }
.story-modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.12); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 2; }
.story-viewer-panel { min-height: calc(100vh - 48px); background: #0F0D18; color: #fff; }
.story-viewer-progress { position: absolute; top: 16px; left: 16px; right: 64px; display: grid; grid-auto-flow: column; gap: 6px; z-index: 2; }
.story-viewer-progress span { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.22); overflow: hidden; }
.story-viewer-progress span::after { content: ''; display: block; width: var(--story-progress, 0%); height: 100%; background: #fff; }
.story-viewer-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 92px 24px 124px; background: linear-gradient(160deg, #251B38, #12111B); }
.story-viewer-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.story-viewer-text { position: relative; z-index: 1; font-size: 28px; line-height: 1.25; font-weight: 700; white-space: pre-wrap; }
.story-viewer-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,17,0.48), rgba(10,9,17,0.08) 32%, rgba(10,9,17,0.72)); }
.story-viewer-header { position: absolute; top: 34px; left: 16px; right: 16px; z-index: 2; }
.story-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.story-viewer-author { display: flex; align-items: center; gap: 12px; }
.story-viewer-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.story-viewer-author strong { display: block; font-size: 15px; }
.story-viewer-author span { display: block; font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.story-viewer-delete { border: 0; border-radius: 999px; background: rgba(255,255,255,0.14); color: #fff; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.story-viewer-caption { position: absolute; left: 18px; right: 18px; bottom: 22px; z-index: 2; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.95); }
.story-viewer-hit { position: absolute; top: 0; bottom: 0; width: 34%; z-index: 2; border: 0; background: transparent; }
.story-viewer-hit--prev { left: 0; }
.story-viewer-hit--next { right: 0; }
.home-desktop-only { display: block; }

/* ─── Utilities ─────────────────────────────────────────────── */
.loading-spinner { display: flex; align-items: center; justify-content: center; padding: 40px; color: var(--muted); }
.loading-spinner i { font-size: 24px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: var(--radius); }
@keyframes skeleton { to { background-position: -200% 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .home-grid, .post-page { grid-template-columns: 1fr; }
  .sidebar-col { display: none; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  body.home-page .home-latest-grid { grid-template-columns: minmax(0, 0.92fr) 360px; gap: 20px; }
  body.home-page .home-secondary-widgets { grid-template-columns: 1fr; }
  body.home-page .home-category-card { min-width: 300px; max-width: 300px; }
}
@media (max-width: 980px) {
  body.home-page .home-latest-grid { grid-template-columns: 1fr; }
  body.home-page .home-latest-sidebar { position: static; }
  body.home-page .home-category-card {
    min-width: min(78vw, 280px);
    max-width: min(78vw, 280px);
  }
  body.home-page .home-category-rail { scroll-padding-inline: 2px; }
}
@media (max-width: 1280px) {
  .panel-main { padding: 20px; }
  .panel-header, .table-header { flex-wrap: wrap; gap: 12px; align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-grid-2 { grid-template-columns: 1fr; }
  .settings-page { padding: 28px 18px; }
  .settings-title { font-size: 34px; }
  .settings-form { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .panel-split-2, .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body.home-page .ticker-wrap,
  body.home-page .navbar,
  body.home-page .site-footer,
  body.home-page > .toast-container { display: none; }
  body.trending-page .site-footer,
  body.explore-page .site-footer,
  body.community-page .site-footer,
  body.category-page .site-footer,
  body.single-post-page .site-footer { display: none; }
  body.home-page .page-wrapper { min-height: 100vh; }
  body.home-page .mobile-home-shell { display: block; }
  body.home-page .home-grid.home-desktop-only,
  body.home-page .home-desktop-only { display: none; }
  body.trending-page .home-grid,
  body.explore-page .home-grid,
  body.community-page .home-grid,
  body.category-page .home-grid { padding-bottom: 96px; }
  body.single-post-page .post-related-shell { padding-bottom: 104px; }
  .mobile-section-bottomnav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 520px);
    background: #fff;
    border-top: 1px solid #E5DDF7;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
  }
  .nav-search, .nav-links { display: none; }
  .nav-container { padding: 10px 14px; height: auto; min-height: 58px; gap: 10px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-ghost, .nav-actions .btn-primary, .nav-actions .btn-write { display: none; }
  .logo-text { font-size: 20px; }
  .logo-icon { width: 32px; height: 32px; font-size: 15px; }
  .nav-notif { width: 36px; height: 36px; }
  .nav-mobile-search { width: 36px; height: 36px; }
  .notif-panel {
    position: fixed;
    top: 88px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: 72vh;
    border-radius: 20px;
    z-index: 1205;
  }
  .notif-header { padding: 14px 16px; }
  .notif-list { max-height: calc(72vh - 56px); }
  .notif-item { padding: 14px 16px; }
  .notif-item p { overflow-wrap: anywhere; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav-overlay.open { display: block; position: fixed; inset: 0; background: rgba(15, 13, 24, 0.42); backdrop-filter: blur(4px); z-index: 1250; }
  .mobile-nav { top: 84px; right: 14px; left: auto; padding: 16px 14px; border: 1px solid #ECE7F6; border-radius: 24px; background: rgba(255,255,255,0.98); backdrop-filter: none; box-shadow: 0 22px 48px rgba(30, 24, 64, 0.18); z-index: 1260; max-height: calc(100vh - 104px); overflow-y: auto; }
  .mobile-nav.open { display: flex; flex-direction: column; }
  .mobile-nav-link { padding: 14px 18px; font-size: 14px; }
  .ticker-wrap { height: 32px; }
  .ticker-label { font-size: 10px; padding: 0 12px; letter-spacing: 1.4px; }
  .ticker-inner { padding-left: 108px; }
  .ticker-track { gap: 28px; }
  .ticker-track span { font-size: 11px; }
  .home-grid { padding: 16px 14px; gap: 20px; }
  .post-main { padding: 18px 16px 24px; border-radius: 22px; box-shadow: 0 16px 34px rgba(53, 45, 88, 0.10), 0 2px 10px rgba(53, 45, 88, 0.05); }
  .post-meta-bar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .post-author { width: 100%; }
  .post-meta-extra { width: 100%; margin-left: 0; gap: 12px; flex-wrap: wrap; }
  body.single-post-page .post-actions-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }
  body.single-post-page .post-action-big {
    min-width: 0;
    justify-content: center;
    padding: 10px 0;
    gap: 0;
    font-size: 0;
  }
  body.single-post-page .post-action-big i { font-size: 16px; }
  body.single-post-page .post-action-big .react-count { display: none; }
  .hero-section { min-height: 340px; }
  .hero-content { padding: 18px; }
  .hero-title { font-size: 24px; line-height: 1.25; }
  .hero-meta { gap: 8px; font-size: 12px; flex-wrap: wrap; }
  .hero-dots { right: 18px; bottom: 18px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card-img { height: 200px; }
  .featured-card-body { padding: 14px; }
  .featured-card-title { font-size: 16px; }
  .widget-title { font-size: 12px; letter-spacing: 1.2px; }
  .category-tabs { margin-bottom: 18px; }
  .cat-tab { padding: 8px 14px; font-size: 12px; }
  .panel-layout { display: block; min-height: 100vh; }
  .panel-sidebar { width: min(84vw, 320px); max-width: 320px; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: var(--shadow-lg); z-index: 1200; }
  .panel-sidebar.open { transform: translateX(0); }
  .panel-sidebar-mobilebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; padding: 14px 16px; background: rgba(22,22,31,0.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); z-index: 2; }
  .panel-sidebar-mobilebar strong { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
  .panel-sidebar-mobileclose { width: 38px; height: 38px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--border); color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
  .panel-sidebar-overlay.open { display: block; position: fixed; inset: 0; background: rgba(3, 3, 8, 0.58); z-index: 1190; }
  .panel-sidebar-toggle { display: inline-flex; }
  .panel-logo { padding: 18px 16px 20px; }
  .panel-nav-link { padding: 13px 16px; }
  .panel-main { margin-left: 0; padding: 16px 14px 24px; width: 100%; }
  .panel-header { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
  .panel-header h1 { font-size: 22px; }
  .panel-header > div { width: 100%; min-width: 0; }
  .panel-header > div[style*="display:flex"] { display: flex !important; flex-wrap: wrap !important; align-items: flex-start !important; gap: 10px !important; }
  .panel-header > div[style*="display:flex"] > :first-child { flex: 0 0 auto; }
  .panel-header > div[style*="display:flex"] > div:last-child { width: 100%; min-width: 0; flex: 1 1 100%; }
  .panel-header-actions { width: 100%; margin-left: 0; display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .panel-header-actions > * { width: 100%; }
  .panel-header-actions > span:first-child { grid-column: auto; }
  .panel-header .btn-write,
  .panel-header .btn-ghost,
  .panel-header .btn-primary { width: 100%; min-height: 44px; justify-content: center; }
  .panel-header .btn-sm { width: 100%; justify-content: center; text-align: center; }
  .panel-main div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .panel-main div[style*="grid-template-columns"] > * { min-width: 0; }
  .panel-main form[style*="display:flex"],
  .panel-main div[style*="display:flex"] form { width: 100%; }
  .panel-main form[style*="display:flex"] .form-control,
  .panel-main div[style*="display:flex"] form .form-control { width: 100% !important; }
  .panel-main .data-table-wrap { border-radius: 18px; overflow: hidden; }
  .table-header { padding: 16px; }
  .data-table-wrap > div[style*="padding:16px 20px"] { padding: 14px !important; }
  .stats-grid { gap: 12px; }
  .stat-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); padding: 16px; gap: 12px; border-radius: 18px; }
  .stat-icon { width: 42px; height: 42px; font-size: 18px; }
  .stat-info strong { font-size: 24px; }
  .create-page { padding: 18px 14px 24px; }
  .create-layout { grid-template-columns: 1fr !important; gap: 18px !important; }
  .create-side { order: -1; }
  body.community-create-page .community-create-side { order: 0; }
  .create-ai-promptgrid,
  .create-ai-selectgrid,
  .create-insightsgrid { grid-template-columns: 1fr !important; }
  .create-main,
  .create-side,
  .create-layout > div { width: 100%; max-width: 100%; min-width: 0; }
  .create-side { display: flex; flex-direction: column; gap: 14px; }
  .create-side > .create-widget,
  .create-side > .create-meta-card { width: 100%; }
  .create-topactions { width: 100%; margin-left: 0; flex-wrap: wrap; gap: 8px; }
  .create-topactions > span { flex: 1 1 100%; order: 3; font-size: 12px !important; }
  .create-topactions > .btn-ghost,
  .create-topactions > .btn-write { flex: 1 1 calc(50% - 4px); justify-content: center; }
  body.create-post-page .nav-container { padding: 12px 14px; height: auto; min-height: 0; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
  body.create-post-page .nav-logo { flex: 1 1 auto; min-width: 0; }
  body.create-post-page .logo-text { font-size: 18px; }
  body.create-post-page .logo-icon { width: 30px; height: 30px; font-size: 14px; }
  .create-title-input { font-size: 26px; margin-bottom: 16px; }
  .create-widget { padding: 14px; }
  .create-toolbar { padding: 10px 12px; }
  .toolbar-inline-panel { padding: 12px; }
  .toolbar-inline-grid,
  .toolbar-inline-grid--cta { grid-template-columns: 1fr; }
  .toolbar-inline-color input[type="color"] { width: 100%; }
  .toolbar-inline-actions { flex-wrap: wrap; }
  .create-editor { min-height: 320px; padding: 16px; font-size: 15px; }
  .navbar .nav-container > div[style*="margin-left:auto"] { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .navbar .nav-container > div[style*="margin-left:auto"] > * { flex: 1 1 100%; }
  .navbar .nav-container > div[style*="margin-left:auto"] > span { flex-basis: auto; }
  body.create-post-page .create-topactions > .btn-ghost,
  body.create-post-page .create-topactions > .btn-write { flex: 1 1 calc(50% - 4px) !important; }
  body.create-post-page .create-topactions > span { flex: 1 1 100% !important; }
  .data-table { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tbody { display: block; }
  .data-table tr { display: block; padding: 14px; border-bottom: 1px solid var(--border); }
  .data-table tr:last-child { border-bottom: none; }
  .data-table td { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); white-space: normal !important; max-width: 100% !important; }
  .data-table td:last-child { border-bottom: none; }
  .data-table td::before { content: attr(data-label); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2); }
  .data-table td > div,
  .data-table td > span,
  .data-table td > a,
  .data-table td > button { max-width: 100%; }
  .data-table td [style*="display:flex"] { flex-wrap: wrap; width: 100%; }
  .data-table td .btn-sm { min-height: 38px; }
  .pagination { flex-wrap: wrap; padding: 20px 0 8px; }
  .footer-top { grid-template-columns: 1fr; }
  .settings-page { padding: 22px 14px; }
  .settings-title { font-size: 28px; }
  .settings-subtitle { font-size: 14px; line-height: 1.7; }
  .settings-splitgrid { grid-template-columns: 1fr; gap: 12px; }
  .settings-actions { flex-direction: column; }
  .settings-actions .btn-primary,
  .settings-actions .btn-ghost,
  .settings-avataractions .btn-ghost { width: 100%; justify-content: center; text-align: center; }
  .settings-card { padding: 16px; }
  .settings-avatarpreview { width: 104px; height: 104px; }
  body.trending-page .navbar,
  body.explore-page .navbar,
  body.community-page .navbar,
  body.search-page .navbar,
  body.single-post-page .navbar,
  body.category-page .navbar {
    background: #fff;
    border-bottom: 1px solid rgba(95, 84, 150, 0.14);
    backdrop-filter: none;
    z-index: 1270;
  }
  body.trending-page .nav-container,
  body.explore-page .nav-container,
  body.community-page .nav-container,
  body.search-page .nav-container,
  body.single-post-page .nav-container {
    padding: 14px 18px 14px 4px;
    min-height: 58px;
    height: auto;
    gap: 10px;
  }
  body.trending-page .nav-logo,
  body.explore-page .nav-logo,
  body.community-page .nav-logo,
  body.search-page .nav-logo,
  body.single-post-page .nav-logo { gap: 0; }
  body.trending-page .logo-icon,
  body.explore-page .logo-icon,
  body.community-page .logo-icon,
  body.search-page .logo-icon,
  body.single-post-page .logo-icon {
    width: 62px;
    height: 62px;
  }
  body.trending-page .logo-text,
  body.explore-page .logo-text,
  body.community-page .logo-text,
  body.search-page .logo-text,
  body.single-post-page .logo-text {
    font-size: 12px;
    color: #2C2944;
  }
  body.trending-page .nav-brand-slogan,
  body.explore-page .nav-brand-slogan,
  body.community-page .nav-brand-slogan,
  body.search-page .nav-brand-slogan,
  body.single-post-page .nav-brand-slogan { display: block; }
  body.trending-page .nav-notif,
  body.explore-page .nav-notif,
  body.community-page .nav-notif,
  body.search-page .nav-notif,
  body.single-post-page .nav-notif {
    background: #F3EEFF;
    color: #7D73A8;
    box-shadow: inset 0 0 0 1px rgba(130, 118, 186, 0.12);
  }
  body.trending-page .nav-mobile-search,
  body.explore-page .nav-mobile-search,
  body.community-page .nav-mobile-search,
  body.search-page .nav-mobile-search,
  body.single-post-page .nav-mobile-search {
    display: inline-flex;
  }
  body.trending-page .nav-user,
  body.explore-page .nav-user,
  body.community-page .nav-user {
    display: none;
  }
  body.search-page .nav-user {
    display: none;
  }
  body.trending-page .mobile-menu-btn,
  body.explore-page .mobile-menu-btn,
  body.community-page .mobile-menu-btn,
  body.search-page .mobile-menu-btn,
  body.single-post-page .mobile-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 0;
    background: #F3EEFF;
    box-shadow: inset 0 0 0 1px rgba(130, 118, 186, 0.12);
  }
  body.trending-page .mobile-menu-btn span,
  body.explore-page .mobile-menu-btn span,
  body.community-page .mobile-menu-btn span,
  body.search-page .mobile-menu-btn span,
  body.single-post-page .mobile-menu-btn span {
    width: 18px;
    border-radius: 999px;
    background: #5D5877;
  }
  .news-card { flex-direction: column; }
  .news-card-img { width: 100%; height: 180px; }
  .news-card-body { padding: 14px; }
  .news-card-title { font-size: 16px; }
  .news-card-meta { gap: 8px; font-size: 12px; flex-wrap: wrap; }
  .news-card-actions { gap: 6px; padding: 0 14px 14px; flex-wrap: wrap; }
  .action-btn { font-size: 12px; }
  .site-breadcrumb { margin-bottom: 14px; }
  .site-breadcrumb ol { gap: 6px; }
  .site-breadcrumb a,
  .site-breadcrumb span[aria-current="page"] { min-height: 28px; padding: 5px 10px; font-size: 11px; }
  .post-related-shell { padding: 0 12px 8px; margin-bottom: 24px; }
  .post-related-panel { padding: 18px 14px 20px; border-radius: 22px; }
  .related-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .related-post-card { border-radius: 18px; }
  .related-post-body { padding: 11px 11px 13px; }
  .related-post-tag { margin-bottom: 6px; font-size: 9px; letter-spacing: 1px; }
  .related-post-body h4 { font-size: 14px; margin-bottom: 6px; }
  .related-post-body p { font-size: 11px; margin-bottom: 10px; -webkit-line-clamp: 2; }
  .related-post-meta { gap: 6px 10px; font-size: 10px; }
  body.explore-page .explore-grid,
  body.explore-page .explore-card,
  body.explore-page .explore-hero { width: 100%; }
  body.explore-page .explore-embed-social { padding: 10px; }
  body.explore-page .explore-embed .instagram-media { min-width: 0 !important; }
  .explore-card { padding: 16px; border-radius: 18px; }
  .explore-card-head { flex-direction: column; gap: 10px; }
  .explore-meta { text-align: left; white-space: normal; }
  .explore-card h2 { font-size: 20px; }
  .community-card { padding: 16px; }
  .community-card-title { font-size: 17px; }
  .community-card-excerpt { font-size: 13px; line-height: 1.65; }
  .community-card-footer { flex-wrap: wrap; }
  .footer-container { padding: 34px 16px 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
  .panel-main { padding: 14px 12px 22px; }
  .panel-header { margin-bottom: 16px; }
  .panel-header h1 { font-size: 20px; }
  .panel-sidebar { width: calc(100vw - 48px); }
  .settings-page { padding: 18px 12px; }
  .settings-title { font-size: 24px; }
  .settings-card { padding: 14px; border-radius: 18px; }
  .settings-avataractions,
  .settings-actions { gap: 8px; }
  .panel-sidebar-toggle { width: 40px; height: 40px; border-radius: 10px; }
  .panel-sidebar-mobilebar { padding: 12px 14px; }
  .panel-sidebar-mobileclose { width: 36px; height: 36px; }
  .table-header { padding: 14px; }
  .data-table tr { padding: 12px; }
  .data-table td { gap: 5px; padding: 9px 0; }
  .create-page { padding: 16px 12px 22px; }
  .create-layout { gap: 14px !important; }
  body.community-create-page .community-create-layout { gap: 18px !important; }
  .create-breadcrumb { font-size: 12px !important; margin-bottom: 18px !important; }
  .create-topactions > .btn-ghost,
  .create-topactions > .btn-write { flex-basis: 100%; }
  .create-widget { padding: 13px; border-radius: 18px; }
  .create-ai-selectgrid { gap: 8px !important; }
  .create-title-input { font-size: 23px; }
  .create-editor { min-height: 280px; padding: 14px; }
  body.community-create-page .community-create-header { padding: 20px 18px; }
  body.community-create-page .community-create-actions .btn-write,
  body.community-create-page .community-create-actions .btn-ghost { flex-basis: 100%; }
  .navbar .nav-container > div[style*="margin-left:auto"] { gap: 8px !important; }
  body.create-post-page .create-topactions > .btn-ghost,
  body.create-post-page .create-topactions > .btn-write { flex-basis: 100% !important; }
  .mobile-home-status { padding: 12px 14px 8px; }
  .mobile-home-topbar { padding: 14px; }
  .mobile-home-brandtext { font-size: 12px; }
  .mobile-home-stories { gap: 14px; padding: 16px 14px 12px; }
  .mobile-story-ring { width: 64px; height: 64px; font-size: 24px; }
  .mobile-home-pills { padding: 8px 14px 16px; }
  .mobile-home-pill { padding: 10px 16px; font-size: 14px; }
  .mobile-home-hero { margin: 0 14px 20px; min-height: 218px; }
  .mobile-home-herocontent { left: 16px; right: 16px; bottom: 14px; }
  .mobile-home-herocontent h2 { font-size: 20px; }
  .mobile-home-herometa { gap: 10px; font-size: 12px; }
  .mobile-home-sectionhead { margin: 0 14px 12px; }
  .mobile-home-sectionhint { padding: 5px 9px; font-size: 9px; }
  .mobile-home-breaking { padding: 0 14px 18px; }
  .mobile-home-menu { top: 78px; right: 10px; width: min(92vw, 330px); border-radius: 20px; }
  .mobile-home-newsletter { margin: 0 14px 104px; padding: 16px 14px; }
  .mobile-home-newsletterhead h2 { font-size: 21px; }
  .mobile-home-newsletterform { grid-template-columns: 1fr; }
  .mobile-home-topicsrail { padding: 0 14px 20px; gap: 8px; }
  .mobile-home-topicchip { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .mobile-home-list { padding: 0 14px 18px; }
  .mobile-home-categoryrail {
    --mobile-category-card-width: min(86vw, 300px);
    padding: 4px max(14px, calc((100vw - var(--mobile-category-card-width)) / 2)) 22px;
    gap: 12px;
  }
  .mobile-home-followrail {
    --mobile-follow-card-width: min(56vw, 156px);
    padding: 0 6px 106px;
    gap: 2px;
  }
  .mobile-home-followcard { padding: 13px 11px 12px; border-radius: 18px; }
  .mobile-home-followbody strong { font-size: 13px; }
  .mobile-home-followbody span { font-size: 11px; }
  .mobile-home-categorycard { border-radius: 20px; padding: 14px 14px 12px; }
  .mobile-home-categorycard h3 { font-size: 18px; }
  .mobile-home-categorytitle { font-size: 13px; }
  .mobile-home-featuredslider {
    --featured-card-width: min(84vw, 292px);
    padding-bottom: 22px;
  }
  .mobile-home-featuredvisual { min-height: 320px; border-radius: 24px; }
  .mobile-home-featuredcontent { left: 16px; right: 16px; bottom: 16px; }
  .mobile-home-featuredcontent h3 { font-size: 17px; }
  .mobile-home-featuredcontent p { font-size: 12px; }
  .mobile-home-featuredmeta { margin-top: 12px; font-size: 11px; gap: 8px 10px; }
  .mobile-home-trending { padding: 0 14px 96px; }
  .mobile-home-cardmedia { height: 126px; }
  .mobile-home-cardbody h3 { font-size: 17px; }
  .mobile-home-cardmeta { font-size: 13px; }
  .mobile-home-cardactions > * { min-height: 42px; font-size: 13px; }
  .mobile-home-trendingmedia { width: 78px; min-width: 78px; height: 78px; }
  .mobile-home-trendingbody h3 { font-size: 15px; }
  .mobile-home-trendingmeta { font-size: 11px; gap: 8px; }
  .mobile-home-bottomnav { padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .mobile-home-compose i { width: 58px; height: 58px; }
  .mobile-section-bottomnav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 520px);
    background: #fff;
    border-top: 1px solid #E5DDF7;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
  }
  .mobile-section-compose i { width: 58px; height: 58px; }
  .footer-links-shell { padding: 24px 12px 22px; }
  .footer-links-hero { padding: 22px 18px; border-radius: 22px; }
  .footer-links-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-links-card { border-radius: 20px; padding: 18px 16px; }
  .footer-links-item { padding: 11px 12px; font-size: 13px; }
  .story-composer-panel,
  .story-viewer-panel { width: calc(100% - 18px); margin: 9px auto; border-radius: 24px; }
  .story-viewer-panel { min-height: calc(100vh - 18px); }
  .story-composer-panel h2 { font-size: 24px; }
  .story-viewer-text { font-size: 24px; }
  .mobile-nav { top: 78px; right: 10px; left: auto; width: min(92vw, 330px); border-radius: 20px; }
  .mobile-nav-link { padding: 13px 16px; font-size: 13px; }
  .nav-container { padding: 8px 12px; }
  .logo-text { font-size: 18px; }
  .logo-icon { width: 30px; height: 30px; font-size: 14px; }
  body.trending-page .nav-container,
  body.explore-page .nav-container,
  body.community-page .nav-container,
  body.single-post-page .nav-container { padding: 12px 14px 12px 4px; }
  body.trending-page .logo-text,
  body.explore-page .logo-text,
  body.community-page .logo-text,
  body.single-post-page .logo-text { font-size: 12px; }
  body.trending-page .nav-brand-slogan,
  body.explore-page .nav-brand-slogan,
  body.community-page .nav-brand-slogan,
  body.single-post-page .nav-brand-slogan { font-size: 8px; }
  .ticker-label { font-size: 9px; padding: 0 10px; }
  .ticker-inner { padding-left: 98px; }
  .ticker-track span { font-size: 10px; }
  .auth-card { padding: 24px; }
  .home-grid { padding: 14px 12px; }
  .post-page { padding: 12px; }
  .post-main { padding: 16px 12px 20px; border-radius: 20px; box-shadow: 0 14px 28px rgba(53, 45, 88, 0.10), 0 2px 8px rgba(53, 45, 88, 0.05); }
  .post-meta-bar { gap: 10px; padding: 14px 0; }
  .post-author { gap: 8px; }
  .post-author-img { width: 40px; height: 40px; }
  .post-author-info strong { font-size: 13px; line-height: 1.25; }
  .post-author-info span { font-size: 11px; }
  .post-meta-extra { gap: 10px; font-size: 12px; }
  .post-actions-bar { gap: 8px; padding: 16px 0; }
  .post-action-big { min-height: 42px; font-size: 13px; }
  body.single-post-page .post-action-big { font-size: 0; }
  body.single-post-page .post-action-big i { font-size: 15px; }
  .hero-section { min-height: 300px; }
  .hero-content { padding: 16px; }
  .hero-badge { font-size: 10px; padding: 4px 10px; }
  .hero-title { font-size: 22px; }
  .hero-meta { font-size: 11px; gap: 6px; }
  .news-card-img, .featured-card-img { height: 160px; }
  .news-card-title, .featured-card-title { font-size: 15px; }
  .news-card-meta { font-size: 11px; }
  .news-card-actions { padding: 0 12px 12px; }
  .action-btn { font-size: 11px; padding: 4px 6px; }
  .category-tabs { gap: 6px; }
  .cat-tab { padding: 7px 12px; }
  .profile-meta-chips { gap: 8px; }
  .profile-meta-chip { min-height: 34px; padding: 0 12px; font-size: 12px; }
  body.home-page .home-category-rail { gap: 10px; padding: 4px 0 10px; scroll-padding-inline: 0; }
  body.home-page .home-category-card {
    min-width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    border-radius: 18px;
  }
  .footer-brand p, .footer-col a { font-size: 13px; }
  .post-title { font-size: 22px; }
}
