:root {
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Vazirmatn, system-ui, sans-serif;
  --bg-deep: #0B0F19;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-subtle: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-hover: rgba(129, 140, 248, 0.45);
  --primary: #4F46E5;
  --primary-bright: #6366F1;
  --primary-light: rgba(99, 102, 241, 0.16);
  --emerald: #10B981;
  --emerald-light: rgba(16, 185, 129, 0.16);
  --emerald-border: rgba(16, 185, 129, 0.32);
  --amber: #F59E0B;
  --amber-light: rgba(245, 158, 11, 0.16);
  --amber-border: rgba(245, 158, 11, 0.35);
  --violet: #8B5CF6;
  --violet-light: rgba(139, 92, 246, 0.16);
  --violet-border: rgba(139, 92, 246, 0.35);
  --rose: #F43F5E;
  --rose-light: rgba(244, 63, 94, 0.16);
  --cyan: #0EA5E9;
  --border: rgba(255, 255, 255, 0.12);
  --text-main: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dark: #64748B;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  --shadow-liquid: 0 8px 32px 0 rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 0 28px -2px rgba(99, 102, 241, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  direction: rtl;
  background-color: var(--bg-deep);
  color: var(--text-body);
  min-height: 100vh;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(at 15% 15%, #1e1b4b 0px, transparent 55%),
    radial-gradient(at 85% 10%, #0c4a6e 0px, transparent 50%),
    radial-gradient(at 50% 50%, #312e81 0px, transparent 65%),
    radial-gradient(at 90% 85%, #0f172a 0px, transparent 55%),
    radial-gradient(at 10% 90%, #1e1b4b 0px, transparent 55%);
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.icon, svg.icon {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  overflow: visible;
  stroke: currentColor;
  fill: none;
}

.icon-sm {
  width: 0.875rem;
  height: 0.875rem;
  min-width: 0.875rem;
  min-height: 0.875rem;
}

.icon-lg {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
}

.icon[style*="width"], svg.icon[style*="width"] {
  min-width: unset;
}

.icon[style*="height"], svg.icon[style*="height"] {
  min-height: unset;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-glass);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 15, 25, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(99, 102, 241, 0.25);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.navbar-brand .brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: var(--transition);
}

.navbar-brand:hover .brand-icon {
  transform: scale(1.05) rotate(-2deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #FFFFFF;
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-weight: 600;
}

.btn-nav-login {
  background: linear-gradient(135deg, var(--primary), #4338CA) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
  margin-right: 8px;
}

.btn-nav-login:hover {
  background: linear-gradient(135deg, #6366F1, var(--primary)) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 74px;
  right: 0;
  left: 0;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: var(--primary-light);
  color: var(--text-main);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-messages {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 0 24px;
}

.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-liquid);
  margin-bottom: 12px;
}

.flash-success {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid var(--emerald-border);
  color: #34D399;
}

.flash-error {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #FB7185;
}

.flash-info {
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #A5B4FC;
}

.flash-close {
  margin-right: auto;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: var(--transition);
}

.flash-close:hover {
  opacity: 1;
}

.hero {
  padding: 88px 0 72px;
  text-align: center;
  position: relative;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

.float-anim {
  animation: gentleFloat 4s ease-in-out infinite;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #A5B4FC;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.shimmer-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #A5B4FC 45%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero p {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto 38px;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4338CA);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6366F1, var(--primary));
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--emerald-light);
  color: #34D399;
  border: 1px solid var(--emerald-border);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
}

.btn-gold {
  background: var(--amber-light);
  color: #FBBF24;
  border: 1px solid var(--amber-border);
}

.btn-gold:hover {
  background: rgba(245, 158, 11, 0.24);
  transform: translateY(-2px);
}

.section {
  padding: 68px 0;
  position: relative;
}

.section-header {
  margin-bottom: 42px;
}

.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 20%, #A5B4FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-liquid);
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-liquid), var(--shadow-glow);
  transform: translateY(-3px);
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-liquid);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-liquid), var(--shadow-glow);
  transform: translateY(-4px) scale(1.02);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transition);
}

.stat-icon.purple {
  background: var(--primary-light);
  color: #A5B4FC;
}

.stat-icon.green {
  background: var(--emerald-light);
  color: #34D399;
}

.stat-icon.orange {
  background: rgba(249, 115, 22, 0.16);
  color: #FB923C;
}

.stat-icon.gold {
  background: var(--amber-light);
  color: #FBBF24;
}

.progress-ring {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 14px;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.progress-ring .fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring .fill.purple {
  stroke: url(#gradPurple);
}

.progress-ring .fill.green {
  stroke: url(#gradGreen);
}

.progress-ring .fill.orange {
  stroke: url(#gradOrange);
}

.progress-ring .fill.gold {
  stroke: url(#gradGold);
}

.progress-ring .ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  direction: ltr;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-source {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.quick-link-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 36px 26px;
  text-align: center;
  box-shadow: var(--shadow-liquid);
  transition: var(--transition);
  display: block;
}

.quick-link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-liquid), var(--shadow-glow);
  transform: translateY(-5px);
}

.quick-link-card .ql-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.quick-link-card:hover .ql-icon {
  transform: scale(1.1) rotate(-4deg);
}

.quick-link-card.gold-card .ql-icon {
  background: var(--amber-light);
  color: #FBBF24;
  border: 1px solid var(--amber-border);
}

.quick-link-card.purple-card .ql-icon {
  background: var(--primary-light);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.quick-link-card.green-card .ql-icon {
  background: var(--emerald-light);
  color: #34D399;
  border: 1px solid var(--emerald-border);
}

.quick-link-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.quick-link-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-header {
  padding: 56px 0 40px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto;
}

.page-header .header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-light);
  border: 1px solid var(--amber-border);
  color: #FBBF24;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  justify-content: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--border-glass-hover);
  color: var(--text-main);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.tag.active {
  background: linear-gradient(135deg, var(--primary), #4338CA);
  border-color: rgba(129, 140, 248, 0.5);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-gold {
  background: var(--amber-light);
  color: #FBBF24;
  border: 1px solid var(--amber-border);
}

.badge-silver {
  background: rgba(203, 213, 225, 0.14);
  color: #CBD5E1;
  border: 1px solid rgba(203, 213, 225, 0.28);
}

.badge-bronze {
  background: rgba(217, 119, 6, 0.16);
  color: #F59E0B;
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.badge-purple {
  background: var(--primary-light);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.badge-green {
  background: var(--emerald-light);
  color: #34D399;
  border: 1px solid var(--emerald-border);
}

.badge-red {
  background: var(--rose-light);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.honor-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-liquid);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.honor-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-liquid), var(--shadow-glow);
  transform: translateY(-3px);
}

.honor-card .rank-badge {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.honor-card .category {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.honor-card .names {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.6;
  flex-grow: 1;
}

.honor-card.rank-1 {
  border-top: 3px solid #F59E0B;
}

.honor-card.rank-2 {
  border-top: 3px solid #94A3B8;
}

.honor-card.rank-3 {
  border-top: 3px solid #D97706;
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 34px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: #A5B4FC;
  border-bottom-color: var(--primary-bright);
  font-weight: 700;
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.student-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-liquid);
  transition: var(--transition);
  margin-bottom: 12px;
}

.student-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: translateX(-4px);
  box-shadow: var(--shadow-liquid), 0 0 20px rgba(99, 102, 241, 0.2);
}

.student-rank {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.rank-1st {
  background: var(--amber-light);
  color: #FBBF24;
  border: 1px solid var(--amber-border);
}

.rank-2nd {
  background: rgba(203, 213, 225, 0.14);
  color: #CBD5E1;
  border: 1px solid rgba(203, 213, 225, 0.28);
}

.rank-3rd {
  background: rgba(217, 119, 6, 0.16);
  color: #F59E0B;
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.rank-other {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.98rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.student-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.honor-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.honor-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.honor-avatar-wrap:hover {
  transform: scale(1.15);
  border-color: var(--amber);
  z-index: 2;
}

.honor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.student-info {
  flex: 1;
}

.student-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.student-grade {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.student-gpa {
  font-size: 1.2rem;
  font-weight: 900;
  color: #34D399;
  margin-right: auto;
  font-feature-settings: "tnum";
}

.forum-question {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-liquid);
  transition: var(--transition);
  margin-bottom: 16px;
}

.forum-question:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-liquid), var(--shadow-glow);
}

.forum-question .q-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  transition: var(--transition);
}

.forum-question .q-title:hover {
  color: #A5B4FC;
}

.forum-question .q-excerpt {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 14px;
}

.forum-question .q-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.forum-question .q-meta > span,
.forum-question .q-meta > div,
.card-meta,
.news-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reputation {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--amber-light);
  color: #FBBF24;
  border: 1px solid var(--amber-border);
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.vote-btn:hover {
  background: var(--primary-light);
  border-color: rgba(99, 102, 241, 0.4);
  color: #A5B4FC;
  transform: translateY(-2px);
}

.vote-btn.voted {
  background: linear-gradient(135deg, var(--primary), #4338CA);
  border-color: var(--primary-bright);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.4);
}

.vote-btn .count {
  font-weight: 800;
  font-feature-settings: "tnum";
}

.answer-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #111827;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 34px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.95) translateY(10px);
  transition: var(--transition);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
}

.form-input, .form-textarea, select.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
  direction: rtl;
}

select.form-input option {
  background: #111827;
  color: #F8FAFC;
}

.form-input:focus, .form-textarea:focus, select.form-input:focus {
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-dark);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.login-page {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 46px 38px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-liquid), 0 0 30px rgba(99, 102, 241, 0.15);
  position: relative;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo .logo-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.login-logo h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.login-logo p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.chat-container {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-liquid);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 640px;
}

.chat-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
  gap: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--emerald);
  animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.chat-feed {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 82%;
  animation: tabFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-row.mine {
  margin-right: auto;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-row.mine .chat-avatar {
  background: linear-gradient(135deg, #059669, #10B981);
}

.chat-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-liquid);
}

.chat-row.mine .chat-bubble {
  background: linear-gradient(135deg, var(--primary), #4338CA);
  border-color: rgba(129, 140, 248, 0.4);
  color: #FFFFFF;
}

.chat-bubble-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chat-row.mine .chat-bubble-meta {
  color: #C7D2FE;
}

.chat-author {
  font-weight: 700;
  color: var(--text-main);
}

.chat-row.mine .chat-author {
  color: #FFFFFF;
}

.chat-time {
  font-size: 0.74rem;
  margin-right: auto;
  direction: ltr;
}

.chat-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-main);
}

.chat-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}

.chat-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input {
  flex: 1;
}

.chat-btn {
  padding: 12px 22px;
  flex-shrink: 0;
}

.chat-login-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  background: rgba(11, 15, 25, 0.85);
  border-top: 1px solid var(--border-glass);
  padding: 48px 0 28px;
  position: relative;
  z-index: 1;
  margin-top: 72px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}

.footer-brand .brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-glass);
  margin: 8px 0;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dark);
}

