/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Surface Tokens (Light) */
  --surface-body: #F8F9FA;
  --surface-card: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-muted: #F3F4F6;
  --surface-input: #F8F9FA;
  
  /* Text Tokens (Light) */
  --text-heading: #1A1D20;
  --text-body: #343A40;
  --text-muted: #6B7280;
  
  /* Border Tokens (Light) */
  --border-color: #E5E7EB;
  --border-subtle: #F3F4F6;

  /* Level Colors */
  --level-1: #34D399;
  --level-2: #F59E0B;
  --level-3: #0ea5e9;
  --level-4: #6366F1;

  --level-accent: var(--level-4);
}

html.dark {
  /* Surface Tokens (Dark) */
  --surface-body: #121212;
  --surface-card: #1A1A1A;
  --surface-elevated: #262626;
  --surface-muted: #1A1A1A;
  --surface-input: #121212;
  
  /* Text Tokens (Dark) */
  --text-heading: #FFFFFF;
  --text-body: #E5E7EB;
  --text-muted: #9CA3AF;
  
  /* Border Tokens (Dark) */
  --border-color: #262626;
  --border-subtle: #1A1A1A;
}

/* ========== BASE LAYER ========== */
body {
  background-color: var(--surface-body);
  color: var(--text-body);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 110, 253, 0.05), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(99, 102, 241, 0.03), transparent);
}

html.dark body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.03), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 255, 255, 0.02), transparent);
}

/* Selection color */
::selection {
  background: rgba(13, 110, 253, 0.15);
  color: #1A1D20;
}

html.dark ::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* ========== COMPONENT UTILITIES ========== */
.glass {
  background: var(--surface-elevated);
  opacity: 0.95;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

html.dark .glass {
  background: var(--surface-card);
  opacity: 0.95;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.text-gradient {
  background: linear-gradient(to right, #0d6efd, #6610f2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.surface-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  box-shadow: 0 2px 20px -4px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

html.dark .surface-card {
  box-shadow: none;
}

.surface-card-hover:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.1);
  border-color: #D1D5DB;
}

html.dark .surface-card-hover:hover {
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.4);
  border-color: #475569;
}

/* Level glows */
.level-shadow-1 { box-shadow: 0 0 24px -6px rgba(52, 211, 153, 0.5); }
.level-shadow-2 { box-shadow: 0 0 24px -6px rgba(245, 158, 11, 0.5); }
.level-shadow-3 { box-shadow: 0 0 24px -6px rgba(14, 165, 233, 0.5); }
.level-shadow-4 { box-shadow: 0 0 24px -6px rgba(99, 102, 241, 0.5); }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--surface-body);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
  border: 2px solid var(--surface-body);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========== SMOOTH THEME TRANSITIONS ========== */
*, *::before, *::after {
  transition-property: background-color, border-color, color, fill, stroke, box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.text-heading {
  color: var(--text-heading) !important;
}

.text-body {
  color: var(--text-body) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

img, video, iframe, canvas, svg path, svg circle, svg line, svg rect {
  transition-property: none !important;
}

/* ========== NAVBAR / HEADER MODERN SHELL ========== */
.header-modern-shell {
  position: sticky;
  top: 0;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  z-index: 1000;
}

.dark .header-modern-shell {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.88), rgba(18, 18, 18, 0.74));
  border-bottom-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2);
}

.header-inner-shell {
  padding: 0.05rem 0;
}

.brand-shell {
  padding: 0.3rem 0.35rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.brand-shell:hover {
  transform: translateY(-1px);
  background: rgba(13, 110, 253, 0.06);
}

.brand-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.desktop-controls-shell {
  padding: 0.25rem 0.3rem;
}

.desktop-search-shell {
  min-width: 420px;
  max-width: 520px;
  height: 46px;
  padding: 0 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dark .desktop-search-shell {
  background: rgba(18, 18, 18, 0.65);
  border-color: rgba(148, 163, 184, 0.18);
}

.desktop-search-input {
  min-width: 200px;
  font-size: 0.99rem;
}

.desktop-search-btn {
  height: 46px;
  border-radius: 1rem;
  letter-spacing: 0.05em;
}

.divider-line {
  width: 1px;
  height: 34px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.icon-pill-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.9);
  color: var(--text-heading);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.icon-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.dark .icon-pill-btn {
  background: rgba(26, 26, 26, 0.72);
}

.mobile-controls-shell {
  padding: 0.1rem 0;
}

.mobile-icon-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.92);
  color: var(--text-heading);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mobile-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.dark .mobile-icon-btn {
  background: rgba(26, 26, 26, 0.72);
}

.mobile-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  animation: fadeInBackdrop 0.2s ease forwards;
}

