/* ==========================================================================
   DARKSOFT — SWISS LUXURY SPLIT CONVEYOR PORTAL
   Aesthetic: Golden Suisse inspired matte black, razor-thin center line,
   minimalist geometric compass logo, ultra-fluid conveyor transitions.
   ========================================================================== */

:root {
  --bg-black: #000000;
  --bg-left: #000000;
  --bg-right: #000000;
  --bg-card: #0e0e12;
  --bg-card-hover: #16161c;
  --bg-card-active: #1e1e26;

  --line-color: rgba(255, 255, 255, 0.08);
  --line-faint: rgba(255, 255, 255, 0.035);
  --line-hover: rgba(255, 255, 255, 0.3);
  --line-active: #ffffff;

  --text-white: #ffffff;
  --text-primary: #ececef;
  --text-secondary: #888892;
  --text-muted: #52525a;

  --btn-white: #ffffff;
  --btn-white-text: #000000;

  --font-main: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --ease-swiss: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-conveyor: 0.45s;
}

/* --------------------------------------------------------------------------
   BASE & RESET
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-main);
  user-select: none;
}

/* Global button reset to eliminate default browser button rectangles */
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Main Viewport Split 50% / 50% */
.portal-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background-color: var(--bg-black);
}

/* --------------------------------------------------------------------------
   THE CENTER UNBROKEN FULL-HEIGHT DIVIDER (To'liq o'rtadagi chiziq)
   -------------------------------------------------------------------------- */
.center-hairline-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line-color);
  z-index: 50;
}

/* --------------------------------------------------------------------------
   SPLIT 50/50 PANELS (Full Height)
   -------------------------------------------------------------------------- */
.panel-conveyor-left,
.panel-conveyor-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* LEFT PANEL (50%) */
.panel-conveyor-left {
  left: 0;
  background-color: var(--bg-left);
  padding: 38px 48px 30px 48px;
  justify-content: space-between;
}

/* RIGHT PANEL (50%) */
.panel-conveyor-right {
  right: 0;
  background-color: var(--bg-right);
  padding: 80px 52px 30px 48px;
  justify-content: space-between;
}

/* Left panel top brand & breadcrumbs */
.left-top-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name span.brand-reg {
  font-size: 13px;
  opacity: 0.5;
}

/* Left panel bottom copyright */
.left-bottom-footer {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  margin-top: 16px;
  flex-shrink: 0;
}

/* Main panel scrollable inner bodies */
.panel-inner-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
}

/* --------------------------------------------------------------------------
   LEVEL 1: RIGHT PANEL — 4D TESSERACT HYPERCUBE (Fazaviy Kristall Simmetriya)
   -------------------------------------------------------------------------- */
.logo-only-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  margin-top: -24px;
}

#tesseract-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   LEVEL 1: PLATFORMLAR MENUSI (Boshlang'ich chap menyu)
   -------------------------------------------------------------------------- */
.platform-list-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.platform-items-scroll {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: 80vh;
  padding-right: 6px;
}

.platform-btn-large {
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-radius: 16px;
  transition: all 0.28s var(--ease-swiss);
  position: relative;
}

.platform-btn-large:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.platform-btn-large.active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.platform-btn-large::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 38px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-swiss);
}

.platform-btn-large.active::before {
  transform: translateY(-50%) scaleY(1);
}

.platform-name-wrap {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.platform-index {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.platform-btn-large.active .platform-index {
  color: var(--text-secondary);
}

.platform-big-text {
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  line-height: 1.05;
}

.platform-btn-large:hover .platform-big-text,
.platform-btn-large.active .platform-big-text {
  color: var(--text-white);
}


.platform-chevron {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.platform-btn-large:hover .platform-chevron {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-white);
}

.platform-btn-large.active .platform-chevron {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: scale(1.06);
}

/* Elevated Golden Suisse Right Panel Card */
/* --------------------------------------------------------------------------
   CLEAN UNBOXED MENU STYLES (Toifalar va Dasturlar uchun toza menyu uslubi)
   Hech qanday og'ir to'rtburchak boxlarsiz, sof pitch-black fonga moslangan
   -------------------------------------------------------------------------- */

/* Panel Navigation Header (Back button + Stage indicator) */
.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-faint);
  flex-shrink: 0;
}