.footer-love {
  font-size: 0.86rem;
  color: var(--text-body);
}

.footer-love span {
  color: #F43F5E;
}

.scroll-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-liquid);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary);
  border-color: var(--primary-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-xl);
}

.empty-state svg {
  margin-bottom: 14px;
  color: var(--text-dark);
}

.empty-state p {
  font-size: 0.98rem;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    padding: 56px 0 44px;
  }
  .stats-grid, .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 48px 0;
  }
  .card {
    padding: 20px;
  }
  .login-card {
    padding: 34px 24px;
  }
  .chat-container {
    height: 540px;
  }
  .chat-row {
    max-width: 92%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .navbar {
    padding: 0 16px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.88rem;
  }
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FBBF24;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  padding: 0;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(251, 191, 36, 0.4);
  transform: translateY(-1px);
}

.theme-toggle-btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle-btn .icon-moon-symbol {
  display: none;
}

.theme-toggle-btn .icon-sun-symbol {
  display: inline-flex;
}

@media (max-width: 768px) {
  .nav-actions-mobile {
    display: flex !important;
    align-items: center;
    margin-inline-start: auto;
    margin-inline-end: 12px;
  }
}

[data-theme="light"] {
  --bg-deep: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-subtle: #F1F5F9;
  --border-glass: #E2E8F0;
  --border-glass-hover: #CBD5E1;
  --border: #E2E8F0;
  --primary: #1E40AF;
  --primary-bright: #2563EB;
  --primary-light: rgba(37, 99, 235, 0.09);
  --emerald: #059669;
  --emerald-light: rgba(5, 150, 105, 0.1);
  --emerald-border: rgba(5, 150, 105, 0.25);
  --amber: #D97706;
  --amber-light: rgba(217, 119, 6, 0.1);
  --amber-border: rgba(217, 119, 6, 0.25);
  --violet: #7C3AED;
  --violet-light: rgba(124, 58, 237, 0.1);
  --violet-border: rgba(124, 58, 237, 0.25);
  --rose: #E11D48;
  --rose-light: rgba(225, 29, 72, 0.1);
  --cyan: #0284C7;
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-dark: #94A3B8;
  --shadow-liquid: 0 10px 30px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 4px 18px -2px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] body {
  background-color: #F8FAFC;
  color: #334155;
  background-image:
    radial-gradient(at 10% 10%, #EEF2F6 0px, transparent 40%),
    radial-gradient(at 90% 15%, #E2E8F0 0px, transparent 45%),
    radial-gradient(at 50% 60%, #F1F5F9 0px, transparent 60%),
    radial-gradient(at 85% 90%, #EEF2F6 0px, transparent 45%);
}

[data-theme="light"] .theme-toggle-btn {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #1E40AF;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
  color: #0F172A;
}

[data-theme="light"] .theme-toggle-btn .icon-moon-symbol {
  display: inline-flex;
}

[data-theme="light"] .theme-toggle-btn .icon-sun-symbol {
  display: none;
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: #CBD5E1;
}

[data-theme="light"] .navbar-brand {
  color: #0F172A;
}

[data-theme="light"] .nav-links a {
  color: #475569;
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: #1E40AF;
  background: rgba(30, 64, 175, 0.08);
}

[data-theme="light"] .card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px 0 rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .page-header {
  border-bottom: 1px solid #E2E8F0;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.8) 0%, rgba(248, 250, 252, 0.2) 100%);
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0F172A 0%, #1E40AF 60%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus,
[data-theme="light"] .form-select:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #FFFFFF;
}

[data-theme="light"] .footer {
  background: #0F172A;
  color: #94A3B8;
  border-top: 1px solid #1E293B;
}

[data-theme="light"] .footer .footer-brand {
  color: #FFFFFF;
}

[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #E2E8F0;
}

[data-theme="light"] .mobile-menu a {
  color: #334155;
  border-bottom-color: #F1F5F9;
}

[data-theme="light"] .mobile-menu a:hover {
  background: #F8FAFC;
  color: #1E40AF;
}

[data-theme="light"] .chat-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
}

[data-theme="light"] .chat-header {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

[data-theme="light"] .chat-body {
  background: #F8FAFC;
}

[data-theme="light"] .chat-bubble.other {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
}

[data-theme="light"] .chat-bubble.self {
  background: #1E40AF;
  color: #FFFFFF;
}

[data-theme="light"] .chat-input-area {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
}

[data-theme="light"] .tab-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #64748B;
}

[data-theme="light"] .tab-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

[data-theme="light"] .tab-btn.active {
  background: #1E40AF;
  border-color: #1E40AF;
  color: #FFFFFF;
}

[data-theme="light"] .badge-gold {
  background: rgba(217, 119, 6, 0.12);
  color: #B45309;
  border-color: rgba(217, 119, 6, 0.28);
}

[data-theme="light"] .badge-silver {
  background: #F1F5F9;
  color: #475569;
  border-color: #CBD5E1;
}

[data-theme="light"] .badge-bronze {
  background: rgba(180, 83, 9, 0.12);
  color: #92400E;
  border-color: rgba(180, 83, 9, 0.28);
}

[data-theme="light"] .badge-purple {
  background: rgba(37, 99, 235, 0.1);
  color: #1D4ED8;
  border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .badge-green {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.25);
}

[data-theme="light"] .badge-red {
  background: rgba(225, 29, 72, 0.1);
  color: #BE123C;
  border-color: rgba(225, 29, 72, 0.25);
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: var(--transition);
}

.blog-cover-link {
  display: block;
  overflow: hidden;
  position: relative;
}

.blog-cover-wrapper {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
}

.blog-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-cover-img {
  transform: scale(1.04);
}

.blog-video-indicator {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blog-cover-placeholder {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border-glass);
}

.blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 10px;
}

.blog-title a {
  color: var(--text-main);
}

.blog-title a:hover {
  color: var(--primary-bright);
}

.blog-summary {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}

.blog-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-bright);
  transition: var(--transition);
}

