/* ==========================================================================
   AMENTOUJOURN — Modern Tailwind Scientific Journal Design System
   Complete, Self-Contained, Premium Academic Publishing Platform
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --tj-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --tj-mono: 'JetBrains Mono', monospace;

  /* Colors */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;

  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-600: #059669;
  --emerald-700: #047857;

  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-600: #d97706;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   GLOBAL RESETS
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

body, html {
  font-family: var(--tj-font) !important;
  background-color: var(--slate-50) !important;
  color: var(--slate-800);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

.tj-article-body,
.sj-richtext,
.sj-description {
  word-break: break-word;
  overflow-wrap: break-word;
}

.tj-article-body img,
.tj-modern-card img,
.sj-description img,
.sj-richtext img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-lg);
  margin: 1.25rem 0;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tj-font) !important;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-800);
}

/* Clear stray pseudo-elements */
.tj-header ul, .tj-header ol, .tj-header li,
.tj-navbar ul, .tj-navbar ol, .tj-navbar li,
.tj-topbar ul, .tj-topbar ol, .tj-topbar li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

.tj-header ul li::before, .tj-header ul li::after,
.tj-navbar ul li::before, .tj-navbar ul li::after,
.tj-topbar ul li::before, .tj-topbar ul li::after,
.tj-dropdown-menu li::before, .tj-dropdown-menu li::after {
  display: none !important;
  content: none !important;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */

.tj-topbar {
  background: #090e17;
  color: #94a3b8;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0;
}

.tj-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tj-topbar-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tj-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
}

.tj-meta-chip strong {
  color: #f1f5f9;
  font-weight: 600;
}

.tj-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tj-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tj-topbar-user a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s;
}

.tj-topbar-user a:hover {
  color: #ffffff;
}

/* User Profile Dropdown */
.tj-user-dropdown {
  position: relative;
  display: inline-block;
}

.tj-avatar-img,
#avatarPreviewImg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
}

.tj-user-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s;
}

.tj-user-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.tj-user-dropdown:hover .tj-user-menu,
.tj-user-dropdown:focus-within .tj-user-menu,
.tj-user-dropdown.show .tj-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.tj-user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 255px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  margin-top: 6px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  transition-delay: 0.15s; /* Kechiktirish: sichqoncha sal chetga chiqsa ham darhol yo'qolib ketmaydi */
}

/* Sichqoncha tugmadan menyuga o'tayotganda uzilish bo'lmasligi uchun ko'rinmas ko'prik */
.tj-user-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
  display: block;
}

.tj-user-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--slate-700);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.tj-user-menu .dropdown-item:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.tj-user-menu .dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 6px 0;
  border: none;
}

/* ==========================================================================
   MAIN NAVBAR & MODERN DROPDOWNS
   ========================================================================== */

.tj-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 0.75rem 0;
}

.tj-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tj-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.tj-brand-logo {
  height: 44px;
  width: auto;
  max-height: 44px;
  object-fit: contain;
}

/* Navigation Menu */
.tj-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.tj-nav-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.tj-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none !important;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.tj-nav-link:hover,
.tj-nav-link.active,
.tj-nav-item:hover > .tj-nav-link {
  color: var(--primary-600);
  background: var(--primary-50);
}

.tj-nav-link i.fa-chevron-down {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tj-nav-item:hover > .tj-nav-link i.fa-chevron-down {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown Flyout Menus */
.tj-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  padding: 0.5rem;
  margin-top: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s;
  z-index: 1050;
}

.tj-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
  display: block;
}

.tj-nav-item:hover > .tj-dropdown-menu,
.tj-nav-item:focus-within > .tj-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.tj-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--slate-700);
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.tj-dropdown-item:hover {
  background: var(--slate-50);
  color: var(--primary-600);
}

.tj-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.tj-dropdown-content {
  display: flex;
  flex-direction: column;
}

.tj-dropdown-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.3;
}

.tj-dropdown-item:hover .tj-dropdown-title {
  color: var(--primary-600);
}

.tj-dropdown-desc {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 2px;
  line-height: 1.3;
}

.tj-dropdown-divider {
  height: 1px;
  background: var(--slate-100);
  margin: 0.4rem 0;
}

/* Submit Manuscript Action Button */
.tj-submit-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tj-submit-cta:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO & SEARCH
   ========================================================================== */

.tj-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--slate-200);
  padding: 3.5rem 0 3rem 0;
}