.mobile-search-panel {
  padding: 0 1rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  animation: slideUpBottomSheet 0.22s ease forwards;
}

.mobile-search-card {
  width: min(100%, 28rem);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1.25rem 1.25rem 0 0;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-bottom: 0;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.18);
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpBottomSheet {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.theme-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== SEGMENTED CONTROL (BOOTSTRAP COMPATIBLE) ========== */
.segmented-control {
  display: flex;
  background: var(--surface-muted);
  padding: 4px;
  border-radius: 1.25rem;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
  z-index: 10;
}

.dark .segmented-control {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid #262626;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
}

.segmented-control button, .segmented-control a.btn {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
  border-radius: 0.85rem;
  font-size: 0.88rem;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.segmented-control button.active, .segmented-control a.btn.active {
  color: #FFFFFF !important;
}

.segmented-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  border-radius: 0.85rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Precise Pill Alignment Formulas */
.pill-date { 
  left: 4px; 
  width: calc((100% - 8px) / 2); 
}
.pill-title { 
  left: calc(4px + (100% - 8px) / 2); 
  width: calc((100% - 8px) / 2); 
}

/* Layout (Grid) */
.pill-grid-1 { 
  left: 4px; 
  width: calc((100% - 8px) / 4); 
}
.pill-grid-2 { 
  left: calc(4px + (100% - 8px) / 4); 
  width: calc((100% - 8px) / 4); 
}
.pill-grid-3 { 
  left: calc(4px + 2 * (100% - 8px) / 4); 
  width: calc((100% - 8px) / 4); 
}
.pill-grid-4 { 
  left: calc(4px + 3 * (100% - 8px) / 4); 
  width: calc((100% - 8px) / 4); 
}

.segmented-control button:hover:not(.active), .segmented-control a.btn:hover:not(.active) {
  color: #0d6efd !important;
  background: rgba(13, 110, 253, 0.05);
}

/* ========== PROFESSIONAL LEVEL SELECTOR ========== */
.level-selector-group {
  display: flex;
  background: var(--surface-muted);
  padding: 3px;
  border-radius: 0.65rem;
  border: 1px solid var(--border-color);
  gap: 3px;
  width: fit-content;
}

.dark .level-selector-group {
  background: rgba(255, 255, 255, 0.03);
}

.level-segment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.45rem;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .level-segment {
  background: #1A1A1A;
}

.level-segment .lvl-label {
  opacity: 0.6;
}

.level-segment .lvl-text {
  letter-spacing: 0.05em;
}

.level-segment:hover {
  transform: translateY(-2px);
  color: var(--text-heading);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.level-segment.level-1 { --level-accent: var(--level-1); }
.level-segment.level-2 { --level-accent: var(--level-2); }
.level-segment.level-3 { --level-accent: var(--level-3); }
.level-segment.level-4 { --level-accent: var(--level-4); }

.level-segment.level-1:hover { border-color: var(--level-1); color: var(--level-1); }
.level-segment.level-2:hover { border-color: var(--level-2); color: var(--level-2); }
.level-segment.level-3:hover { border-color: var(--level-3); color: var(--level-3); }
.level-segment.level-4:hover { border-color: var(--level-4); color: var(--level-4); }

/* Tooltip for dense modes */
.level-segment-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--text-heading);
  color: var(--surface-card);
  padding: 0.35rem 0.65rem;
  border-radius: 0.4rem;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  z-index: 100;
}

.level-segment:hover .level-segment-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

/* ========== GRID LAYOUT UTILITIES ========== */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-list {
  aspect-ratio: 16 / 10;
}

.w-list {
  width: 40%;
}

.list-card {
  flex-direction: row !important;
}

@media (max-width: 768px) {
  .list-card {
    flex-direction: column !important;
  }
  .w-list {
    width: 100%;
  }
}

.truncate-title {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-primary:hover {
  color: #0d6efd !important;
}

.text-xxs {
  font-size: 0.65rem;
}

.dark-bg-white {
  background-color: #FFFFFF !important;
}

.dark-text-heading {
  color: #121212 !important;
}

.fixed-bottom-right {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
}

.hover-scale:hover {
  transform: scale(1.1);
}

.z-index-50 {
  z-index: 50;
}

.rounded-4xl {
  border-radius: 2.5rem !important;
}

.content-wrapper {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.fw-black {
  font-weight: 900 !important;
}

.cursor-pointer {
  cursor: pointer !important;
}

/* ========== EDITORIAL DETAIL PAGE LAYOUT ========== */
.editorial-hero {
  position: relative;
  width: 100%;
  height: 35vh;
  min-height: 280px;
  overflow: hidden;
  margin-bottom: 0;
}

.editorial-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.editorial-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 40%, rgba(18,18,18,0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem 1rem;
}

.editorial-title-container {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

@media (min-width: 1024px) {
  .editorial-grid {
    grid-template-columns: 1fr 320px;
  }
}

.editorial-main {
  min-width: 0;
}

.sticky-sidebar {
  position: sticky;
  top: 6rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-card {
  background: var(--surface-card);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.dark .sidebar-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.shadow-dark-lg-custom {
  box-shadow: 0 8px 40px -8px rgba(0,0,0,0.08);
}

.dark .shadow-dark-lg-custom {
  box-shadow: 0 8px 40px -8px rgba(0,0,0,0.5);
}

.prose-custom {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-body);
  text-align: justify;
  text-justify: inter-word;
}

@media (min-width: 768px) {
  .prose-custom {
    font-size: 1.5rem;
  }
}

.prose-custom p {
  margin-bottom: 2rem;
  font-family: 'Lora', Georgia, serif;
  letter-spacing: 0.01em;
}

.vocab-preview {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.vocab-preview:last-child {
  border-bottom: none;
}

.vocab-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: var(--level-accent);
}

.dark .vocab-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  background-color: #262626 !important;
}

/* Mobile Level Nav */
.mobile-level-nav {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-level-nav::-webkit-scrollbar {
  display: none;
}

.mobile-level-nav .content-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
}

.btn-mobile-lvl {
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--surface-muted);
  color: var(--text-muted);
}

.btn-mobile-lvl.active {
  background: var(--surface-card);
  border-color: var(--level-accent);
  color: var(--text-heading);
}

.level-sidebar-btn {
  background: var(--surface-muted);
  border: 1px solid var(--border-color) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.level-sidebar-btn:hover {
  background: var(--surface-card);
  transform: translateX(4px);
  border-color: var(--level-accent) !important;
}

.level-sidebar-btn.active-lvl {
  background: var(--surface-card) !important;
  border-color: var(--level-accent) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.dark .level-sidebar-btn.active-lvl {
  background: #262626 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.grayscale {
  filter: grayscale(100%);
}
.hover-grayscale-off:hover {
  filter: grayscale(0%);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--surface-card);
  border-top: 1px solid var(--border-color) !important;
}

/* ========== MOBILE BOTTOM SHEET EXTRAS ========== */
.mobile-sheet-handle {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-color);
  margin: 0 auto 0.75rem;
}

.mobile-control-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: var(--text-body);
  transition: background 0.15s ease;
}

.mobile-control-item:hover {
  background: var(--surface-muted);
}

.mobile-control-item-active {
  background: var(--surface-muted);
  color: var(--text-heading);
  font-weight: 700;
}

/* ========== TOOLTIP ARROW ========== */
.border-custom-tooltip {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-custom-arrow {
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #1f2937;
}

/* ========== ANIMATIONS ========== */
@keyframes animate-slide-up {
  from {
    opacity: 0;
    transform: translate(-50%, -90%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%);
  }
}

.animate-slide-up {
  animation: animate-slide-up 0.2s ease forwards;
}

/* ========== UTILITY CLASSES ========== */
.tracking-widest {
  letter-spacing: 0.1em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-tight {
  letter-spacing: -0.02em;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.font-serif {
  font-family: 'Lora', Georgia, serif;
}

.w-fit-content {
  width: fit-content;
}

.uppercase {
  text-transform: uppercase;
}

.z-index-40 {
  z-index: 40;
}

.object-cover {
  object-fit: cover;
}

.thumbnail-img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.surface-card:hover .thumbnail-img {
  transform: scale(1.05);
}

/* ========== DARK MODE BOOTSTRAP OVERRIDES ========== */
.dark .bg-light {
  background-color: var(--surface-muted) !important;
}

.dark .border-light {
  border-color: var(--border-color) !important;
}

.dark .border-top {
  border-color: var(--border-color) !important;
}

.dark .btn-outline-light {
  border-color: var(--border-color);
  color: var(--text-muted);
}

.dark .btn-outline-light:hover {
  background: var(--surface-muted);
  border-color: var(--text-muted);
  color: var(--text-heading);
}

.dark .form-select {
  background-color: var(--surface-card);
  border-color: var(--border-color);
  color: var(--text-body);
}

.dark .btn-heading {
  background-color: var(--text-heading);
  color: var(--surface-body);
}

.bg-heading {
  background-color: var(--text-heading);
}

.dark .hover-bg-light:hover {
  background: var(--surface-muted) !important;
}

.hover-bg-light:hover {
  background: var(--surface-muted);
}

.hover-heading:hover {
  color: var(--text-heading) !important;
}

/* ========== RESPONSIVE POLISH ========== */
@media (max-width: 991px) {
  .desktop-search-shell {
    min-width: auto;
  }
  
  .content-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  .brand-logo {
    height: 42px;
  }
  
  .editorial-hero {
    height: 28vh;
    min-height: 220px;
    border-radius: 0 !important;
  }
  
  .editorial-hero h1 {
    font-size: 1.5rem !important;
  }
}

/* ========== ADMIN PAGE STYLES ========== */

/* Top Loading Progress Bar */
.admin-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.admin-progress-bar.active {
  opacity: 1;
}

.admin-progress-bar .bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0d6efd, #6610f2, #0d6efd);
  background-size: 200% 100%;
  animation: admin-progress-slide 1.5s ease-in-out infinite;
  border-radius: 0 2px 2px 0;
}

@keyframes admin-progress-slide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* Admin Tab Pills */
.admin-tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--surface-muted);
  padding: 6px;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-tab-btn:hover {
  background: var(--surface-card);
  color: var(--text-heading);
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
}

/* Admin Card Panel */
.admin-panel-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  box-shadow: 0 2px 16px -4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.dark .admin-panel-card {
  box-shadow: 0 2px 16px -4px rgba(0, 0, 0, 0.3);
}

.admin-panel-header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-panel-body {
  padding: 1.5rem 1.75rem;
}

/* Admin News Table */
.admin-news-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-news-table thead th {
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.admin-news-table thead th:first-child {
  border-radius: 0.75rem 0 0 0;
}

.admin-news-table thead th:last-child {
  border-radius: 0 0.75rem 0 0;
}

.admin-news-table tbody tr {
  transition: background 0.15s ease;
}

.admin-news-table tbody tr:hover {
  background: var(--surface-muted);
}

.admin-news-table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  font-size: 0.9rem;
}

.admin-news-table tbody tr:last-child td {
  border-bottom: none;
}

/* News Row Thumbnail */
.admin-news-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* News Row Info */
.admin-news-info {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.admin-news-title {
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.admin-news-slug {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Channel Badge */
.admin-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
}

/* Date Badge */
.admin-date-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Delete Mode Select */
.admin-delete-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-delete-group .form-select {
  max-width: 120px;
  font-size: 0.8rem;
  padding: 0.3rem 2rem 0.3rem 0.5rem;
  border-radius: 0.5rem;
}

.admin-delete-group .btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
}

/* Stats Row */
.admin-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Admin Empty State */
.admin-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.admin-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* SweetAlert2 dark overrides */
.dark .swal2-popup {
  background: var(--surface-card) !important;
  color: var(--text-body) !important;
}

.dark .swal2-title {
  color: var(--text-heading) !important;
}

.dark .swal2-html-container {
  color: var(--text-body) !important;
}

/* Admin Fade In */
@keyframes adminFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-fade-in {
  animation: adminFadeIn 0.35s ease forwards;
}

/* Process card center layout */
.admin-process-card {
  max-width: 640px;
  margin: 0 auto;
}

/* Responsive admin table */
@media (max-width: 768px) {
  .admin-news-table thead {
    display: none;
  }

  .admin-news-table tbody tr {
    display: block;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--surface-card);
  }

  .admin-news-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .admin-news-table tbody td:last-child {
    border-bottom: none;
  }

  .admin-news-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.04em;
  }

  .admin-news-info {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  .admin-delete-group {
    justify-content: flex-end;
  }
}

/* ========== PREMIUM LOGIN PAGE STYLES ========== */

.login-premium-bg {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, rgba(13, 110, 253, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(102, 16, 242, 0.04) 0%, transparent 40%),
              var(--background-color);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  border-radius: 1.25rem;
  margin-top: 1rem;
}

.login-premium-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  padding: 2.5rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
}

.dark .login-premium-card {
  background: rgba(18, 18, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.login-premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
}

.dark .login-premium-card:hover {
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

.login-premium-logo {
  width: 64px;
  height: auto;
  margin-bottom: 1.25rem;
  transition: transform 0.5s ease;
}

.login-premium-logo:hover {
  transform: scale(1.08) rotate(5deg);
}

.login-input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.login-input-group .form-control {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  height: 52px;
  padding-left: 2.75rem;
  padding-right: 2.75rem;
  font-size: 0.95rem;
  color: var(--text-body);
  transition: all 0.25s ease;
}

.dark .login-input-group .form-control {
  background: rgba(30, 30, 30, 0.6);
}

.login-input-group .form-control:focus {
  background: var(--surface-card);
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.dark .login-input-group .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

.login-input-icon {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.25s ease;
}

.login-input-group .form-control:focus + .login-input-icon {
  color: #0d6efd;
}

.login-toggle-password {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.25s ease;
}

.login-toggle-password:hover {
  color: var(--text-heading);
}

.login-btn-premium {
  height: 52px;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn-premium:hover {
  background: linear-gradient(135deg, #0b5ed7 0%, #520dc2 100%);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
  transform: translateY(-1px);
}

.login-btn-premium:active {
  transform: translateY(1px);
}

/* ========== CATEGORY INFRASTRUCTURE STYLES ========== */

/* Horizontal Category Navigation Bar */
.category-scroll-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: none; /* Hide standard Firefox scrollbar */
  -ms-overflow-style: none; /* Hide IE scrollbar */
}

.category-scroll-bar::-webkit-scrollbar {
  display: none; /* Hide Webkit (Chrome/Safari) scrollbars */
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
}

.category-pill:hover {
  background: var(--surface-muted);
  border-color: var(--text-muted);
  color: var(--text-heading);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--text-heading);
  border-color: var(--text-heading);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dark .category-pill.active {
  background: #fff;
  border-color: #fff;
  color: #121212 !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Category Badge Tags on Public News Cards */
.category-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.category-tag-badge:hover {
  opacity: 0.85;
}

/* Premium Soft Transparent Color Badges */
.category-tag-primary {
  background: rgba(13, 110, 253, 0.08) !important;
  color: #0d6efd !important;
  border: 1px solid rgba(13, 110, 253, 0.2) !important;
}
.category-tag-danger {
  background: rgba(220, 53, 69, 0.08) !important;
  color: #dc3545 !important;
  border: 1px solid rgba(220, 53, 69, 0.2) !important;
}
.category-tag-warning {
  background: rgba(255, 193, 7, 0.08) !important;
  color: #ffc107 !important;
  border: 1px solid rgba(255, 193, 7, 0.2) !important;
}
.category-tag-success {
  background: rgba(25, 135, 84, 0.08) !important;
  color: #198754 !important;
  border: 1px solid rgba(25, 135, 84, 0.2) !important;
}
.category-tag-info {
  background: rgba(13, 202, 240, 0.08) !important;
  color: #0dcaf0 !important;
  border: 1px solid rgba(13, 202, 240, 0.2) !important;
}
.category-tag-secondary {
  background: rgba(108, 117, 125, 0.08) !important;
  color: #6c757d !important;
  border: 1px solid rgba(108, 117, 125, 0.2) !important;
}
.category-tag-purple {
  background: rgba(139, 92, 246, 0.08) !important;
  color: #8b5cf6 !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
}
.category-tag-pink {
  background: rgba(236, 72, 153, 0.08) !important;
  color: #ec4899 !important;
  border: 1px solid rgba(236, 72, 153, 0.2) !important;
}
.category-tag-orange {
  background: rgba(249, 115, 22, 0.08) !important;
  color: #f97316 !important;
  border: 1px solid rgba(249, 115, 22, 0.2) !important;
}
.category-tag-teal {
  background: rgba(20, 184, 166, 0.08) !important;
  color: #14b8a6 !important;
  border: 1px solid rgba(20, 184, 166, 0.2) !important;
}
.category-tag-indigo {
  background: rgba(99, 102, 241, 0.08) !important;
  color: #6366f1 !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
}
.category-tag-lime {
  background: rgba(101, 163, 13, 0.08) !important;
  color: #65a30d !important;
  border: 1px solid rgba(101, 163, 13, 0.2) !important;
}
.category-tag-rose {
  background: rgba(244, 63, 94, 0.08) !important;
  color: #f43f5e !important;
  border: 1px solid rgba(244, 63, 94, 0.2) !important;
}
.category-tag-emerald {
  background: rgba(5, 150, 105, 0.08) !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 150, 105, 0.2) !important;
}
.category-tag-violet {
  background: rgba(124, 58, 237, 0.08) !important;
  color: #7c3aed !important;
  border: 1px solid rgba(124, 58, 237, 0.2) !important;
}
.category-tag-amber {
  background: rgba(217, 119, 6, 0.08) !important;
  color: #d97706 !important;
  border: 1px solid rgba(217, 119, 6, 0.2) !important;
}

.dark .category-tag-primary {
  background: rgba(13, 110, 253, 0.15) !important;
  color: #3b82f6 !important;
}
.dark .category-tag-danger {
  background: rgba(220, 53, 69, 0.15) !important;
  color: #f87171 !important;
}
.dark .category-tag-warning {
  background: rgba(255, 193, 7, 0.15) !important;
  color: #fbbf24 !important;
}
.dark .category-tag-success {
  background: rgba(25, 135, 84, 0.15) !important;
  color: #34d399 !important;
}
.dark .category-tag-info {
  background: rgba(13, 202, 240, 0.15) !important;
  color: #22d3ee !important;
}
.dark .category-tag-secondary {
  background: rgba(108, 117, 125, 0.15) !important;
  color: #9ca3af !important;
}
.dark .category-tag-purple {
  background: rgba(139, 92, 246, 0.15) !important;
  color: #a78bfa !important;
}
.dark .category-tag-pink {
  background: rgba(236, 72, 153, 0.15) !important;
  color: #f472b6 !important;
}
.dark .category-tag-orange {
  background: rgba(249, 115, 22, 0.15) !important;
  color: #fb923c !important;
}
.dark .category-tag-teal {
  background: rgba(20, 184, 166, 0.15) !important;
  color: #2dd4bf !important;
}
.dark .category-tag-indigo {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #818cf8 !important;
}
.dark .category-tag-lime {
  background: rgba(101, 163, 13, 0.15) !important;
  color: #a3e635 !important;
}
.dark .category-tag-rose {
  background: rgba(244, 63, 94, 0.15) !important;
  color: #fb7185 !important;
}
.dark .category-tag-emerald {
  background: rgba(5, 150, 105, 0.15) !important;
  color: #34d399 !important;
}
.dark .category-tag-violet {
  background: rgba(124, 58, 237, 0.15) !important;
  color: #c084fc !important;
}
.dark .category-tag-amber {
  background: rgba(217, 119, 6, 0.15) !important;
  color: #fbbf24 !important;
}

/* ========== PREMIUM NEWS TAG PILLS & MODAL ========== */
.tag-badge-link {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
}

.tag-badge-link:hover {
  background: var(--text-heading);
  border-color: var(--text-heading);
  color: var(--surface-card) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.dark .tag-badge-link:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #121212 !important;
}

/* Custom Tag Filter Indicator Alert */
.active-tag-alert {
  background: rgba(13, 110, 253, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.2);
  color: var(--text-heading);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.dark .active-tag-alert {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Glassmorphic Tags Editor Modal Stills */
.glass-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.glass-modal {
  width: min(100% - 2rem, 30rem);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.dark .glass-modal {
  background: rgba(26, 26, 26, 0.85);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tag-pill-editor {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  color: var(--text-body);
}

.tag-pill-editor button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0;
  display: inline-flex;
  font-size: 0.75rem;
}

.tag-pill-editor button:hover {
  color: #dc3545;
}

.tag-input-field {
  width: 100%;
  border-radius: 1rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  border: 1px solid var(--border-color) !important;
  background: var(--surface-input) !important;
  color: var(--text-heading) !important;
  transition: all 0.2s ease;
}

.tag-input-field:focus {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12) !important;
  outline: none !important;
}

.admin-tag-pill {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(108, 117, 125, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* ========== PREMIUM NEWS CARD FLOATING CATEGORY BADGES ========== */
.category-floating-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px; /* Rounded pill style */
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.category-floating-badge:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  filter: brightness(1.1);
}

/* Premium Solid Glassmorphic Colored Badges with Absolute Contrast Guarantee */
.category-floating-primary {
  background: rgba(13, 110, 253, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-primary:hover {
  background: #0d6efd !important;
}

.category-floating-danger {
  background: rgba(220, 53, 69, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-danger:hover {
  background: #dc3545 !important;
}

.category-floating-warning {
  background: rgba(245, 158, 11, 0.92) !important; /* Amber Orange */
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-warning:hover {
  background: #f59e0b !important;
}

.category-floating-success {
  background: rgba(25, 135, 84, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-success:hover {
  background: #198754 !important;
}

.category-floating-info {
  background: rgba(14, 165, 233, 0.92) !important; /* Sky Blue */
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-info:hover {
  background: #0ea5e9 !important;
}

.category-floating-secondary {
  background: rgba(75, 85, 99, 0.92) !important; /* Slate Grey */
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-secondary:hover {
  background: #4b5563 !important;
}

.category-floating-purple {
  background: rgba(139, 92, 246, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-purple:hover {
  background: #8b5cf6 !important;
}

.category-floating-pink {
  background: rgba(236, 72, 153, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-pink:hover {
  background: #ec4899 !important;
}

.category-floating-orange {
  background: rgba(249, 115, 22, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-orange:hover {
  background: #f97316 !important;
}

.category-floating-teal {
  background: rgba(20, 184, 166, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-teal:hover {
  background: #14b8a6 !important;
}

.category-floating-indigo {
  background: rgba(99, 102, 241, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-indigo:hover {
  background: #6366f1 !important;
}

.category-floating-lime {
  background: rgba(101, 163, 13, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-lime:hover {
  background: #65a30d !important;
}

.category-floating-rose {
  background: rgba(244, 63, 94, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-rose:hover {
  background: #f43f5e !important;
}

.category-floating-emerald {
  background: rgba(5, 150, 105, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-emerald:hover {
  background: #059669 !important;
}

.category-floating-violet {
  background: rgba(124, 58, 237, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-violet:hover {
  background: #7c3aed !important;
}

.category-floating-amber {
  background: rgba(217, 119, 6, 0.92) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.category-floating-amber:hover {
  background: #d97706 !important;
}
