* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f7faff;
  --surface: #ffffff;
  --surface-soft: #eef5ff;
  --text: #102033;
  --muted: #64748b;
  --primary: #1d4ed8;
  --primary-soft: #dbeafe;
  --border: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
  --bg: #07111f;
  --surface: #0f1b2d;
  --surface-soft: #12233a;
  --text: #eaf2ff;
  --muted: #9fb0c7;
  --primary: #60a5fa;
  --primary-soft: #14345f;
  --border: #233653;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}

.topbar-inner {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 27, 45, 0.9);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  box-shadow: var(--shadow);
}

.brand strong {
  display: block;
  font-size: 19px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  font-size: 14px;
}

.nav-menu a {
  color: var(--muted);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-switcher {
  display: flex;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.theme-switcher button,
.menu-btn {
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.theme-switcher button:hover {
  background: var(--surface);
}

.login-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.menu-btn {
  display: none;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.breaking-news {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.breaking-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.breaking-inner strong {
  background: var(--primary);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.breaking-marquee {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
}

.hero-news {
  padding: 36px 0 42px;
}

.news-layout {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 24px;
}

.main-story {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-image {
  height: 330px;
}

.story-gradient {
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.9), transparent 32%),
    linear-gradient(135deg, #1d4ed8, #0ea5e9 48%, #f8fafc);
}

.story-content {
  padding: 28px;
}

.category-label {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.story-content h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  margin-bottom: 14px;
  letter-spacing: -1.2px;
}

.story-content p {
  color: var(--muted);
  max-width: 720px;
}

.story-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.story-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.side-stories {
  display: grid;
  gap: 16px;
}

.side-stories article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.side-stories span {
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
}

.side-stories h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 10px 0;
}

.side-stories small {
  color: var(--muted);
}

.section {
  padding: 48px 0;
}

.soft-section {
  background: var(--surface-soft);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-title span {
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
}

.section-title h2 {
  font-size: 32px;
  letter-spacing: -0.6px;
}

.section-title a {
  color: var(--primary);
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.category-card i,
.category-card svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
  margin-bottom: 18px;
}

.category-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.category-card small {
  color: var(--muted);
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);
}

.thumb {
  height: 140px;
  border-radius: 18px;
}

.thumb-blue {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.thumb-green {
  background: linear-gradient(135deg, #059669, #86efac);
}

.thumb-orange {
  background: linear-gradient(135deg, #ea580c, #fed7aa);
}

.article-row h3 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.article-row p {
  color: var(--muted);
  margin-bottom: 8px;
}

.article-row small {
  color: var(--muted);
}

.community-section {
  padding: 56px 0;
}

.community-card {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.28), transparent 34%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 42px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.community-card span {
  color: var(--primary);
  font-weight: 800;
}

.community-card h2 {
  font-size: 34px;
  line-height: 1.15;
  max-width: 720px;
  margin: 10px 0;
}

.community-card p {
  color: var(--muted);
  max-width: 680px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 28px;
}

.footer p,
.footer a {
  color: var(--muted);
}

.footer a {
  display: block;
  margin-top: 8px;
}

.footer h3,
.footer h4 {
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 34px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 114px;
    left: 4%;
    right: 4%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .nav-menu.show {
    display: flex;
  }

  .menu-btn {
    display: grid;
  }

  .login-btn {
    display: none;
  }

  .news-layout,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .community-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .story-image {
    height: 240px;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    font-size: 12px;
  }

  .header-inner {
    height: 72px;
  }

  .theme-switcher {
    display: none;
  }

  .story-content,
  .community-card {
    padding: 24px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-row h3 {
    font-size: 20px;
  }
}
.brand-logo{
  width:56px;
  height:56px;
  object-fit:contain;
  flex-shrink:0;
}

.brand-text strong{
  display:block;
  font-size:20px;
  font-weight:800;
}

.brand-text small{
  color:var(--muted);
  font-size:12px;
}
.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.brand-text span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .4px;
}

.page-hero {
  padding: 58px 0 34px;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, .18), transparent 30%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: 860px;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.3px;
  margin: 14px 0;
}

.page-hero p {
  color: var(--muted);
  font-size: 17px;
}

.search-box {
  margin-top: 28px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
}

.search-box svg {
  color: var(--primary);
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.news-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.headline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.headline-image {
  min-height: 360px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), transparent 28%),
    linear-gradient(135deg, #1d4ed8, #38bdf8);
}

.headline-content {
  padding: 30px;
}

.headline-content h2 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.7px;
  margin-bottom: 12px;
}

.headline-content p {
  color: var(--muted);
}

.read-more {
  margin-top: 22px;
  display: inline-flex;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.news-title-gap {
  margin-top: 38px;
}

.news-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  margin-bottom: 16px;
}

.sidebar-card a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.sidebar-card a:last-child {
  border-bottom: none;
}

.sidebar-card a:hover {
  color: var(--primary);
}

.trending-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item strong {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.trending-item p {
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
}

.subscribe-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.thumb-purple {
  background: linear-gradient(135deg, #7c3aed, #c4b5fd);
}

@media (max-width: 980px) {
  .news-page-layout,
  .headline-card {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: static;
  }
}
.detail-hero {
  padding: 52px 0 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, .16), transparent 32%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.detail-hero-inner {
  max-width: 900px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 18px;
}

.back-link:hover {
  color: var(--primary);
}

.detail-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 14px 0;
}

.article-subtitle {
  color: var(--muted);
  font-size: 18px;
  max-width: 780px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-author strong {
  display: block;
}

.article-author span {
  color: var(--muted);
  font-size: 14px;
}

.detail-section {
  padding: 42px 0 60px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.article-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.article-cover {
  height: 390px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 22% 25%, rgba(255,255,255,.8), transparent 28%),
    linear-gradient(135deg, #1d4ed8, #38bdf8 55%, #e0f2fe);
  margin-bottom: 20px;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.share-bar button {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
}

.share-bar button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.article-content p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 18px;
}

.article-content h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 34px 0 14px;
  letter-spacing: -.6px;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 5px solid var(--primary);
  background: var(--surface-soft);
  border-radius: 18px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0;
}

.article-tags span {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.related-item {
  display: block !important;
  padding: 14px 0 !important;
}

.related-item span {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.related-item strong {
  color: var(--text);
  line-height: 1.35;
}

.comment-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.comment-box {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.comment-box textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 16px;
  outline: none;
  font-size: 15px;
  font-family: inherit;
}

.comment-box textarea:focus {
  border-color: var(--primary);
}

.comment-list {
  display: grid;
  gap: 14px;
}

.comment-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.comment-item p {
  font-size: 15px;
  color: var(--muted);
  margin: 4px 0 0;
}

@media (max-width: 980px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

  .article-cover {
    height: 260px;
  }
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.auth-left {
  padding: 42px;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, .28), transparent 30%),
    linear-gradient(135deg, #1d4ed8, #38bdf8);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 5px;
}

.auth-brand h1 {
  line-height: 1;
  font-size: 28px;
}

.auth-brand p {
  opacity: .85;
  font-size: 13px;
}

.auth-hero {
  max-width: 620px;
}

.auth-hero span {
  display: inline-flex;
  background: rgba(255,255,255,.16);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 18px;
}

.auth-hero h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin-bottom: 18px;
}

.auth-hero p {
  font-size: 18px;
  opacity: .9;
  max-width: 560px;
}

.auth-right {
  padding: 36px;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(470px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.auth-title span {
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
}

.auth-title h2 {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 8px 0;
}

.auth-title p {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.auth-form label {
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.input-group {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 14px;
  height: 56px;
}

.input-group:focus-within {
  border-color: var(--primary);
}

.input-group svg {
  color: var(--primary);
  flex-shrink: 0;
}

.input-group input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.toggle-pass {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.check-row {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 700 !important;
  color: var(--muted) !important;
}

.auth-options a,
.auth-switch a {
  color: var(--primary);
  font-weight: 900;
}

.auth-submit {
  height: 56px;
  border: none;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: .25s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(29, 78, 216, .25);
}

.auth-switch {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-left {
    min-height: 360px;
  }

  .auth-right {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .auth-left {
    padding: 28px;
  }

  .auth-brand img {
    width: 52px;
    height: 52px;
  }

  .auth-card {
    border-radius: 24px;
    padding: 22px;
  }

  .auth-top .theme-switcher {
    display: flex;
  }
}
.terms-row {
  align-items: flex-start !important;
  line-height: 1.5;
}

.terms-row input {
  margin-top: 4px;
}

.terms-row a {
  color: var(--primary);
  font-weight: 900;
}
/* FIX AUTH LAYOUT - tempel paling bawah */

.auth-left {
  position: relative;
  justify-content: center !important;
  align-items: flex-start;
  overflow: hidden;
}

.auth-brand {
  position: absolute;
  top: 40px;
  left: 42px;
  z-index: 2;
}

.auth-hero {
  margin-top: 80px !important;
  padding-bottom: 0 !important;
  max-width: 620px;
}

.auth-hero h2 {
  font-size: clamp(34px, 4vw, 56px) !important;
  line-height: 1.05 !important;
}

.auth-hero p {
  max-width: 520px;
}

.auth-right {
  align-items: center !important;
}

@media (max-width: 980px) {
  .auth-brand {
    position: static;
  }

  .auth-left {
    justify-content: flex-start !important;
  }

  .auth-hero {
    margin-top: 30px !important;
  }
}

@media (max-width: 560px) {
  .auth-left {
    display: none !important;
  }
}
.profile-page {
  background: var(--bg);
}

.profile-hero {
  padding: 42px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, .18), transparent 30%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: stretch;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-cover {
  height: 160px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.75), transparent 26%),
    linear-gradient(135deg, #1d4ed8, #38bdf8);
}

.profile-main {
  padding: 0 28px 24px;
  display: flex;
  align-items: end;
  gap: 18px;
  margin-top: -44px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: #fff;
  border: 6px solid var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-main h1 {
  font-size: 32px;
  line-height: 1;
}

.profile-main p {
  color: var(--muted);
  margin: 6px 0;
}

.role-badge {
  display: inline-flex;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.profile-actions {
  padding: 0 28px 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.outline-btn {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.outline-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.profile-summary {
  display: grid;
  gap: 16px;
}

.profile-summary div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.profile-summary svg {
  color: var(--primary);
  margin-bottom: 10px;
}

.profile-summary strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.profile-summary span {
  color: var(--muted);
  font-weight: 700;
}

.profile-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 110px;
}

.profile-menu button {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 14px 16px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-align: left;
}

.profile-menu button.active,
.profile-menu button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.profile-content {
  min-width: 0;
}

.profile-tab {
  display: none;
}

.profile-tab.active {
  display: grid;
  gap: 18px;
}

.forum-mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow);
}

.forum-mini-card svg {
  color: var(--primary);
  flex-shrink: 0;
}

.forum-mini-card p {
  color: var(--muted);
}

.settings-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.settings-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.settings-form input,
.settings-form textarea {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 16px;
  padding: 14px;
  font-family: inherit;
  outline: none;
}

.settings-form textarea {
  min-height: 110px;
  resize: vertical;
}

@media (max-width: 980px) {
  .profile-hero-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-menu {
    position: static;
  }
}

@media (max-width: 560px) {
  .profile-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-cover {
    height: 130px;
  }
}
.forum-hero {
  padding: 58px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, .18), transparent 30%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.forum-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: center;
}

.forum-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin: 14px 0;
  max-width: 850px;
}

.forum-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
}

.forum-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.forum-stats-card {
  display: grid;
  gap: 14px;
}

.forum-stats-card div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.forum-stats-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.forum-stats-card span {
  color: var(--muted);
  font-weight: 700;
}

.forum-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.forum-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.forum-filter {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 13px 12px;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-align: left;
}

.forum-filter.active,
.forum-filter:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.forum-rules p {
  color: var(--muted);
}

.forum-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 18px;
}

.forum-search {
  margin: 0;
  max-width: none;
  background: var(--surface);
}

.forum-toolbar select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 800;
  outline: none;
}

.forum-list {
  display: grid;
  gap: 16px;
}

.forum-topic {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  transition: .25s ease;
}

.forum-topic:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.topic-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.topic-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topic-meta span {
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
}

.topic-meta small {
  color: var(--muted);
}

.topic-content h3 {
  font-size: 23px;
  line-height: 1.25;
  margin: 8px 0;
}

.topic-content p {
  color: var(--muted);
}

.topic-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.topic-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topic-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 1500;
}

.topic-modal.show {
  display: grid;
}

.topic-modal-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  animation: modalPop .28s ease;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.topic-modal-card h2 {
  font-size: 32px;
  margin: 8px 0;
}

.topic-modal-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.topic-form {
  display: grid;
  gap: 14px;
}

.topic-form input,
.topic-form select,
.topic-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 16px;
  padding: 14px;
  outline: none;
  font-family: inherit;
}

.topic-form textarea {
  min-height: 130px;
  resize: vertical;
}

@media (max-width: 980px) {
  .forum-hero-grid,
  .forum-layout,
  .forum-toolbar {
    grid-template-columns: 1fr;
  }

  .forum-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .forum-topic {
    grid-template-columns: 1fr;
  }

  .topic-icon {
    width: 48px;
    height: 48px;
  }
}
.admin-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px 1fr;
  background: var(--bg);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.admin-brand h2 {
  font-size: 21px;
  line-height: 1;
}

.admin-brand span {
  font-size: 12px;
  color: var(--muted);
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu button,
.admin-back {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 14px 16px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-align: left;
}

.admin-menu button.active,
.admin-menu button:hover,
.admin-back:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.admin-back {
  margin-top: auto;
}

.admin-content {
  padding: 28px;
  min-width: 0;
}

.admin-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-header span {
  color: var(--primary);
  font-weight: 900;
}

.admin-header h1 {
  font-size: 34px;
  line-height: 1;
  margin-top: 6px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: grid;
  gap: 24px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.admin-stats div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.admin-stats svg {
  color: var(--primary);
  margin-bottom: 12px;
}

.admin-stats strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.admin-stats span {
  color: var(--muted);
  font-weight: 700;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.admin-card h3 {
  margin-bottom: 18px;
}

.admin-list-item,
.moderation-item,
.admin-user-row,
.activity-item {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-list-item span,
.admin-user-row span,
.activity-item p,
.moderation-item p {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.admin-list-item button,
.approve-btn,
.danger-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.admin-list-item button,
.approve-btn {
  background: var(--primary);
  color: #fff;
}

.danger-btn {
  background: #fee2e2;
  color: #dc2626;
}

.activity-item {
  justify-content: flex-start;
}

.activity-item svg {
  color: var(--primary);
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-user-row select {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 16px;
  padding: 14px;
  outline: none;
  font-family: inherit;
}

.admin-form textarea {
  min-height: 180px;
  resize: vertical;
}

@media (max-width: 1050px) {
  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-back {
    margin-top: 0;
  }

  .admin-stats,
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .admin-content {
    padding: 18px;
  }

  .admin-header,
  .admin-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-menu,
  .admin-stats,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-list-item,
  .moderation-item,
  .admin-user-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
.legal-hero{
  padding:70px 0;
  background:
  radial-gradient(circle at 20% 20%, rgba(59,130,246,.15), transparent 30%),
  var(--surface);
  border-bottom:1px solid var(--border);
}

.legal-hero-content{
  max-width:800px;
}

.legal-hero h1{
  font-size:clamp(38px,5vw,64px);
  line-height:1.05;
  margin:14px 0;
  letter-spacing:-1.5px;
}

.legal-hero p{
  color:var(--muted);
  font-size:18px;
}

.legal-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:28px;
  padding:28px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
}

.legal-card h2{
  margin-bottom:22px;
  font-size:28px;
}

.legal-table{
  display:grid;
  gap:14px;
}

.legal-row{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:14px 0;
  border-bottom:1px solid var(--border);
}

.legal-row:last-child{
  border-bottom:none;
}

.legal-row strong{
  min-width:180px;
}

.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
}

.team-card{
  border:1px solid var(--border);
  border-radius:22px;
  padding:24px;
  text-align:center;
  background:var(--surface-soft);
}

.team-avatar{
  width:70px;
  height:70px;
  margin:auto;
  margin-bottom:14px;
  border-radius:20px;
  background:var(--primary-soft);
  color:var(--primary);
  display:grid;
  place-items:center;
}

.contact-grid{
  display:grid;
  gap:18px;
}

.contact-item{
  display:flex;
  align-items:center;
  gap:16px;
}

.contact-item svg{
  color:var(--primary);
}

.contact-item strong{
  display:block;
}

.contact-item span{
  color:var(--muted);
}

@media(max-width:768px){
  .legal-row{
    flex-direction:column;
  }
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mission-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
}

.mission-card svg {
  color: var(--primary);
  margin-bottom: 14px;
}

.mission-card h3 {
  margin-bottom: 8px;
}

.mission-card p {
  color: var(--muted);
}

.about-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, .22), transparent 35%),
    var(--surface);
}

.about-highlight p {
  color: var(--muted);
  max-width: 760px;
}

@media (max-width: 900px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-highlight {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
}
.contact-page-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.contact-info-list{
  display:grid;
  gap:18px;
}

.contact-info-item{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--surface-soft);
}

.contact-info-item svg{
  color:var(--primary);
  flex-shrink:0;
}

.contact-info-item strong{
  display:block;
}

.contact-info-item span{
  color:var(--muted);
}

.contact-form{
  display:grid;
  gap:14px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  border:1px solid var(--border);
  background:var(--surface-soft);
  color:var(--text);
  border-radius:16px;
  padding:14px;
  outline:none;
  font-family:inherit;
}

.contact-form textarea{
  min-height:180px;
  resize:vertical;
}

@media(max-width:900px){
  .contact-page-grid{
    grid-template-columns:1fr;
  }
}
.legal-list{
  margin-top:12px;
  padding-left:20px;
}

.legal-list li{
  margin-bottom:10px;
  color:var(--muted);
  line-height:1.7;
}
.category-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  transition: .25s ease;
}

.category-page-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.category-page-card svg {
  color: var(--primary);
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.category-page-card h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

.category-page-card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.category-page-card span {
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
}

@media(max-width: 980px) {
  .category-page-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 560px) {
  .category-page-grid {
    grid-template-columns: 1fr;
  }
}
.search-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.search-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(10px);
  z-index: 1800;
  display: none;
  place-items: start center;
  padding: 90px 18px 18px;
}

.search-overlay.show {
  display: grid;
}

.search-modal {
  width: min(760px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .25);
  overflow: hidden;
  animation: searchPop .28s ease;
}

@keyframes searchPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-modal-head {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.search-modal-head svg {
  color: var(--primary);
  flex-shrink: 0;
}

.search-modal-head input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 18px;
}

.search-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.search-results {
  padding: 16px;
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.search-result-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.search-result-item:hover {
  border-color: var(--primary);
}

.search-result-item span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.search-result-item strong {
  color: var(--text);
}

.search-result-item small {
  color: var(--muted);
}

.search-empty {
  color: var(--muted);
  text-align: center;
  padding: 30px;
}
/* ===================================
   Reading Progress Bar
=================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 3000;
  background: transparent;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    #2563eb,
    #3b82f6,
    #38bdf8
  );
  transition: width .08s linear;
  box-shadow: 0 0 10px rgba(59,130,246,.4);
}
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 88px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: .3s ease;
  z-index: 1200;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

@media(max-width: 560px) {
  .back-to-top {
    right: 16px;
    bottom: 82px;
  }
}
.share-bar button.bookmarked {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.share-bar button.bookmarked svg {
  fill: currentColor;
}
/* ===========================
   Newsletter
=========================== */

.newsletter-section {
  padding: 70px 0;
}

.newsletter-card {

  background:
  radial-gradient(
    circle at top right,
    rgba(59,130,246,.15),
    transparent 35%
  ),
  var(--surface);

  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 42px;

  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;

  box-shadow: var(--shadow);
}

.newsletter-content {
  max-width: 700px;
}

.newsletter-content h2 {
  font-size: clamp(28px,4vw,46px);
  line-height: 1.08;
  margin: 12px 0;
}

.newsletter-content p {
  color: var(--muted);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  min-width: 380px;
}

.newsletter-form input {
  flex: 1;

  border: 1px solid var(--border);
  background: var(--surface-soft);

  color: var(--text);

  border-radius: 999px;
  padding: 0 20px;

  outline: none;
}

@media(max-width: 900px){

  .newsletter-card{
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-form{
    width:100%;
    min-width:0;
  }

}

@media(max-width:560px){

  .newsletter-form{
    flex-direction: column;
  }

  .newsletter-form input{
    height:54px;
  }

}
.trending-section {
  background: var(--bg);
}

.trending-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.trending-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  transition: .25s ease;
}

.trending-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.trending-card.big {
  grid-row: span 2;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.20), transparent 36%),
    var(--surface);
}

.trending-number {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.trending-card small {
  color: var(--primary);
  font-weight: 900;
}

.trending-card h3 {
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.28;
}

.trending-card.big h3 {
  font-size: 32px;
  line-height: 1.15;
}

.trending-card p {
  color: var(--muted);
  margin-top: 12px;
}

@media(max-width: 980px) {
  .trending-grid {
    grid-template-columns: 1fr;
  }

  .trending-card.big {
    min-height: auto;
  }
}
.breaking-marquee {
  transition: .35s ease;
}

.breaking-inner strong {
  position: relative;
  overflow: hidden;
}

.breaking-inner strong::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.35),
    transparent
  );
  transform: translateX(-100%);
  animation: breakingShine 2.4s infinite;
}

@keyframes breakingShine {
  to {
    transform: translateX(100%);
  }
}
.related-articles {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  transition: .25s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.related-card .thumb {
  height: 130px;
  margin-bottom: 14px;
}

.related-card span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.related-card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 8px 0;
}

.related-card small {
  color: var(--muted);
}

@media(max-width: 900px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
/* ===========================
   Author Box
=========================== */

.author-box {

  margin-top: 40px;

  background:
  radial-gradient(
    circle at top right,
    rgba(59,130,246,.12),
    transparent 35%
  ),
  var(--surface);

  border: 1px solid var(--border);
  border-radius: 30px;

  padding: 28px;

  display: flex;
  gap: 24px;

  box-shadow: var(--shadow);
}

.author-avatar {
  width: 120px;
  height: 120px;
  flex-shrink: 0;

  border-radius: 28px;
  overflow: hidden;

  background: #fff;
  border: 1px solid var(--border);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.author-label {
  display: inline-flex;

  padding: 7px 14px;

  border-radius: 999px;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 12px;
  font-weight: 900;
}

.author-content h3 {
  font-size: 28px;
  margin: 12px 0;
}

.author-content p {
  color: var(--muted);
  line-height: 1.7;
}

.author-stats {
  display: flex;
  gap: 24px;
  margin-top: 18px;
}

.author-stats strong {
  display: block;
  font-size: 24px;
}

.author-stats span {
  color: var(--muted);
  font-size: 14px;
}

.author-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

@media(max-width:768px){

  .author-box{
    flex-direction: column;
  }

  .author-stats{
    flex-wrap: wrap;
  }

}
/* ===========================
   Author Profile Page
=========================== */

.author-hero{
  padding:70px 0;
}

.author-profile{

  background:
  radial-gradient(
    circle at top right,
    rgba(59,130,246,.15),
    transparent 35%
  ),
  var(--surface);

  border:1px solid var(--border);
  border-radius:32px;

  padding:40px;

  display:flex;
  gap:30px;

  box-shadow:var(--shadow);
}

.author-profile-avatar{
  width:180px;
  height:180px;

  border-radius:32px;
  overflow:hidden;

  background:#fff;

  flex-shrink:0;
}

.author-profile-avatar img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.author-badge{
  display:inline-flex;

  padding:8px 16px;

  border-radius:999px;

  background:var(--primary-soft);
  color:var(--primary);

  font-weight:900;
  font-size:12px;
}

.author-profile-content h1{
  font-size:48px;
  margin:16px 0;
}

.author-profile-content p{
  color:var(--muted);
  max-width:750px;
  line-height:1.8;
}

.author-profile-stats{
  display:flex;
  gap:30px;
  margin-top:24px;
}

.author-profile-stats strong{
  display:block;
  font-size:30px;
}

.author-profile-stats span{
  color:var(--muted);
}

.author-article-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.author-article-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  overflow:hidden;

  transition:.25s ease;
  box-shadow:var(--shadow);
}

.author-article-card:hover{
  transform:translateY(-5px);
  border-color:var(--primary);
}

.author-article-card .thumb{
  height:180px;
}

.author-article-card span{
  display:block;
  padding:18px 20px 0;
  color:var(--primary);
  font-size:12px;
  font-weight:900;
}

.author-article-card h3{
  padding:8px 20px;
  font-size:20px;
  line-height:1.35;
}

.author-article-card small{
  display:block;
  padding:0 20px 20px;
  color:var(--muted);
}

@media(max-width:900px){

  .author-profile{
    flex-direction:column;
  }

  .author-article-grid{
    grid-template-columns:1fr;
  }

}

@media(max-width:560px){

  .author-profile-content h1{
    font-size:36px;
  }

}
/* ===========================
   404 PAGE
=========================== */

.error-page{
  min-height:100vh;

  display:flex;
  justify-content:center;
  align-items:center;

  padding:24px;

  background:
  radial-gradient(
    circle at top right,
    rgba(59,130,246,.12),
    transparent 35%
  ),
  var(--bg);
}

.error-card{

  width:min(760px,100%);

  background:var(--surface);

  border:1px solid var(--border);
  border-radius:36px;

  padding:50px;

  text-align:center;

  box-shadow:var(--shadow);
}

.error-logo{
  width:120px;
  height:120px;

  margin:auto;
  margin-bottom:24px;
}

.error-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.error-badge{

  display:inline-flex;

  padding:8px 18px;

  border-radius:999px;

  background:var(--primary-soft);
  color:var(--primary);

  font-weight:900;
  font-size:13px;
}

.error-card h1{
  font-size:56px;
  margin:20px 0;
  line-height:1;
}

.error-card p{
  color:var(--muted);
  max-width:600px;
  margin:auto;
  line-height:1.8;
}

.error-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;

  margin-top:30px;
}

.error-links{
  margin-top:30px;

  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}

.error-links a{
  color:var(--muted);
  font-weight:700;
}

.error-links a:hover{
  color:var(--primary);
}

@media(max-width:768px){

  .error-card{
    padding:30px;
  }

  .error-card h1{
    font-size:40px;
  }

}
.premium-share {
  position: sticky;
  top: 96px;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px;
  box-shadow: var(--shadow);
}

@media(max-width: 760px) {
  .premium-share {
    position: static;
    border-radius: 22px;
  }
}
.media-kit-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.media-kit-stats div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.media-kit-stats svg {
  color: var(--primary);
  margin-bottom: 12px;
}

.media-kit-stats strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.media-kit-stats span {
  color: var(--muted);
  font-weight: 700;
}

@media(max-width:900px) {
  .media-kit-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:560px) {
  .media-kit-stats {
    grid-template-columns: 1fr;
  }
}
.submit-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.submit-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.submit-article-form {
  display: grid;
  gap: 16px;
}

.submit-article-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.submit-article-form input,
.submit-article-form select,
.submit-article-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 16px;
  padding: 14px;
  outline: none;
  font-family: inherit;
}

.submit-article-form textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-article-form .article-textarea {
  min-height: 320px;
}

@media(max-width: 980px) {
  .submit-layout {
    grid-template-columns: 1fr;
  }

  .submit-sidebar {
    position: static;
  }
}
.career-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.career-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.career-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.career-card svg {
  color: var(--primary);
  margin-bottom: 14px;
}

.career-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.career-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

@media(max-width: 980px) {
  .career-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 560px) {
  .career-grid {
    grid-template-columns: 1fr;
  }
}
/* ===========================
   Footer Premium
=========================== */

.footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0;
}

.footer-logo {
  width: 60px;
  margin-bottom: 14px;
}

.footer-brand h3 {
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 400px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  transition: .2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

@media(max-width: 900px){

  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }

}

@media(max-width: 560px){

  .footer-grid{
    grid-template-columns: 1fr;
  }

}
.timeline {
  max-width: 900px;
  margin: auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: 9px;
  top: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--surface);
}

.timeline-dot.future {
  background: #22c55e;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.timeline-card span {
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
}

.timeline-card h3 {
  margin: 8px 0 10px;
}

.timeline-card p {
  color: var(--muted);
  line-height: 1.7;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.partner-card svg {
  color: var(--primary);
  margin-bottom: 14px;
}

.partner-card h3 {
  margin-bottom: 10px;
}

.partner-card p {
  color: var(--muted);
}

@media(max-width: 980px) {
  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 560px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}
.fact-status-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.fact-status-item:last-child {
  border-bottom: none;
}

.fact-status-item p {
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.status-dot.review {
  background: #f59e0b;
}

.status-dot.true {
  background: #22c55e;
}

.status-dot.false {
  background: #ef4444;
}
.announcement-list {
  display: grid;
  gap: 18px;
}

.announcement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
}

.announcement-card.pinned {
  border-color: var(--primary);
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.14), transparent 35%),
    var(--surface);
}

.announcement-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.announcement-card span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.announcement-card h3 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.announcement-card p {
  color: var(--muted);
}

.announcement-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

@media(max-width:560px) {
  .announcement-card {
    grid-template-columns: 1fr;
  }
}
.upload-cover-box{
  display:block;
  cursor:pointer;
}

#coverPreviewArea{

  min-height:220px;

  border:2px dashed var(--border);

  border-radius:24px;

  display:flex;
  flex-direction:column;

  justify-content:center;
  align-items:center;

  gap:12px;

  overflow:hidden;

  background:var(--surface-soft);

  transition:.3s;
}

#coverPreviewArea:hover{
  border-color:var(--primary);
}