.tj-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tj-hero-title {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.tj-hero-desc {
  font-size: 1.075rem;
  color: var(--slate-600);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.tj-search-box {
  background: #ffffff;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-xl);
  padding: 0.35rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tj-search-box:focus-within {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px var(--primary-100), var(--shadow-lg);
}

.tj-search-input {
  flex: 1;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  outline: none;
  font-family: var(--tj-font);
  color: var(--slate-800);
}

.tj-search-btn {
  background: var(--primary-600);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s;
}

.tj-search-btn:hover {
  background: var(--primary-700);
}

.tj-hero-quicktags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.tj-tag-pill {
  background: #ffffff;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s;
}

.tj-tag-pill:hover {
  border-color: var(--primary-500);
  color: var(--primary-600);
  background: var(--primary-50);
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */

.tj-section {
  padding: 3.5rem 0;
}

.tj-section-alt {
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.tj-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.tj-section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0;
  letter-spacing: -0.02em;
}

.tj-section-sub {
  font-size: 0.95rem;
  color: var(--slate-500);
  margin-top: 0.35rem;
}

.tj-view-all {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tj-view-all:hover {
  color: var(--primary-800);
  text-decoration: underline;
}

/* Article Card */
.tj-modern-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tj-modern-card:hover {
  border-color: var(--slate-300);
}

.tj-article-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.2s ease;
}

.tj-article-card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.tj-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.tj-pill-category {
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
}

.tj-pill-oa {
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tj-pill-pick {
  background: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid var(--amber-100);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.tj-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--slate-900);
  margin-bottom: 0.65rem;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.tj-card-title:hover {
  color: var(--primary-600);
}

.tj-card-authors {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tj-card-abstract {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tj-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.775rem;
  color: var(--slate-500);
}

.tj-card-doi {
  font-family: var(--tj-mono);
  color: var(--cyan-700);
  text-decoration: none;
  font-weight: 500;
}

.tj-card-metrics {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Category Card */
.tj-category-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.tj-category-card:hover {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tj-category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tj-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
}

.tj-category-count {
  font-size: 0.8125rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ==========================================================================
   READER VIEW & MODALS
   ========================================================================== */

.tj-reader-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  padding: 2.5rem 0 2rem 0;
}

.tj-reader-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tj-reader-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.tj-authors-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 1.5rem;
}

.tj-author-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--slate-800);
  font-weight: 600;
}

.tj-orcid-link {
  color: #a6ce39;
  text-decoration: none;
  font-size: 0.85rem;
}

.tj-author-affil {
  font-size: 0.8125rem;
  color: var(--slate-500);
  font-weight: 400;
}

.tj-reader-actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--slate-50);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}

.tj-btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dc2626;
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.25);
  transition: all 0.15s;
}

.tj-btn-pdf:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.tj-btn-cite {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--slate-800);
  border: 1.5px solid var(--slate-300);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}

.tj-btn-cite:hover {
  border-color: var(--primary-600);
  color: var(--primary-600);
  background: var(--primary-50);
}

.tj-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--slate-800);
}

.tj-article-body h2, .tj-article-body h3 {
  color: var(--slate-900);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.tj-abstract-box {
  background: var(--primary-50);
  border-left: 4px solid var(--primary-600);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: 2rem;
}

.tj-abstract-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-800);
  margin-bottom: 0.65rem;
}

.tj-toc-sticky {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.tj-toc-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  margin-bottom: 0.85rem;
}

.tj-toc-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tj-toc-links li {
  margin-bottom: 0.5rem;
}

.tj-toc-links a {
  display: block;
  font-size: 0.875rem;
  color: var(--slate-600);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.tj-toc-links a:hover {
  background: var(--slate-100);
  color: var(--primary-600);
}

/* ==========================================================================
   CITATION MODAL
   ========================================================================== */

.tj-citation-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1.25rem;
}

.tj-citation-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tj-citation-tab.active {
  color: var(--primary-600);
  border-bottom-color: var(--primary-600);
}

.tj-citation-code {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--tj-mono);
  font-size: 0.8125rem;
  color: var(--slate-800);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 220px;
  overflow-y: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.tj-footer {
  background: #090e17;
  color: var(--slate-300);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 2rem 0;
  font-size: 0.875rem;
}

.tj-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s;
}

.tj-footer a:hover {
  color: #ffffff;
}

.tj-footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.tj-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tj-footer-links li {
  margin-bottom: 0.65rem;
}

.tj-footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--slate-400);
}

@media (max-width: 991px) {
  .tj-nav-menu {
    display: none;
  }
}

/* ==========================================================================
   Modern Scientific Tailwind Pagination
   ========================================================================== */
.sj-pagination-container,
.sj-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 2.5rem 0 1.5rem !important;
  width: 100% !important;
  clear: both !important;
}

.sj-pagination-list,
.sj-pagination ul {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.375rem !important;
  background: #ffffff !important;
  padding: 0.375rem 0.5rem !important;
  border-radius: 0.75rem !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  list-style: none !important;
  margin: 0 !important;
}

.sj-page-item,
.sj-pagination ul li {
  list-style: none !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sj-page-link,
.sj-page-btn,
.sj-pagination ul li a,
.sj-pagination ul li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 2.375rem !important;
  height: 2.375rem !important;
  padding: 0 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  font-family: var(--tj-font, system-ui, sans-serif) !important;
  color: #334155 !important;
  background: transparent !important;
  border-radius: 0.5rem !important;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out !important;
  user-select: none !important;
  border: none !important;
  gap: 0.375rem !important;
}

.sj-page-link:hover,
.sj-page-btn:hover:not(.sj-page-disabled *),
.sj-pagination ul li:not(.sj-active):not(.sj-activepagination):not(.sj-disabled) a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Active Page */
.sj-page-active .sj-page-link,
.sj-pagination ul li.sj-active a,
.sj-pagination ul li.sj-activepagination a,
.sj-pagination ul li.active a {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

/* Prev / Next Buttons */
.sj-page-prev,
.sj-page-next,
.sj-pagination ul li.sj-prevpage a,
.sj-pagination ul li.sj-nextpage a {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  padding: 0 0.875rem !important;
}

.sj-page-prev:hover,
.sj-page-next:hover,
.sj-pagination ul li.sj-prevpage a:hover,
.sj-pagination ul li.sj-nextpage a:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* Disabled Prev / Next / Dots */
.sj-page-disabled .sj-page-btn,
.sj-pagination ul li.sj-disabled span {
  color: #94a3b8 !important;
  background: transparent !important;
  border: 1px solid #f1f5f9 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.sj-page-dots .sj-page-dots-text,
.sj-pagination ul li.sj-dots span {
  color: #94a3b8 !important;
  font-weight: 700 !important;
  min-width: 1.5rem !important;
  cursor: default !important;
  background: transparent !important;
  border: none !important;
}