.btn-read-more:hover {
  gap: 10px;
  color: var(--primary);
}

.blog-detail-card {
  padding: 32px;
  overflow: hidden;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}

.btn-back-link:hover {
  color: var(--text-main);
  border-color: var(--primary-bright);
}

.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-media-container {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.4);
}

.media-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000000;
}

.video-wrapper video,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-featured-image-wrapper {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  max-height: 480px;
}

.blog-featured-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.blog-lead-box {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border-right: 4px solid var(--primary-bright);
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  font-weight: 500;
}

.blog-content-body {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-body);
  white-space: pre-line;
  margin-bottom: 36px;
}

.blog-share-card {
  margin-top: 32px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
}

.blog-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.copy-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.9rem;
  direction: ltr;
  text-align: left;
  outline: none;
}

.copy-success-notice {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald);
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-copied {
  background: var(--emerald) !important;
  border-color: var(--emerald) !important;
  color: #FFFFFF !important;
}

.btn-nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-nav-user:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-bright);
}

.nav-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.nav-avatar-default {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.nav-user-name {
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-score-badge {
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-header-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-liquid);
  flex-wrap: wrap;
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-large {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-bright);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.profile-avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  border: 3px solid var(--primary-bright);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.profile-info-body {
  flex: 1;
  min-width: 280px;
}

.profile-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.profile-full-name {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
}

.profile-username-tag {
  font-size: 0.92rem;
  color: var(--primary-bright);
  font-weight: 700;
  direction: ltr;
  display: inline-block;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.profile-bio-box {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 20px;
}

.profile-stats-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

.profile-stat-item {
  display: flex;
  flex-direction: column;
}

.profile-stat-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
}

.profile-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.edit-avatar-preview-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
}

.edit-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-bright);
}