#coverPreviewArea img{

  width:100%;
  height:auto;

  display:block;

}
#coverPreviewArea {
  position: relative;
  height: 240px !important;
  min-height: 240px !important;
  max-height: 240px !important;
  border-radius: 22px;
}

#coverPreviewArea img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.remove-cover-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  z-index: 5;
}

.remove-cover-btn:hover {
  background: #dc2626;
}
/* =========================
   OVERRIDE COVER PREVIEW
========================= */

#coverPreviewArea{
  position:relative;

  min-height:220px !important;
  max-height:350px !important;
  height:auto !important;

  padding:20px !important;

  display:flex !important;
  justify-content:center !important;
  align-items:center !important;

  overflow:hidden !important;

  border:2px dashed var(--border) !important;
  border-radius:24px !important;

  background:var(--surface-soft) !important;
}

#coverPreviewArea img{
  width:auto !important;
  height:auto !important;

  max-width:100% !important;
  max-height:300px !important;

  object-fit:contain !important;

  border-radius:16px !important;

  display:block !important;
}

.remove-cover-btn{
  position:absolute !important;
  top:12px !important;
  right:12px !important;

  z-index:99 !important;
}

#coverPreviewArea{

  min-height:260px;

  border:2px dashed var(--border);

  border-radius:24px;

  background:var(--surface-soft);

  padding:24px;
}