/* Minimalist Swiss Back Navigation Button (No boxes, no borders) */
.btn-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  padding: 4px 8px 4px 0;
  border-radius: 6px;
  transition: all 0.22s var(--ease-swiss);
  -webkit-appearance: none;
  appearance: none;
}

.btn-nav-back svg {
  stroke: var(--text-muted);
  transition: all 0.22s var(--ease-swiss);
  flex-shrink: 0;
}

.btn-nav-back:hover {
  color: var(--text-white);
}

.btn-nav-back:hover svg {
  stroke: var(--text-white);
  transform: translateX(-4px);
}

.conveyor-stage-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: conveyorSlideInRight 0.38s var(--ease-swiss) forwards;
  padding: 10px 0;
}

.menu-stage-header {
  margin-bottom: 28px;
  flex-shrink: 0;
}

.menu-stage-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.menu-stage-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: -0.1px;
}

/* Category Menu Items List (Unboxed, pure Swiss typography) */
.category-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  padding-right: 6px;
}

.category-menu-item {
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: all 0.25s var(--ease-swiss);
  position: relative;
}

.category-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(6px);
}

.category-menu-item.active {
  background: rgba(255, 255, 255, 0.07);
}

.category-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 32px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-swiss);
}

.category-menu-item.active::before {
  transform: translateY(-50%) scaleY(1);
}

.cat-menu-left {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.cat-menu-index {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.category-menu-item.active .cat-menu-index {
  color: var(--text-secondary);
}

.cat-menu-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cat-menu-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  line-height: 1.1;
}

.category-menu-item:hover .cat-menu-title,
.category-menu-item.active .cat-menu-title {
  color: var(--text-white);
}

.cat-menu-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.cat-menu-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cat-menu-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.category-menu-item.active .cat-menu-badge {
  color: var(--text-secondary);
}

.cat-menu-chevron {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.category-menu-item:hover .cat-menu-chevron {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-white);
}

.category-menu-item.active .cat-menu-chevron {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: scale(1.06);
}

/* Software Menu Items (Unboxed, sleek list) */
.software-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  padding-right: 6px;
}

.software-menu-item {
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: all 0.25s var(--ease-swiss);
  position: relative;
}

.software-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(5px);
}

.software-menu-item.active {
  background: rgba(255, 255, 255, 0.07);
}

.software-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 28px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-swiss);
}

.software-menu-item.active::before {
  transform: translateY(-50%) scaleY(1);
}

.soft-menu-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.soft-menu-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.soft-menu-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.software-menu-item:hover .soft-menu-title,
.software-menu-item.active .soft-menu-title {
  color: var(--text-white);
}

.soft-menu-ver {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--line-color);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.software-menu-item.active .soft-menu-ver {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.soft-menu-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soft-menu-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.soft-menu-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.software-menu-item:hover .soft-menu-chevron {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-white);
}

.software-menu-item.active .soft-menu-chevron {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   LEVEL 3: O'NG PANEL — DASTUR TAHRIRI VA YUKLAB OLISH (Golden Suisse style)
   -------------------------------------------------------------------------- */
.software-detail-view {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
  animation: conveyorSlideInRight 0.35s var(--ease-swiss) forwards;
}

.detail-badge-pill {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  border: 1px solid var(--line-color);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.detail-app-title {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 12px;
}

.detail-app-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 24px;
}

.detail-features-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.detail-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-primary);
}

.feature-dash {
  width: 14px;
  height: 1px;
  background: var(--text-secondary);
}

.detail-specs-table {
  border-top: 1px solid var(--line-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.spec-key {
  color: var(--text-muted);
}

.spec-val {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}



/* ==========================================================================
   LEVEL 3: IDEAL SWISS DOWNLOAD ACTION (Sof, soyasiz, ixcham va nafis)
   ========================================================================== */
.detail-download-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line-faint);
  margin-top: 20px;
  gap: 16px;
}

.btn-download-premium {
  height: 44px;
  padding: 0 20px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  font-family: var(--font-main);
  box-shadow: none !important;
  transition: background-color 0.18s ease;
  flex-shrink: 0;
}