.edit-avatar-preview-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  border: 3px solid var(--primary-bright);
}

.repo-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.repo-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 680px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.search-input {
  padding-right: 38px !important;
}

.sort-select {
  width: auto;
  min-width: 150px;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.category-pill {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  white-space: nowrap;
  transition: var(--transition);
}

.category-pill:hover,
.category-pill.active {
  color: #FFFFFF;
  background: var(--primary);
  border-color: var(--primary-bright);
}

.repo-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.repo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.repo-author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.repo-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.repo-author-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.repo-author-info {
  display: flex;
  flex-direction: column;
}

.repo-author-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.repo-author-username {
  font-size: 0.72rem;
  color: var(--text-muted);
  direction: ltr;
  text-align: right;
}

.repo-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 10px;
}

.repo-card-title a {
  color: var(--text-main);
}

.repo-card-title a:hover {
  color: var(--primary-bright);
}

.repo-card-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 16px;
  flex: 1;
}

.repo-file-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--border-glass);
}

.file-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
}

.tag-pdf {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.tag-video {
  background: rgba(244, 63, 94, 0.12);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.tag-image {
  background: rgba(14, 165, 233, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.repo-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.repo-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.repo-detail-header-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}

.repo-header-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.repo-header-author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.repo-author-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.repo-author-avatar-placeholder-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.repo-author-name-bold {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.repo-detail-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.35;
}

.repo-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.28);
  color: #FB7185;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-like:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.45);
  transform: translateY(-1px);
}

.btn-like.liked {
  background: #F43F5E;
  color: #FFFFFF;
  border-color: #F43F5E;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}

.repo-header-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 14px;
}

.repo-meta-footer-bar {
  padding-top: 12px;
  border-top: 1px solid var(--border-glass);
}

.repo-files-container {
  padding: 0;
  overflow: hidden;
}

.repo-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-subtle);
}