.empty-cover{
  text-align:center;
}

.empty-cover svg{
  width:48px;
  height:48px;
  color:var(--primary);
}

.cover-preview-card{
  display:grid;
  gap:18px;
}

.cover-preview-card img{
  max-width:260px;
  max-height:180px;

  width:auto;
  height:auto;

  border-radius:16px;

  border:1px solid var(--border);
}

.cover-meta{
  display:grid;
  gap:8px;
}

.cover-actions{
  display:flex;
  gap:10px;
}

.cover-actions button{
  border:none;
  cursor:pointer;
}
#submissionCover{
  width:100%;
}

#submissionCoverPreview{
  margin-top:12px;
}

#submissionCoverPreview img{
  max-width:220px;
  max-height:160px;

  width:auto;
  height:auto;

  border-radius:14px;
  border:1px solid var(--border);

  display:block;
}

.input-helper{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
}
#articleCover{
  width:100%;
}

#coverPreviewArea{
  margin-top:12px !important;
  min-height:0 !important;
  max-height:none !important;
  height:auto !important;
  padding:0 !important;
  border:none !important;
  background:transparent !important;
  display:block !important;
}

#coverPreviewArea img{
  max-width:220px !important;
  max-height:160px !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  border-radius:14px !important;
  border:1px solid var(--border) !important;
  display:block !important;
}
.cover-preview-simple{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-start;
}

