 :root {
   --bg-0: #070707;
   --bg-1: #0b0b0b;
   --bg-2: #121212;
   --ink: #f8f6f2;
   --muted: rgba(235, 224, 210, 0.88);
   --muted-strong: rgba(248, 241, 233, 0.98);
   --glass: rgba(14, 12, 10, 0.72);
   --glass-strong: rgba(11, 9, 7, 0.9);
   --accent: #ff6b1a;
   --accent-2: #ff8a2b;
   --accent-3: #ff9b45;
   --accent-4: #ffb36b;
   --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
   --radius: 22px;
 }

 @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

 * {
   box-sizing: border-box;
 }

body {
  margin: 0;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  background: radial-gradient(1200px 800px at 12% 18%, rgba(255, 122, 36, 0.35), transparent 60%),
    radial-gradient(1000px 700px at 82% 12%, rgba(255, 148, 63, 0.28), transparent 55%),
    radial-gradient(900px 600px at 80% 82%, rgba(255, 92, 18, 0.22), transparent 60%),
    linear-gradient(135deg, var(--bg-0), var(--bg-2));
  color: var(--ink);
  min-height: 100vh;
  padding-top: 56px;
  display: flex;
  flex-direction: column;
}

 .page {
   position: relative;
   z-index: 1;
   padding-left: 72px;
 }

 .sidebar-backdrop {
   position: fixed;
   inset: 56px 0 0 0;
   background: rgba(6, 9, 16, 0.55);
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.25s ease;
   z-index: 2;
 }

 .sidebar {
   position: fixed;
   top: 56px;
   left: 0;
   width: 72px;
   height: calc(100vh - 56px);
   background: #0b0b0b;
   border-right: 1px solid rgba(255, 255, 255, 0.12);
   transform: translateX(0);
   transition: transform 0.25s ease;
   z-index: 999;
   backdrop-filter: blur(28px) saturate(180%);
   -webkit-backdrop-filter: blur(28px) saturate(180%);
   box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 20px rgba(255, 255, 255, 0.03);
 }

 .sidebar-inner {
   display: flex;
   flex-direction: column;
   gap: 18px;
   padding: 22px;
 }

 .sidebar-title {
   font-size: 14px;
   text-transform: uppercase;
   letter-spacing: 0.2em;
   color: rgba(212, 219, 255, 0.7);
 }

 .sidebar.collapsed .sidebar-title {
   display: none;
 }

 .sidebar.collapsed .sidebar-header {
   display: none;
 }

 .sidebar.collapsed .sidebar-close {
   display: none;
 }

 .sidebar-nav {
   display: grid;
   gap: 6px;
 }

 .sidebar-item {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 12px;
   border-radius: 12px;
   color: var(--ink);
   text-decoration: none;
   background: rgba(12, 16, 28, 0.5);
   border: 1px solid rgba(255, 255, 255, 0.06);
   font-weight: 600;
   font-size: 13px;
   transition: transform 0.15s ease, border-color 0.15s ease;
 }

 .sidebar-item:hover {
   transform: translateX(2px);
   border-color: rgba(255, 255, 255, 0.18);
 }

 .sidebar-item.active {
   background: rgba(255, 118, 36, 0.18);
   border-color: rgba(255, 118, 36, 0.55);
 }

 .sidebar-item .item-icon {
   width: 18px;
   height: 18px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 18px;
   line-height: 1;
 }

 .sidebar-label {
   white-space: nowrap;
   transition: opacity 0.2s ease, transform 0.2s ease;
 }

 .sidebar.collapsed .sidebar-label {
   opacity: 0;
   transform: translateX(-8px);
   pointer-events: none;
 }

 .sidebar.collapsed .sidebar-inner {
   padding: 18px 10px;
   align-items: center;
 }

 .sidebar.collapsed .sidebar-item {
   justify-content: center;
   width: 44px;
   height: 44px;
   padding: 0;
   background: transparent;
   border-color: transparent;
   display: grid;
   place-items: center;
   text-align: center;
 }

 .sidebar.collapsed .sidebar-item.active {
   background: rgba(255, 118, 36, 0.22);
   border-color: rgba(255, 118, 36, 0.55);
 }

 .sidebar.collapsed .sidebar-item:hover {
   background: rgba(255, 142, 64, 0.2);
   border-color: rgba(255, 142, 64, 0.45);
 }

 .sidebar.collapsed .sidebar-item .item-icon {
   font-size: 20px;
   line-height: 1;
 }

 .sidebar.collapsed .sidebar-nav {
   justify-items: center;
 }

 .sidebar:hover .sidebar-inner {
   align-items: stretch;
 }

 .sidebar:hover .sidebar-item {
   width: auto;
   height: auto;
   padding: 10px 12px;
   justify-content: flex-start;
   background: rgba(12, 16, 28, 0.5);
   border-color: rgba(255, 255, 255, 0.06);
 }

 .sidebar:hover .sidebar-item.active {
   background: rgba(255, 118, 36, 0.18);
   border-color: rgba(255, 118, 36, 0.55);
 }

 .sidebar:hover {
   width: 280px;
 }

 .sidebar:hover .sidebar-label {
   opacity: 1;
   transform: translateX(0);
   pointer-events: auto;
 }

 body::before {
   content: "";
   position: fixed;
   inset: 0;
   background: radial-gradient(600px 400px at 12% 90%, rgba(255, 173, 92, 0.16), transparent 60%),
     radial-gradient(600px 400px at 90% 24%, rgba(255, 108, 25, 0.18), transparent 60%);
   pointer-events: none;
   z-index: 0;
 }

 .glares {
   position: fixed;
   inset: 0;
   pointer-events: none;
   z-index: 0;
   overflow: hidden;
 }

 .topbar {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   height: 56px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0 20px;
   background: rgba(11, 14, 23, 0.4);
   backdrop-filter: blur(28px) saturate(180%);
   -webkit-backdrop-filter: blur(28px) saturate(180%);
   border-bottom: 1px solid rgba(255, 255, 255, 0.08);

   z-index: 1000;
 }

 .topbar::after {
   content: "";
   position: absolute;
   left: 0;
   right: 0;
   bottom: -1px;
   height: 1px;
   background: linear-gradient(90deg,
       transparent,
       rgba(255, 132, 56, 0.7),
       rgba(255, 98, 24, 0.9),
       rgba(255, 176, 96, 0.75),
       transparent);
   z-index: 1001;
 }

 .topbar-left {
   display: flex;
   align-items: center;
   gap: 12px;
   min-width: 0;
   flex: 1;
 }

 .topbar-actions {
   display: flex;
   align-items: center;
   gap: 12px;
   flex-shrink: 0;
 }

 .topbar-actions .topbar-live {
   display: flex;
   align-items: center;
   justify-content: center;
   white-space: nowrap;
 }

 .live-pill {
   background: rgba(255, 118, 36, 0.14);
   border: 1px solid rgba(255, 118, 36, 0.35);
   border-radius: 99px;
   padding: 4px 12px;
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 12px;
   font-weight: 700;
   letter-spacing: 0.04em;
   color: var(--accent-2);
   box-shadow: 0 0 15px rgba(255, 118, 36, 0.25);
 }

 .live-dot {
   width: 8px;
   height: 8px;
   background: var(--accent-2);
   border-radius: 50%;
   position: relative;
   box-shadow: 0 0 12px rgba(255, 118, 36, 0.9);
   animation: live-pulse 2s infinite;
 }

 @keyframes live-pulse {
   0% {
     transform: scale(1);
     opacity: 1;
     box-shadow: 0 0 0 0 rgba(255, 118, 36, 0.6);
   }

   70% {
     transform: scale(1.1);
     opacity: 0.7;
     box-shadow: 0 0 0 10px rgba(255, 118, 36, 0);
   }

   100% {
     transform: scale(1);
     opacity: 1;
     box-shadow: 0 0 0 0 rgba(255, 118, 36, 0);
   }
 }

 .live-text {
   opacity: 0.9;
 }

 .live-short {
   display: none;
 }

 .topbar-title {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   font-size: 16px;
   font-weight: 700;
   letter-spacing: -0.01em;
 }

 .topbar-menu {
   border: 1px solid rgba(255, 255, 255, 0.12);
   background: rgba(18, 22, 34, 0.6);
   color: var(--ink);
   border-radius: 10px;
   width: 34px;
   height: 34px;
   display: none;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   font-size: 16px;
 }

 .topbar-home {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   text-decoration: none;
   color: inherit;
   padding: 4px 8px;
   border-radius: 12px;
   transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
   max-height: 44px;
 }

 .topbar-home:hover {
   transform: translateY(-1px);
   background: rgba(255, 255, 255, 0.06);
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
 }

 .topbar-menu {
   border: 1px solid rgba(255, 255, 255, 0.12);
   background: rgba(18, 22, 34, 0.6);
   color: var(--ink);
   border-radius: 10px;
   width: 34px;
   height: 34px;
   display: none;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   font-size: 16px;
 }

 .topbar-home {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   text-decoration: none;
   color: inherit;
   padding: 4px 8px;
   border-radius: 12px;
   transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
 }

 .topbar-home:hover {
   transform: translateY(-1px);
   background: rgba(255, 255, 255, 0.06);
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
 }

 .topbar-title-text {
   font-size: 15px;
   font-weight: 700;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
 }

 .topbar-text {
   display: flex;
   flex-direction: column;
   gap: 2px;
   line-height: 1.1;
   min-width: 0;
 }

 .topbar-subtitle {
   font-size: 11px;
   color: rgba(214, 222, 255, 0.7);
   letter-spacing: 0.02em;
   margin-top: 0;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
 }

 .topbar .brand-badge {
   width: 34px;
   height: 34px;
   border-radius: 12px;
 }

 .topbar .brand-icon {
   width: 20px;
   height: 20px;
 }

 /* .topbar-line moved to .topbar::after */

 .glare {
   position: absolute;
   filter: blur(22px);
   opacity: 0.8;
   mix-blend-mode: screen;
 }

 .glare.g1 {
   width: 520px;
   height: 520px;
   top: -160px;
   left: -120px;
   background: radial-gradient(circle, rgba(255, 110, 32, 0.8), transparent 70%);
 }

 .glare.g2 {
   width: 560px;
   height: 560px;
   top: 6%;
   right: -160px;
   background: radial-gradient(circle, rgba(255, 156, 72, 0.65), transparent 70%);
 }

 .glare.g3 {
   width: 500px;
   height: 500px;
   bottom: -180px;
   left: 32%;
   background: radial-gradient(circle, rgba(255, 96, 20, 0.6), transparent 70%);
 }

 .glare.g4 {
   width: 360px;
   height: 360px;
   bottom: 10%;
   right: 12%;
   background: radial-gradient(circle, rgba(255, 176, 96, 0.55), transparent 70%);
 }

 header {
   padding: 32px 7vw 18px;
   position: relative;
   z-index: 1;
 }

 .page {
   position: relative;
   z-index: 1;
   transition: transform 0.25s ease;
   padding-left: 72px;
 }

 .sidebar-backdrop {
   position: fixed;
   inset: 56px 0 0 0;
   background: rgba(6, 9, 16, 0.55);
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.25s ease;
   z-index: 2;
 }

 .sidebar {
   position: fixed;
   top: 56px;
   left: 0;
   width: 72px;
   height: calc(100vh - 56px);
   background: #0b0b0b;
   border-right: 1px solid rgba(255, 255, 255, 0.08);
   transform: translateX(0);
   transition: transform 0.25s ease;
   z-index: 3;
   backdrop-filter: blur(18px);
   box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
 }

 .sidebar-inner {
   display: flex;
   flex-direction: column;
   gap: 18px;
   padding: 22px;
 }

 .sidebar-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
 }

 .sidebar-title {
   font-size: 14px;
   text-transform: uppercase;
   letter-spacing: 0.2em;
   color: rgba(212, 219, 255, 0.7);
 }

 .sidebar.collapsed .sidebar-title {
   display: none;
 }

 .sidebar.collapsed .sidebar-group-title {
   display: none;
 }

 .sidebar-close {
   border: 0;
   background: rgba(255, 255, 255, 0.08);
   color: var(--ink);
   border-radius: 999px;
   padding: 6px 12px;
   cursor: pointer;
 }

 .sidebar-card {
   background: rgba(16, 20, 34, 0.7);
   border-radius: 18px;
   padding: 16px;
   border: 1px solid rgba(255, 255, 255, 0.08);
   display: flex;
   flex-direction: column;
   gap: 10px;
 }

 .sidebar-group {
   display: grid;
   gap: 10px;
 }

 .sidebar-group-title {
   font-size: 11px;
   text-transform: uppercase;
   letter-spacing: 0.18em;
   color: rgba(200, 210, 255, 0.55);
 }

 .sidebar-nav {
   display: grid;
   gap: 6px;
 }

 .sidebar-item {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 12px;
   border-radius: 12px;
   color: var(--ink);
   text-decoration: none;
   background: rgba(12, 16, 28, 0.5);
   border: 1px solid rgba(255, 255, 255, 0.06);
   font-weight: 600;
   font-size: 13px;
   transition: transform 0.15s ease, border-color 0.15s ease;
 }

 .sidebar-item:hover {
   transform: translateX(2px);
   border-color: rgba(255, 255, 255, 0.18);
 }

 .sidebar-item.active {
   background: rgba(255, 118, 36, 0.18);
   border-color: rgba(255, 118, 36, 0.55);
 }

 .sidebar-item .item-icon {
   width: 18px;
   height: 18px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
 }

 .sidebar-label {
   white-space: nowrap;
   transition: opacity 0.2s ease, transform 0.2s ease;
 }

 .sidebar.collapsed .sidebar-label {
   opacity: 0;
   transform: translateX(-8px);
   pointer-events: none;
 }

 .sidebar.collapsed .sidebar-inner {
   padding: 18px 10px;
   align-items: center;
 }

 .sidebar.collapsed .sidebar-item {
   justify-content: center;
   width: 44px;
   height: 44px;
   padding: 0;
   background: transparent;
   border-color: transparent;
 }

 .sidebar.collapsed .sidebar-item.active {
   background: rgba(255, 118, 36, 0.22);
   border-color: rgba(255, 118, 36, 0.55);
 }

 .sidebar.collapsed .sidebar-nav {
   justify-items: center;
 }

 .sidebar:hover .sidebar-inner {
   align-items: stretch;
 }

 .sidebar:hover .sidebar-item {
   width: auto;
   height: auto;
   padding: 10px 12px;
   justify-content: flex-start;
   background: rgba(12, 16, 28, 0.5);
   border-color: rgba(255, 255, 255, 0.06);
 }

 .sidebar:hover .sidebar-item.active {
   background: rgba(255, 118, 36, 0.18);
   border-color: rgba(255, 118, 36, 0.55);
 }

 .sidebar:hover {
   width: 280px;
 }

 .sidebar:hover .sidebar-label {
   opacity: 1;
   transform: translateX(0);
   pointer-events: auto;
 }

 .sidebar-card h3 {
   margin: 0;
   font-size: 16px;
 }

 .sidebar-card p {
   margin: 0;
   color: rgba(220, 228, 255, 0.8);
   font-size: 13px;
 }

 .sidebar-link {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 14px;
   border-radius: 999px;
   border: 1px solid rgba(255, 118, 36, 0.5);
   background: rgba(255, 118, 36, 0.18);
   color: #ffe4cf;
   text-decoration: none;
   font-weight: 600;
   font-size: 13px;
 }

 .tech-list {
   display: grid;
   gap: 10px;
 }

 .tech-item {
   display: grid;
   gap: 6px;
   padding: 12px;
   border-radius: 14px;
   border: 1px solid rgba(255, 255, 255, 0.08);
   background: rgba(12, 16, 28, 0.7);
 }

 .tech-item a {
   color: var(--ink);
   text-decoration: none;
   font-weight: 600;
   font-size: 13px;
   line-height: 1.3;
 }

 .tech-item span {
   color: rgba(210, 218, 255, 0.7);
   font-size: 11px;
 }

 body.sidebar-open .sidebar {
   transform: translateX(0);
 }

 body.sidebar-open .sidebar-backdrop {
   opacity: 1;
   pointer-events: auto;
 }

 body.sidebar-open .page {
   transform: translateX(140px);
 }

 .brand {
   display: flex;
   align-items: center;
   gap: 18px;
 }

.brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(18, 12, 8, 0.7);
  border: 1px solid rgba(255, 118, 36, 0.35);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 118, 36, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

 .brand-mark {
   font-size: 18px;
   letter-spacing: 0.18em;
   margin-left: 2px;
 }

 .brand-icon {
   width: 34px;
   height: 34px;
   display: block;
 }

 .brand-badge img {
   width: 34px;
   height: 34px;
   object-fit: contain;
 }

h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.category-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.1vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff4e6;
}

 .subtitle {
   margin-top: 8px;
   color: var(--muted-strong);
   max-width: 720px;
 }

 .toolbar {
   margin-top: 24px;
   display: grid;
   gap: 12px;
   background: var(--glass);
   border-radius: 24px;
   padding: 16px;
   border: 1px solid rgba(255, 255, 255, 0.08);
   backdrop-filter: blur(14px);
   box-shadow: var(--shadow);
 }

 .filters-block {
   display: grid;
   gap: 10px;
 }

 .filters-title {
   font-size: 12px;
   text-transform: uppercase;
   letter-spacing: 0.18em;
   color: var(--muted-strong);
 }

 .filters {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
 }

.source-filter-shell {
  display: grid;
  gap: 10px;
  width: 100%;
  font-family: inherit;
}

.source-filter-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.source-filter-count {
  font-size: 12px;
  color: var(--muted-strong);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.source-filter-selected {
  margin-left: auto;
  font-size: 12px;
  color: rgba(240, 227, 210, 0.92);
  font-weight: 700;
}

.source-filter-combo {
  position: relative;
}

.source-filter-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(16, 21, 35, 0.9);
  overflow: hidden;
  min-height: 44px;
}