.btn-download-premium:hover {
  background: #e4e4e7;
  box-shadow: none !important;
  transform: none !important;
}

.btn-download-premium:active {
  background: #d4d4d8;
}

.btn-dl-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dl-icon {
  stroke: #000000;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dl-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000000;
}

.btn-dl-right {
  display: flex;
  align-items: center;
}

.dl-size-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.08);
  color: #000000;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Loading & Success States (Oddiy, tekis, soyasiz) */
.btn-download-premium.loading {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--line-faint);
  pointer-events: none;
}

.btn-download-premium.loading .btn-dl-left,
.btn-download-premium.loading .btn-dl-right {
  display: none;
}

.btn-spinner {
  animation: spinBtn 0.75s linear infinite;
  stroke: #ffffff;
  width: 15px;
  height: 15px;
}

@keyframes spinBtn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-download-premium.success {
  background: #10b981;
  color: #ffffff;
  pointer-events: none;
}

.btn-download-premium.success .btn-dl-left,
.btn-download-premium.success .btn-dl-right {
  display: none;
}

/* Download Metadata Row (O'ng tomondagi nafis statistika) */
.download-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.dl-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dl-stat-label {
  color: var(--text-muted);
  font-size: 11px;
}

.dl-stat-value {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.dl-stat-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 11px;
}

.dl-stat-verified svg {
  stroke: var(--text-secondary);
}

/* Toast Message */
.toast-bar {
  position: fixed;
  bottom: 24px;
  right: 32px;
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.toast-bar.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   SEARCH TRIGGER BUTTON & MODAL (Menu tepasidagi faqat Lupa & Qidiruv Oynasi)
   -------------------------------------------------------------------------- */
.platform-menu-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding-right: 6px;
  flex-shrink: 0;
}

/* Top Right Standalone Lupa - Sof ramkasiz Lupa ikonasi */
.top-right-lupa {
  position: fixed;
  top: 36px;
  right: 46px;
  z-index: 95;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  outline: none;
  border-radius: 0 !important;
  transition: color 0.2s var(--ease-swiss), transform 0.2s var(--ease-swiss);
}

.top-right-lupa svg {
  stroke: currentColor;
  transition: stroke 0.2s var(--ease-swiss);
}

.top-right-lupa:hover {
  color: #ffffff;
  transform: scale(1.15);
}

/* Modal Backdrop */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease-swiss);
}

.search-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Container - Ancha kattaroq va hashamatli */
.search-modal-container {
  width: 92%;
  max-width: 860px;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.98), 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.24s var(--ease-swiss);
  display: flex;
  flex-direction: column;
}

.search-modal-backdrop.open .search-modal-container {
  transform: translateY(0) scale(1);
}

/* Input Area */
.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 22px 28px;
  gap: 18px;
  border-bottom: 1px solid var(--line-faint);
}

.search-input-icon {
  stroke: var(--text-secondary);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.search-input-field::placeholder {
  color: var(--text-muted);
}

.search-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-close-btn kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.search-close-btn:hover kbd {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Search Results */
.search-results-list {
  max-height: 520px;
  overflow-y: auto;
  padding: 12px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  width: 100%;
}

.search-result-item:hover,
.search-result-item.selected {
  background: rgba(255, 255, 255, 0.065);
}

.search-res-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-res-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.search-res-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 540px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.search-res-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--line-faint);
}

.search-res-size {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.search-no-results {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   ULTRA FLUID CONVEYOR SLIDE ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes conveyorSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(24px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes conveyorSlideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-24px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.anim-slide-left {
  animation: conveyorSlideInLeft 0.38s var(--ease-swiss) forwards;
}

.anim-slide-right {
  animation: conveyorSlideInRight 0.38s var(--ease-swiss) forwards;
}

/* Responsive */
@media (max-width: 860px) {
  .center-hairline-divider {
    display: none;
  }

  .portal-viewport {
    flex-direction: column;
    overflow-y: auto;
  }

  .panel-conveyor-left,
  .panel-conveyor-right {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    padding: 24px;
  }
}