.cover-delete-btn{
  padding:8px 14px;
}

.cover-preview-simple img{
  max-width:220px;
  max-height:160px;
  width:auto;
  height:auto;

  border-radius:14px;
  border:1px solid var(--border);
}
.loading-news,
.empty-state{
  padding:40px;
  text-align:center;
  color:var(--muted);
}

.news-card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}

.news-card-content{
  padding:18px;
}

.news-category{
  display:inline-block;
  margin-bottom:10px;
  color:var(--primary);
  font-size:12px;
  font-weight:800;
}

.news-card h3{
  margin-bottom:10px;
}

.news-card p{
  color:var(--muted);
}
.premium-news-layout {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 22px;
}

.premium-headline,
.premium-side-card,
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.premium-headline img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.premium-headline-content {
  padding: 24px;
}

.premium-headline h2 {
  font-size: 34px;
  line-height: 1.15;
  margin: 10px 0;
}

.premium-headline p,
.news-card p {
  color: var(--muted);
}

.premium-side-news {
  display: grid;
  gap: 16px;
}

.premium-side-card {
  padding: 16px;
}

.premium-side-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 12px;
}

.news-filter-bar {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
  margin-bottom: 22px;
}

.news-filter-bar select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 800;
  outline: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-card-content {
  padding: 18px;
}