.source-filter-autocomplete {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 12px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.source-filter-autocomplete::placeholder {
  color: rgba(218, 227, 255, 0.68);
}

.source-filter-toggle {
  border: 0;
  outline: 0;
  width: 42px;
  height: 42px;
  background: transparent;
  color: rgba(218, 227, 255, 0.86);
  cursor: pointer;
}

.source-filter-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.source-filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  width: min(520px, calc(100vw - 80px));
  background: rgba(10, 14, 25, 0.98);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
  padding: 8px;
  z-index: 2100;
}

.source-filter-dropdown.hidden {
  display: none;
}

.source-filter-options {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 138, 43, 0.75) rgba(16, 21, 35, 0.9);
}

.source-filter-options::-webkit-scrollbar {
  width: 10px;
}

.source-filter-options::-webkit-scrollbar-track {
  background: rgba(16, 21, 35, 0.9);
  border-radius: 999px;
}

.source-filter-options::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 138, 43, 0.95), rgba(255, 107, 26, 0.9));
  border-radius: 999px;
  border: 2px solid rgba(16, 21, 35, 0.9);
}

.source-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(16, 22, 38, 0.72);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.source-filter-option:hover {
  border-color: rgba(255, 164, 108, 0.5);
  background: rgba(26, 34, 56, 0.9);
}