.upload-file-panel {
  padding: 18px 24px;
  background: rgba(16, 185, 129, 0.05);
  border-bottom: 1px solid var(--border-glass);
}

.repo-files-list {
  padding: 12px 24px;
}

.repo-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-glass);
  gap: 16px;
  flex-wrap: wrap;
}

.repo-file-row:last-child {
  border-bottom: none;
}

.repo-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-pdf {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.file-video {
  background: rgba(244, 63, 94, 0.12);
  color: #F43F5E;
}

.file-image {
  background: rgba(14, 165, 233, 0.12);
  color: #0EA5E9;
}

.repo-file-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.repo-file-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.repo-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.repo-embedded-media-box {
  margin: 12px 0 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.repo-embedded-image-box {
  margin: 12px 0 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  max-height: 440px;
}

.repo-embedded-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.github-readme-card {
  border-radius: var(--radius-lg);
}

.readme-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-glass);
}

.markdown-body {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--text-body);
}

.markdown-body h1 {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 24px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
}

.markdown-body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 22px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-glass);
}

.markdown-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 18px;
  margin-bottom: 10px;
}

.markdown-body p {
  margin-bottom: 16px;
}

.markdown-body ul,
.markdown-body ol {
  margin-bottom: 16px;
  padding-right: 24px;
}