.news-category {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.news-card h3 {
  margin: 8px 0;
  font-size: 21px;
  line-height: 1.3;
}

.loading-news,
.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

@media(max-width: 980px) {
  .premium-news-layout,
  .news-filter-bar,
  .news-grid {
    grid-template-columns: 1fr;
  }
}
.detail-cover-box {
  margin-bottom: 20px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.detail-cover-box img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  background: var(--surface-soft);
}

.article-text-content p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.8;
}

.article-text-content h2,
.article-text-content h3 {
  margin: 28px 0 14px;
}

.latest-sidebar-item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.latest-sidebar-item:last-child {
  border-bottom: none;
}

.latest-sidebar-item span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.latest-sidebar-item strong {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}
.related-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--surface-soft);
  border-radius: 16px;
  margin-bottom: 12px;
}
.submission-cover-small{
  width:90px;
  height:64px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--border);
}

.submission-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
/* ===========================
   HOME REBUILD
=========================== */

.home-hero {
  padding: 56px 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(59,130,246,.16), transparent 32%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}

.home-hero-content h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  margin: 14px 0;
}

.home-hero-content p {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.home-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.home-hero-card-content {
  padding: 22px;
}

.home-hero-card-content h3 {
  font-size: 26px;
  line-height: 1.2;
  margin: 8px 0;
}

.home-hero-card-content p {
  color: var(--muted);
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.home-category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.home-category-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.home-category-card svg {
  color: var(--primary);
  margin-bottom: 14px;
}

.home-category-card strong {
  display: block;
  font-size: 18px;
}

.home-category-card span {
  color: var(--muted);
  font-size: 13px;
}

.home-community-card {
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.16), transparent 34%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.home-community-card h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  margin: 12px 0;
  max-width: 820px;
}

.home-community-card p {
  color: var(--muted);
  max-width: 720px;
}

@media(max-width: 1050px) {
  .home-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 760px) {
  .home-category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-community-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media(max-width: 520px) {
  .home-category-grid {
    grid-template-columns: 1fr;
  }
}
.category-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  transition: .25s ease;
}

.category-page-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.category-page-card svg {
  width: 38px;
  height: 38px;
  color: var(--primary);
  flex-shrink: 0;
}

.category-page-card h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

.category-page-card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.category-page-card span {
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
}

@media(max-width: 980px) {
  .category-page-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 560px) {
  .category-page-grid {
    grid-template-columns: 1fr;
  }
}
/* ===========================
   FORUM REBUILD
=========================== */

.forum-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.forum-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.forum-left {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.muted-text {
  color: var(--muted);
}

.forum-filter {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 13px 12px;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-align: left;
}

.forum-filter.active,
.forum-filter:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.forum-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 18px;
}

.forum-toolbar select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 800;
  outline: none;
}