.source-filter-option-all {
  border-color: rgba(255, 138, 43, 0.5);
  background: rgba(255, 118, 36, 0.2);
}

.source-filter-option input {
  width: 17px;
  height: 17px;
  accent-color: #ff8a2b;
  cursor: pointer;
}

.source-filter-option span {
  font-size: 13px;
  font-weight: 600;
  color: #eef1ff;
}

.source-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.source-filter-selected-inline {
  font-size: 12px;
  color: rgba(240, 227, 210, 0.86);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68%;
}

.source-filter-btn {
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(16, 21, 35, 0.9);
  color: #e8edff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.source-filter-btn:hover {
  border-color: rgba(255, 164, 108, 0.6);
  background: rgba(26, 34, 56, 0.95);
}

.source-filter-hint {
  font-size: 11px;
  color: rgba(218, 227, 255, 0.72);
  padding: 8px 6px;
}

.source-filter-chevron {
  color: rgba(218, 227, 255, 0.86);
  transition: transform 0.2s ease;
}

.source-filter-toggle.is-open .source-filter-chevron {
  transform: rotate(180deg);
}

.category-panel {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(250px, 360px) max-content 1fr;
  gap: 12px 14px;
  align-items: end;
}

.category-panel .category-title {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.category-panel .filters {
  grid-column: 1;
  display: block;
}

.category-panel .sorter {
  grid-column: 2;
}

.category-panel .search {
  grid-column: 3;
  min-width: 0;
}

.category-panel .search input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(16, 21, 35, 0.9);
  color: var(--ink);
  font-weight: 600;
}

.category-panel .search input::placeholder {
  color: rgba(218, 227, 255, 0.68);
}