.markdown-body li {
  margin-bottom: 6px;
}

.markdown-body blockquote {
  padding: 12px 18px;
  border-right: 4px solid var(--primary-bright);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  margin: 18px 0;
  color: var(--text-main);
}

.markdown-body pre {
  background: #0F172A;
  color: #F8FAFC;
  padding: 18px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  margin: 18px 0;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.88rem;
  border: 1px solid var(--border-glass);
}

.markdown-body code {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-bright);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.88rem;
  direction: ltr;
  display: inline-block;
}

.markdown-body pre code {
  background: none;
  color: inherit;
  padding: 0;
  display: block;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.markdown-body th,
.markdown-body td {
  padding: 12px 16px;
  border: 1px solid var(--border-glass);
  text-align: right;
}

.markdown-body th {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
}

.markdown-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  border-bottom: none;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  flex-wrap: wrap;
}

.md-tool-btn {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.md-tool-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.repo-comments-card {
  padding: 28px;
}

.comments-header {
  margin-bottom: 20px;
}

.comment-form-box {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
}

.comment-login-notice {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
}

.comment-author-avatar-link {
  flex-shrink: 0;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.comment-body {
  flex: 1;
}

.comment-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment-author-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.comment-time {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.btn-delete-comment {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-delete-comment:hover {
  color: var(--rose);
}

.comment-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-body);
}

[data-theme="light"] .btn-nav-user {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

[data-theme="light"] .profile-header-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .profile-full-name {
  color: #0F172A;
}

[data-theme="light"] .profile-bio-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #334155;
}

[data-theme="light"] .category-pill {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #64748B;
}

[data-theme="light"] .category-pill.active {
  background: #1E40AF;
  border-color: #1E40AF;
  color: #FFFFFF;
}

[data-theme="light"] .repo-detail-header-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

[data-theme="light"] .repo-files-header {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .upload-file-panel {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

[data-theme="light"] .readme-title-bar {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .markdown-body blockquote {
  background: #F8FAFC;
  border-right-color: #2563EB;
}

[data-theme="light"] .markdown-body th {
  background: #F8FAFC;
  color: #0F172A;
}

[data-theme="light"] .markdown-body pre {
  background: #0F172A;
  color: #F8FAFC;
}

[data-theme="light"] .comment-item {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