.forum-topic-list {
  display: grid;
  gap: 16px;
}

.forum-topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  transition: .25s ease;
}

.forum-topic-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.topic-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.topic-meta span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.topic-meta small {
  color: var(--muted);
}

.forum-topic-card h3 {
  font-size: 23px;
  line-height: 1.25;
  margin: 8px 0;
}

.forum-topic-card p {
  color: var(--muted);
}

.topic-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.topic-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topic-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 1500;
}

.topic-modal.show {
  display: grid;
}

.topic-modal-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.topic-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.topic-form input,
.topic-form select,
.topic-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 16px;
  padding: 14px;
  outline: none;
  font-family: inherit;
}

.topic-form textarea {
  min-height: 150px;
  resize: vertical;
}

@media(max-width: 980px) {
  .forum-page-layout,
  .forum-toolbar {
    grid-template-columns: 1fr;
  }

  .forum-left {
    position: static;
  }
}

@media(max-width: 560px) {
  .forum-topic-card {
    grid-template-columns: 1fr;
  }
}
.forum-detail-layout{
  display:grid;
  grid-template-columns:1fr 330px;
  gap:24px;
  align-items:start;
}

.forum-detail-card,
.reply-section{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:26px;
  padding:24px;
  box-shadow:var(--shadow);
}