.category-panel .source-filter-combo {
  position: relative;
  z-index: 30;
}

 .filter-btn {
   padding: 8px 14px;
   border-radius: 999px;
   border: 1px solid rgba(255, 255, 255, 0.2);
   background: rgba(16, 20, 34, 0.75);
   font-weight: 600;
   color: var(--ink);
   cursor: pointer;
   transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
   backdrop-filter: blur(10px);
 }

 .filter-btn.active {
   background: rgba(255, 118, 36, 0.28);
   border-color: rgba(255, 118, 36, 0.6);
   box-shadow: 0 12px 24px rgba(255, 118, 36, 0.25);
 }

 .filter-btn:hover {
   border-color: rgba(255, 156, 72, 0.65);
   transform: translateY(-1px);
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
   background: rgba(24, 30, 48, 0.85);
 }

 .filters-block.hidden {
   display: none;
 }

 .search {
   display: flex;
   gap: 12px;
   align-items: center;
   flex-wrap: wrap;
 }

 .sorter {
   display: flex;
   align-items: center;
   gap: 10px;
   flex-wrap: wrap;
 }

 .sorter label {
   font-size: 12px;
   text-transform: uppercase;
   letter-spacing: 0.16em;
   color: var(--muted-strong);
 }

 .sorter select {
   appearance: none;
   -webkit-appearance: none;
   color-scheme: dark;
   padding: 10px 40px 10px 16px;
   border-radius: 12px;
   border: 1px solid rgba(255, 255, 255, 0.2);
   background: rgba(20, 26, 44, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff8a2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E") no-repeat right 12px center;
   color: var(--ink);
   font-weight: 600;
   min-width: 195px;
   cursor: pointer;
   transition: all 0.2s ease;
   backdrop-filter: blur(8px);
 }

 .sorter select:hover {
   border-color: rgba(255, 118, 36, 0.6);
   background-color: rgba(30, 38, 58, 0.85);
   box-shadow: 0 0 15px rgba(255, 118, 36, 0.2);
 }

 .sorter select option {
   background: #1a1f33;
   color: white;
   font-family: "Manrope", "Trebuchet MS", sans-serif;
   font-weight: 600;
 }

.sort-select {
  position: relative;
  min-width: 195px;
}

.sort-select-trigger {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(16, 21, 35, 0.9);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sort-select-trigger:hover {
  border-color: rgba(255, 138, 43, 0.6);
  background: rgba(22, 30, 50, 0.95);
}

.sort-select-chevron {
  color: var(--accent-2);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.sort-select.is-open .sort-select-chevron {
  transform: rotate(180deg);
}

.sort-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  background: rgba(10, 14, 25, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
  z-index: 2200;
  overflow: hidden;
}

.sort-select.is-open .sort-select-menu {
  display: flex;
}

.sort-select-option {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
}

.sort-select-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sort-select-option.is-active {
  background: rgba(255, 118, 36, 0.22);
  color: #fff2e6;
}

 .search input {
   flex: 1;
   padding: 12px 16px;
   border-radius: 12px;
   border: 1px solid rgba(255, 255, 255, 0.4);
   background: #f5f7ff;
   color: #171b2a;
   font-size: 15px;
   min-width: 220px;
 }

 .search input::placeholder {
   color: rgba(35, 38, 56, 0.6);
 }

 .refresh {
   padding: 12px 16px;
   border-radius: 12px;
   border: 1px solid rgba(255, 255, 255, 0.18);
   background: #2b344f;
   color: white;
   font-weight: 600;
   cursor: pointer;
   box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
   transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
 }

 .refresh:hover {
   background: #3a4768;
   transform: translateY(-1px);
 }

 #updateBtn {
   background: #ff6b1a;
   color: #0b0b0b;
   border-color: rgba(255, 107, 26, 0.55);
   display: inline-flex;
   align-items: center;
   gap: 6px;
   height: 32px;
   padding: 0 12px;
   min-width: auto;
 }

 .topbar-update {
   padding: 4px 12px;
   border-radius: 14px;
   box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
   font-size: 13px;
   font-weight: 600;
   letter-spacing: 0.02em;
   text-transform: none;
   min-width: 0;
   transition: transform 0.15s ease, opacity 0.15s ease;
   line-height: 1;
 }

 #updateBtn:hover {
   background: #ff7d2f;
 }

 #logBtn {
   background: #3a3f59;
 }

 .actions {
   margin-top: 14px;
   display: flex;
   gap: 10px;
   flex-wrap: wrap;
 }

 .btn {
   padding: 10px 16px;
   border-radius: 999px;
   border: 1px solid rgba(255, 255, 255, 0.18);
   background: #2b344f;
   color: white;
   font-weight: 600;
   text-decoration: none;
   cursor: pointer;
   transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
 }

 .btn:hover {
   background: #3a4768;
   transform: translateY(-1px);
 }

 .btn.primary {
   background: #ff6b1a;
   color: #0b0b0b;
   border-color: rgba(255, 107, 26, 0.55);
 }

 .toggle-btn {
   padding: 10px 16px;
   border-radius: 999px;
   border: 1px solid rgba(255, 255, 255, 0.18);
   background: rgba(16, 20, 34, 0.55);
   color: var(--ink);
   font-weight: 600;
   cursor: pointer;
   transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
 }

 .toggle-btn.active {
   border-color: rgba(255, 156, 72, 0.65);
   background: rgba(255, 118, 36, 0.22);
   color: #fff2e6;
 }

 .panel {
   background: var(--glass);
   border-radius: 20px;
   border: 1px solid rgba(255, 255, 255, 0.08);
   box-shadow: var(--shadow);
   padding: 16px;
   display: grid;
   gap: 12px;
 }

 main {
   padding: 0 7vw 48px;
   position: relative;
   z-index: 1;
 }

 header {
   position: relative;
   z-index: 4;
 }

 .grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 20px;
 }

 .grid.is-rendering .card {
   animation: none;
   transition: none;
 }

 .pager {
   margin: 12px 0 24px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   flex-wrap: wrap;
   color: var(--muted);
   font-size: 13px;
 }

 .pager-controls {
   display: flex;
   gap: 8px;
   flex-wrap: wrap;
 }

 .pager-btn {
   padding: 8px 12px;
   border-radius: 999px;
   border: 1px solid rgba(255, 255, 255, 0.16);
   background: rgba(18, 22, 34, 0.6);
   color: var(--ink);
   cursor: pointer;
   font-weight: 600;
 }

 .pager-btn.active {
   background: rgba(255, 118, 36, 0.25);
   border-color: rgba(255, 118, 36, 0.55);
 }

 .card {
   background: var(--glass-strong);
   border-radius: var(--radius);
   padding: 18px 20px 18px;
   border: 1px solid rgba(255, 255, 255, 0.1);
   box-shadow: var(--shadow);
   display: flex;
   flex-direction: column;
   gap: 12px;
   min-height: 220px;
   position: relative;
   overflow: hidden;
   animation: lift 0.5s ease both;
   backdrop-filter: blur(14px);
   transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
   cursor: pointer;
 }

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 118, 36, 0.6), rgba(255, 156, 72, 0.55), rgba(255, 187, 110, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.2;
  transition: opacity 0.25s ease, filter 0.25s ease;
  pointer-events: none;
}

 .card::after {
   content: "";
   position: absolute;
   inset: 0;
   background: radial-gradient(180px 120px at 15% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
   opacity: 0;
   transition: opacity 0.25s ease;
   pointer-events: none;
 }

 .card:hover {
   transform: translateY(-8px) scale(1.01);
   box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
   border-color: rgba(255, 255, 255, 0.18);
 }

.card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 94, 20, 0.9), rgba(255, 138, 43, 0.85), rgba(255, 202, 138, 0.85));
  filter: drop-shadow(0 0 16px rgba(255, 118, 36, 0.45));
}

 .card:hover::after {
   opacity: 1;
 }

 @media (hover: none) {
   .card:hover {
     transform: none;
     box-shadow: var(--shadow);
   }

   .card:hover::before,
   .card:hover::after {
     opacity: 0;
   }
 }

 .card-next {
   justify-content: center;
   align-items: center;
   text-align: center;
   gap: 16px;
 }

 .card-next h3 {
   font-size: 20px;
 }

 .next-btn {
   padding: 10px 18px;
   border-radius: 999px;
   border: 1px solid rgba(255, 255, 255, 0.2);
   background: rgba(18, 22, 34, 0.7);
   color: var(--ink);
   font-weight: 600;
   cursor: pointer;
   min-width: 220px;
 }

 .card-next .next-btn+.next-btn {
   margin-top: 10px;
 }

 .card h3 {
   margin: 0;
   font-size: 19px;
   line-height: 1.3;
 }

 .card a {
   color: inherit;
   text-decoration: none;
 }

 .card-top {
   display: flex;
   justify-content: space-between;
   gap: 8px;
   align-items: center;
 }

 .meta {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
   font-size: 12px;
   color: var(--muted-strong);
 }

 .chip {
   background: rgba(255, 255, 255, 0.12);
   color: rgba(231, 235, 255, 0.86);
   padding: 4px 10px;
   border-radius: 999px;
   font-weight: 600;
 }

 .chip.alt {
   background: rgba(255, 156, 72, 0.2);
   color: #ffe7d2;
 }

 .chip.alt-2 {
   background: rgba(255, 179, 71, 0.18);
   color: rgba(255, 227, 186, 0.95);
 }

 .chip.metric {
   background: rgba(255, 118, 36, 0.24);
   color: #fff0e2;
 }

 .chip.metric-warm {
   background: rgba(255, 111, 107, 0.22);
   color: rgba(255, 214, 212, 0.95);
 }

 .chip.metric-hot {
   background: rgba(255, 79, 177, 0.22);
   color: rgba(255, 210, 235, 0.98);
 }

 .chip-icon,
 .filter-btn .btn-icon {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   margin-right: 6px;
 }

 .chip-icon img,
 .filter-btn .btn-icon img {
   width: 16px;
   height: 16px;
   border-radius: 4px;
 }

 .platform-btn {
   display: inline-flex;
   align-items: center;
   gap: 6px;
 }

 .platform-btn .btn-label {
   white-space: nowrap;
 }

 .summary {
   color: #eef2ff;
   font-size: 14px;
   line-height: 1.5;
   flex: 1;
 }

 .footer {
   font-size: 12px;
   color: var(--muted-strong);
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 12px;
 }

 .log-output {
   margin-top: 12px;
   padding: 12px 14px;
   border-radius: 12px;
   background: rgba(8, 10, 16, 0.8);
   color: #f4f4f4;
   font-size: 12px;
   line-height: 1.5;
   max-height: 240px;
   overflow: auto;
   white-space: pre-wrap;
 }

 @keyframes lift {
   from {
     transform: translateY(12px);
     opacity: 0;
   }

   to {
     transform: translateY(0);
     opacity: 1;
   }
 }

 @media (max-width: 720px) {
   .page {
     padding-left: 0;
   }

   .topbar-menu {
     display: inline-flex;
   }

   .sidebar {
     width: min(320px, 86vw);
     transform: translateX(-105%);
   }

   body.sidebar-open .sidebar {
     transform: translateX(0);
   }

   body.sidebar-open .page {
     transform: none;
   }

   .sidebar:hover {
     width: min(320px, 86vw);
   }

   .sidebar.collapsed .sidebar-label,
   .sidebar:hover .sidebar-label {
     opacity: 1;
     transform: translateX(0);
     pointer-events: auto;
     display: inline-block !important;
   }

   .sidebar.collapsed .sidebar-item {
     display: flex;
     flex-direction: row;
     align-items: center;
     justify-content: flex-start;
     gap: 12px;
     width: 100%;
     height: auto;
     padding: 12px 16px;
     margin: 0;
     background: rgba(255, 255, 255, 0.03);
     border: 1px solid rgba(255, 255, 255, 0.06);
   }

   .sidebar-inner {
     padding: 16px;
   }

   header,
   main {
     padding-left: 5vw;
     padding-right: 5vw;
   }

   .topbar {
     padding: 0 12px;
   }

   .topbar-subtitle {
     display: none !important;
   }

   .topbar-update .btn-label {
     display: none !important;
   }

   .live-text {
     display: none !important;
   }

   .live-short {
     display: inline-block !important;
   }

   .brand-badge {
     width: 30px !important;
     height: 30px !important;
   }

   .topbar-title-text {
     font-size: 14px !important;
   }

   .topbar-left {
     gap: 6px !important;
   }

   .toolbar {
     padding: 14px;
   }

   .filters {
     flex-wrap: nowrap;
     overflow-x: auto;
     padding-bottom: 4px;
   }

   .source-filter-shell {
     min-width: 100%;
   }

  .source-filter-top {
    flex-direction: column;
    align-items: stretch;
  }

  .category-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .category-panel .filters,
  .category-panel .sorter,
  .category-panel .search {
    grid-column: 1;
  }

  .source-filter-options {
    max-height: min(52vh, 320px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .source-filter-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    z-index: auto;
  }

   #platformFilters .platform-btn .btn-label {
     display: none;
   }

   #platformFilters .platform-btn {
     padding: 8px 10px;
   }

   .search {
     flex-direction: column;
     align-items: stretch;
   }

   .refresh {
     width: 100%;
   }


   .grid {
     grid-template-columns: 1fr;
   }

   .card {
     min-height: auto;
   }

   .pager {
     flex-direction: column;
     align-items: flex-start;
   }
 }

 /* Sidebar overrides to keep collapsed state clean */
 .sidebar .sidebar-title {
   display: none !important;
 }

 .sidebar .sidebar-header {
   display: none !important;
 }

 .sidebar-item .item-icon {
   margin: 0;
 }

 .sidebar.collapsed .sidebar-item {
   display: flex;
   align-items: center;
   justify-content: flex-start;
   gap: 10px;
   width: 44px;
   height: 44px;
   padding: 0 12px;
   background: transparent;
   border: 1px solid transparent;
   text-align: left;
   margin: 0;
 }

 /* No mobile, forçamos a largura total e mostramos os labels */
 @media (max-width: 720px) {
   .sidebar-inner {
     padding: 12px !important;
     align-items: stretch !important;
   }

   .sidebar.collapsed .sidebar-item {
     width: 100% !important;
     height: auto !important;
     padding: 12px !important;
     margin: 4px 0 !important;
     justify-content: flex-start !important;
     background: rgba(255, 255, 255, 0.03) !important;
     border: 1px solid rgba(255, 255, 255, 0.06) !important;
     display: flex !important;
     align-items: center !important;
   }

   .sidebar.collapsed .sidebar-label {
     display: block !important;
     opacity: 1 !important;
     transform: none !important;
     pointer-events: auto !important;
     text-align: left !important;
     flex: 1 !important;
   }

  .sidebar .item-icon {
    margin: 0 !important;
  }

  .sidebar.collapsed .sidebar-separator {
    display: block !important;
  }

  .sidebar.collapsed .sidebar-section-title {
    display: none !important;
  }
 }

 .sidebar.collapsed .sidebar-item.active {
   background: transparent;
   border-color: rgba(255, 118, 36, 0.45);
 }

 .sidebar.collapsed .sidebar-item:hover {
   background: rgba(255, 142, 64, 0.14);
   border-color: rgba(255, 142, 64, 0.45);
 }

 .sidebar .sidebar-group-title,
 .sidebar .sidebar-title,
 .sidebar .sidebar-header,
 .sidebar .sidebar-close {
   display: none !important;
 }

.sidebar .item-icon {
  width: 22px !important;
  height: 22px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 20px !important;
  line-height: 1 !important;
  color: #eef1ff !important;
}

.sidebar-separator {
  height: 1px;
  margin: 8px 6px 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 133, 56, 0.55), rgba(255, 255, 255, 0.06));
}

.sidebar-section-title {
  padding: 0 8px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220, 224, 255, 0.68);
}

.sidebar.collapsed .sidebar-separator,
.sidebar.collapsed .sidebar-section-title {
  display: none !important;
}

.sidebar.collapsed .sidebar-separator {
  display: block !important;
}

.sidebar.collapsed .sidebar-section-title {
  display: none !important;
}

.sidebar:hover .sidebar-separator,
.sidebar:hover .sidebar-section-title {
  display: block;
}

.sidebar.collapsed .sidebar-section-title {
  display: none !important;
}

body.sidebar-open .sidebar .sidebar-separator,
body.sidebar-open .sidebar .sidebar-section-title {
  display: block !important;
}

  /* Interactive Topics (v13.5) */
  .topic-card.interactive {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 16px !important;
    margin-bottom: 12px;
  }

  .topic-card.interactive:hover {
    border-color: rgba(255, 118, 36, 0.45);
    background: rgba(26, 20, 14, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  }

  .topic-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .topic-main h3 {
    margin: 0 !important;
    font-size: 1.1rem !important;
    color: var(--ink);
    flex: 1;
    text-align: left;
  }

  .chevron {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .topic-card.expanded .chevron {
    transform: rotate(180deg);
  }

  .topic-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: topicExpand 0.3s ease-out forwards;
    width: 100%;
  }

  .topic-articles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
    text-align: left;
  }

  .topic-article-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
  }

  .topic-article-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-2);
    transform: translateX(6px);
  }

  .article-source-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-2);
    font-weight: 800;
    margin-bottom: 2px;
    display: block;
  }

  .article-title {
    font-size: 13.5px;
    color: #ffffff;
    line-height: 1.4;
    font-weight: 500;
  }

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

  .topic-articles-list::-webkit-scrollbar {
    width: 4px;
  }

  .topic-articles-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