.forum-detail-author{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
}

.forum-detail-author span{
  display:block;
  color:var(--muted);
  font-size:14px;
}

.forum-detail-content p{
  font-size:18px;
  line-height:1.8;
  color:var(--text);
  margin-bottom:16px;
}

.reply-section{
  margin-top:22px;
}

.reply-form{
  display:grid;
  gap:12px;
  margin-bottom:22px;
}

.reply-form textarea{
  width:100%;
  min-height:130px;
  border:1px solid var(--border);
  background:var(--surface-soft);
  color:var(--text);
  border-radius:18px;
  padding:16px;
  resize:vertical;
  outline:none;
  font-family:inherit;
}

.reply-list{
  display:grid;
  gap:14px;
}

.reply-item{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:12px;
  background:var(--surface-soft);
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
}

.reply-item p{
  color:var(--muted);
  margin-top:6px;
  line-height:1.6;
}

.latest-topic-item{
  display:block;
  padding:14px 0;
  border-bottom:1px solid var(--border);
}

.latest-topic-item:last-child{
  border-bottom:none;
}

.latest-topic-item span{
  color:var(--primary);
  font-size:12px;
  font-weight:900;
}

.latest-topic-item strong{
  display:block;
  margin-top:4px;
  line-height:1.35;
}

@media(max-width:980px){
  .forum-detail-layout{
    grid-template-columns:1fr;
  }
}
.admin-stats {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
  .admin-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
}
.upload-avatar{
  position:relative;
  cursor:pointer;
}

.upload-avatar span{
  position:absolute;
  inset:auto 8px 8px 8px;
  background:rgba(15,23,42,.75);
  color:#fff;
  font-size:11px;
  font-weight:800;
  text-align:center;
  padding:6px;
  border-radius:999px;
}
.upload-avatar {
  position: relative;
  cursor: pointer;
}

.upload-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-avatar span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 6px;
  border-radius: 999px;
}
.comment-avatar img,
.topic-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.read-more-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:16px;
  font-weight:700;
  color:#2563eb;
  text-decoration:none;
}

.read-more-btn:hover{
  opacity:.8;
}

.news-cover{
  width:100%;
  height:240px;
  object-fit:cover;
}