.hidden { display: none !important; }

.topbar-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 138, 43, 0.9);
  background: linear-gradient(180deg, #ff8a2b, #ff6b1a);
  color: #1a1009;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 107, 26, 0.35);
}

.topbar-search-link:hover {
  filter: brightness(1.08);
}

.topbar-search-icon {
  font-size: 16px;
  line-height: 1;
}

.topbar-search-slot {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
}

.topbar-left .topbar-live {
  margin-left: 6px;
}

.search-controls {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(160px, 220px);
  gap: 10px;
  align-items: end;
}

.search-controls .search-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-panel {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.search-panel .category-title,
.search-panel .search-controls,
.search-panel .subtitle {
  grid-column: 1 / -1;
}

.search-panel .source-filter-top {
  display: none;
}

.search-panel #searchStatus {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(235, 224, 210, 0.74);
}

.search-panel #searchInput {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(16, 21, 35, 0.92);
  color: var(--ink);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}

.search-panel #searchInput::placeholder {
  color: rgba(218, 227, 255, 0.68);
}

.search-filter-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-strong);
  font-weight: 700;
  padding: 0 2px 2px;
}

.search-filter-block {
  display: grid;
  gap: 8px;
}

.search-filter-host {
  width: 100%;
}

.search-sort-block .search-select {
  width: 100%;
}

.search-sort-block .sort-select {
  width: 100%;
  min-width: 0;
}

.search-filter-host .source-filter-option input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  flex: 0 0 17px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: #ff8a2b;
}

.search-select {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(16, 21, 35, 0.92);
  color: var(--ink);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .topbar-search-slot {
    margin-left: 0;
    padding-left: 8px;
  }

  .search-controls {
    grid-template-columns: 1fr;
  }

  .search-controls .search-main {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  overflow: hidden;
}

.sidebar-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) rgba(10, 14, 24, 0.55);
}

.sidebar-inner::-webkit-scrollbar {
  width: 8px;
}

.sidebar-inner::-webkit-scrollbar-track {
  background: rgba(10, 14, 24, 0.45);
  border-radius: 999px;
}

.sidebar-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 2px solid rgba(10, 14, 24, 0.45);
}

.sidebar-inner:hover {
  scrollbar-color: rgba(255, 255, 255, 0.16) rgba(10, 14, 24, 0.65);
}

.sidebar-inner:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
}

.sidebar.collapsed .sidebar-inner {
  padding-right: 6px;
}


  .more-indicator {
    padding: 10px;
    font-size: 11px;
    color: var(--muted-strong);
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    margin-top: 5px;
  }

.feedback-widget {
  position: fixed;
  left: auto !important;
  top: auto !important;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.feedback-fab {
  border: 1px solid rgba(255, 159, 90, 0.68);
  background: linear-gradient(135deg, rgba(255, 110, 35, 0.95), rgba(255, 143, 52, 0.94));
  color: #16110c;
  border-radius: 999px;
  width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  justify-content: center;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease;
}

.feedback-fab:hover {
  filter: brightness(1.05);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.feedback-fab:active {
  transform: translateY(0) scale(0.95);
}

.feedback-fab::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 189, 128, 0.58);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.feedback-fab:hover::before {
  opacity: 1;
  transform: scale(1);
}

.feedback-fab-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedback-fab-icon-svg {
  width: 100%;
  height: 100%;
  fill: #1b130d;
}

.feedback-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(360px, calc(100vw - 24px));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(8, 10, 16, 0.95);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.52);
  padding: 14px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.feedback-widget.is-open .feedback-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.feedback-widget.is-open .feedback-fab {
  animation: feedback-fab-pop 0.28s cubic-bezier(0.18, 0.9, 0.2, 1);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.52), inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.feedback-widget.is-open .feedback-fab::before {
  opacity: 1;
  transform: scale(1.06);
}

.feedback-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.feedback-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.feedback-close {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border-radius: 10px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.feedback-form {
  display: grid;
  gap: 8px;
}

.feedback-form label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-weight: 700;
}

.feedback-form input[type="email"],
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(14, 18, 29, 0.9);
  color: var(--ink);
  padding: 10px 11px;
  font-family: inherit;
  font-size: 14px;
}

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

.feedback-stars {
  display: inline-flex;
  gap: 6px;
}

.feedback-star {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.feedback-star.is-active {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.72);
  background: rgba(255, 209, 102, 0.14);
}

.feedback-submit {
  margin-top: 4px;
  border: 1px solid rgba(255, 159, 90, 0.68);
  background: linear-gradient(135deg, rgba(255, 110, 35, 0.95), rgba(255, 143, 52, 0.94));
  color: #1b130d;
  border-radius: 12px;
  min-height: 42px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.feedback-submit:disabled {
  opacity: 0.64;
  cursor: default;
}

.feedback-status {
  margin: 0;
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
}

.feedback-status.is-success {
  color: #7ff0a7;
}

.feedback-status.is-error {
  color: #ff9a8f;
}

@keyframes feedback-fab-pop {
  0% {
    transform: scale(0.9);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-fab,
  .feedback-fab::before,
  .feedback-panel {
    transition: none;
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .feedback-widget {
    left: auto !important;
    top: auto !important;
    right: 10px;
    bottom: 10px;
  }

  .feedback-fab {
    width: 46px;
    height: 46px;
    min-height: 46px;
  }
}

.global-site-footer {
  width: 100%;
  margin-top: auto;
  padding: 14px 16px;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  color: rgba(244, 232, 220, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(18, 15, 12, 0.36), rgba(9, 8, 7, 0.62));
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.global-site-footer.is-pending {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

@media (max-width: 720px) {
  .global-site-footer {
    margin-top: auto;
    padding: 12px 10px;
    font-size: 12px;
  }
}


