/* FlyHigh — sidebar ko‘rinishi */

html body {
  --fh-nav-cream: #faead2;
  --fh-nav-muted: #cbbfae;
}

/* ASOSIY SIDEBAR */

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta {
  background:
    radial-gradient(
      ellipse at 0% 0%,
      #245ca742,
      transparent 58%
    ),
    linear-gradient(
      165deg,
      #0b2d54 0%,
      #082342 55%,
      #061d37 100%
    ) !important;

  border: 1px solid #faead22b !important;
  border-radius: 26px !important;

  box-shadow:
    inset 0 1px 0 #ffffff12,
    inset 1px 0 0 #ffffff06,
    0 18px 44px #00112826 !important;

  scrollbar-width: none !important;
}

html body .app .sidebar.fh-sidebar-beta::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

@media (min-width: 701px) {
  html body.fh-desktop-fit .app {
    grid-template-columns:
      clamp(260px, 20vw, 290px)
      minmax(0, 1fr) !important;
  }

  html body .app .sidebar.fh-sidebar-beta {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* MATEMATIKA MAVZUSI */

html body[data-color-theme="matematika"]
:is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta {
  background:
    radial-gradient(
      ellipse at 77% 40%,
      #245ca7 0%,
      transparent 60%
    ),
    #062550 !important;

  border-color: #faead233 !important;

  box-shadow:
    inset 0 1px 0 #ffffff14,
    0 16px 40px #00112b26 !important;
}

/* MENYU VA SUZUVCHI TANLOV */

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-liquid-menu {
  position: relative;
  isolation: isolate;
  padding: 6px !important;
  gap: 5px !important;
  border: 0 !important;
  border-radius: 19px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-liquid-indicator {
  overflow: hidden;
  border: 1px solid #faead264 !important;
  border-radius: 14px !important;

  background:
    radial-gradient(
      ellipse at 12% 0%,
      #faead21a,
      transparent 68%
    ),
    linear-gradient(
      110deg,
      #214c77 0%,
      #153d67 55%,
      #103254 100%
    ) !important;

  box-shadow:
    inset 0 1px 0 #fff9ee26,
    inset 0 -1px 0 #00162d38,
    0 5px 14px #00112624 !important;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html body[data-color-theme="matematika"]
:is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-liquid-indicator {
  background:
    linear-gradient(
      115deg,
      #245ca7 0%,
      #164781 55%,
      #0b3263 100%
    ) !important;

  border-color: #faead27a !important;

  box-shadow:
    inset 0 1px 0 #fff9ee29,
    0 5px 16px #00112b30 !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-liquid-indicator::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27%;
  bottom: 27%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--fh-nav-cream);
  box-shadow: 2px 0 10px #faead235;
}

/* ASOSIY TUGMALAR */

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-liquid-menu >
:is(button[data-view], button[data-fh-section]) {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;

  width: 100% !important;
  min-width: 0;
  min-height: 42px;
  padding: 10px 13px !important;

  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;

  color: var(--fh-nav-cream) !important;
  -webkit-text-fill-color: currentColor !important;

  font-family: "Crimson Pro", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;

  transform: none !important;
  scale: 1 !important;
  filter: none !important;
  transition: color 220ms ease !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-liquid-menu >
:is(button[data-view], button[data-fh-section]) :is(span, strong) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  text-shadow: none !important;
  filter: none !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-liquid-menu >
:is(button[data-view], button[data-fh-section])
:is([data-fh-preview="true"], :focus-visible) {
  color: #fff5e5 !important;
}

/* Qolgan mavjud ikonkalar */
html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-liquid-menu svg.icon {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--fh-nav-cream) !important;
  stroke-width: 1.65;
  opacity: 0.78;
  transform: translateY(0);

  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(.22, 1, .36, 1) !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta [data-fh-preview="true"] svg.icon {
  opacity: 1;
  transform: translateY(-1px);
}

/* Bosh sahifa matni */
html body .app .sidebar.fh-sidebar-beta
.menu > button[data-view="home"] {
  gap: 9px !important;
  min-height: 46px !important;
  height: auto !important;
  padding: 10px 11px !important;
}

html body .app .sidebar.fh-sidebar-beta
.menu > button[data-view="home"] .fh-sidebar-label {
  flex: 1 1 auto !important;
  min-width: 0;
  white-space: nowrap !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
}

/* TEZ ORADA */

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-coming-group {
  margin-top: 9px !important;
  padding-top: 9px !important;
  border: 0 !important;
  border-top: 1px solid #faead21c !important;
  background: transparent !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-coming-group > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 13px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: var(--fh-nav-muted) !important;
  -webkit-text-fill-color: currentColor !important;
  box-shadow: none !important;

  transition:
    background-color 240ms ease,
    border-color 240ms ease !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-coming-group > summary :is(span, svg) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-coming-group > summary:hover {
  background: #faead208 !important;
  border-color: #faead221 !important;
}

/* SOZLAMALAR, YORDAM VA PROFIL */

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-sidebar-utility {
  padding-top: 12px !important;
  border: 0 !important;
  border-top: 1px solid #faead224 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-sidebar-profile {
  border: 1px solid #faead22e !important;
  border-radius: 17px !important;
  background: linear-gradient(120deg, #faead210, #ffffff03) !important;
  box-shadow: inset 0 1px 0 #ffffff08 !important;
  color: var(--fh-nav-cream) !important;

  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-sidebar-profile:hover {
  border-color: #faead25c !important;
  background-color: #faead209 !important;
  box-shadow: inset 0 1px 0 #ffffff12 !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-sidebar-profile
:is(span, strong, small, svg) {
  color: var(--fh-nav-cream) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-sidebar-profile small {
  opacity: 0.66;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta :is(button, summary):focus-visible {
  outline: 2px solid #faead2 !important;
  outline-offset: 3px;
}

/* DROPDOWN STRELKASI */

html body .app .sidebar.fh-sidebar-beta .fh-dashboard-arrow {
  display: grid !important;
  place-items: center;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 28px !important;
  margin-left: auto !important;
  border-radius: 9px;
  background: transparent !important;
  color: #faead2 !important;
  -webkit-text-fill-color: currentColor !important;
  transition: background-color 220ms ease;
}

html body .app .sidebar.fh-sidebar-beta .fh-dashboard-arrow:hover {
  background: #faead216 !important;
}

html body .app .sidebar.fh-sidebar-beta .fh-dashboard-arrow svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
}

html body .app .sidebar.fh-sidebar-beta
[data-view="home"][aria-expanded="true"] .fh-dashboard-arrow svg {
  transform: rotate(180deg);
}

/* DROPDOWN */

html body .app .sidebar.fh-sidebar-beta #fh-dashboard-submenu {
  display: grid !important;
  grid-template-rows: 0fr;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    grid-template-rows 460ms cubic-bezier(.22, 1, .36, 1),
    opacity 240ms ease,
    visibility 460ms;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#fh-dashboard-submenu > .fh-dashboard-clip {
  min-height: 0;
  overflow: hidden;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items {
  display: grid !important;
  gap: 4px !important;
  margin: 0 0 6px 21px !important;
  padding: 4px 0 4px 17px !important;
  border: 0 !important;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items > button {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  overflow: visible !important;

  width: 100% !important;
  height: auto !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 9px 10px !important;

  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  box-shadow: none !important;

  color: #faead2 !important;
  -webkit-text-fill-color: currentColor !important;

  font-family: "Crimson Pro", Georgia, serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-align: left;
  white-space: normal !important;

  transform: none !important;
  scale: 1 !important;

  transition:
    background-color 240ms ease,
    border-color 240ms ease !important;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items > button::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: -17px !important;
  top: -4px !important;
  bottom: -4px !important;
  width: 1px !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #faead23d !important;
  opacity: 1 !important;
  pointer-events: none;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items > button:last-child::before {
  bottom: 50% !important;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items > button::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: -17px !important;
  top: 0 !important;
  bottom: auto !important;
  width: 12px !important;
  height: 50% !important;
  border: 0 !important;
  border-left: 1px solid #faead23d !important;
  border-bottom: 1px solid #faead23d !important;
  border-radius: 0 0 0 10px !important;
  background: transparent !important;
  opacity: 1 !important;
  pointer-events: none;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items > button:hover {
  background: #faead20c !important;
  border-color: #faead22b !important;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items >
button:is([aria-current="page"], .fh-nav-selected) {
  background: #245ca75c !important;
  border-color: #faead250 !important;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu button .fh-sidebar-label {
  color: #faead2 !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  text-shadow: none !important;
  white-space: normal !important;
}

#fh-dashboard-submenu button > svg {
  display: none !important;
}

#fh-dashboard-submenu button:focus-visible {
  outline: 2px solid #faead2 !important;
  outline-offset: -2px;
}

/* ASOSIY TO‘RTTA IKONKA
   Bir xil joy, bir xil markaz.
   Ushbu qoida eski 20px qoidasidan ustun. */

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu > button > svg.fh-nav-icon {
  display: block;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 32px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  overflow: visible;

  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;

  fill: none !important;
  stroke: #faead2;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 1 !important;
  transform: none !important;
  scale: 1 !important;
  filter: none !important;
}

/* Uy, sertifikat va obuna konturlari */
.fh-nav-icon .fh-icon-base {
  fill: none;
  stroke: #faead2;
  stroke-width: 2.5;
  opacity: 0.85;
}

.fh-nav-icon .fh-icon-trace {
  fill: none;
  stroke: #fff9ee;
  stroke-width: 2.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  pointer-events: none;
}

.sidebar button:is(:hover, :focus-visible) .fh-icon-trace {
  animation:
    fh-house-outline-draw 1500ms
    cubic-bezier(.4, 0, .2, 1) 1 both;
}

@keyframes fh-house-outline-draw {
  0% {
    stroke-dashoffset: 100;
    opacity: 1;
  }

  82% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

/* Milliy sertifikat tafsilotlari */
.fh-ms-icon .fh-cert-fold {
  fill: #faead21c;
  stroke-width: 1.6;
}

.fh-ms-icon .fh-cert-heading {
  stroke-width: 1.9;
}

.fh-ms-icon .fh-cert-subheading {
  stroke-width: 1.6;
  opacity: 0.65;
}

.fh-ms-icon .fh-cert-ribbon {
  fill: #faead212;
  stroke-width: 1.2;
}

.fh-ms-icon .fh-cert-seal {
  fill: #faead2;
  stroke: #faead2;
  stroke-width: 1;
}

.fh-ms-icon .fh-cert-check {
  stroke: #062550;
  stroke-width: 1.3;
}

/* Obuna tafsilotlari */
.fh-subscription-icon .fh-crown-band {
  stroke-width: 1.6;
  opacity: 0.8;
}

.fh-subscription-icon .fh-crown-gem {
  fill: #faead2;
  stroke-width: 1;
}

/* Hamkorlik: mavjud qalinlik va animatsiya */
html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu > button > svg.fh-handshake {
  stroke-width: 3;
}

.fh-handshake path {
  fill: none;
}

.fh-handshake-base {
  opacity: 0.72;
}

.fh-handshake-trace {
  stroke: #fff9ee;
  pointer-events: none;
}

.fh-handshake-trace path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}

.sidebar button[data-view="partner"]:is(:hover, :focus-visible)
.fh-handshake-trace path {
  animation:
    fh-hand-bottom-up 180ms
    ease-out var(--fh-hand-delay, 0ms) 1 both;
}

@keyframes fh-hand-bottom-up {
  from {
    stroke-dashoffset: 100;
    opacity: 0;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* HARAKATNI KAMAYTIRISH */

@media (prefers-reduced-motion: reduce) {
  html body :is(.app, #notifications, #fh-spin-studio)
  .sidebar.fh-sidebar-beta :is(button, summary, svg.icon),
  #fh-dashboard-submenu,
  .fh-dashboard-arrow,
  .fh-dashboard-arrow svg {
    transition: none !important;
  }

  .sidebar button .fh-icon-trace,
  .sidebar button .fh-handshake-trace path {
    animation: none !important;
  }
}
/* Sidebar ichidagi o‘lchamlar mavjud joyga moslashadi */
html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta {
  container-type: inline-size;
  box-sizing: border-box;
  min-height: 0;
  padding: 16px 12px 12px !important;
}

/* Asosiy menyu tugmalari */
html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu > button[data-view] {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;

  height: auto !important;
  min-height: 43px !important;
  padding: 8px 9px !important;
}

/* Ikonka uchun bir xil, ixcham joy */
html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu > button > svg.fh-nav-icon {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
}

/* Matn kenglikni egallab strelkani siqib qo‘ymaydi */
html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu > button[data-view]
.fh-sidebar-label {
  flex: 1 1 0 !important;
  min-width: 0 !important;

  font-size: clamp(13px, 6.3cqi, 16px) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Home tugmasi: ikonka | yozuv | strelka */
html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu > button[data-view="home"] {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 18px !important;
  column-gap: 7px !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-dashboard-arrow {
  width: 18px !important;
  height: 26px !important;
  min-width: 18px !important;
  margin: 0 !important;
  justify-self: end;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-dashboard-arrow svg {
  width: 14px !important;
  height: 14px !important;
}

/* Pastki blok siqilib yoki kesilib qolmaydi */
html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .brand {
  flex-shrink: 0;
  padding-bottom: 16px !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-sidebar-bottom {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  padding-top: 16px !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-sidebar-profile {
  margin-top: 10px !important;
  padding: 10px !important;
}

html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-sidebar-utility button {
  height: auto !important;
  min-height: 38px !important;
}

/* Past bo‘yli ekranlarda ortiqcha vertikal masofa kamayadi */
@media (min-width: 701px) and (max-height: 720px) {
  html body :is(.app, #notifications, #fh-spin-studio)
  .sidebar.fh-sidebar-beta {
    padding-top: 12px !important;
  }

  html body :is(.app, #notifications, #fh-spin-studio)
  .sidebar.fh-sidebar-beta .fh-liquid-menu {
    gap: 3px !important;
  }

  html body :is(.app, #notifications, #fh-spin-studio)
  .sidebar.fh-sidebar-beta .brand {
    padding-bottom: 12px !important;
  }

  html body :is(.app, #notifications, #fh-spin-studio)
  .sidebar.fh-sidebar-beta .fh-sidebar-bottom {
    padding-top: 10px !important;
  }
}
/* Kamroq chiziq, bir xil yumaloq kontur */
html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu > button > svg.fh-handshake {
  stroke-width: 2.8;
}
.fh-subscription-icon .fh-crown-stud {
  fill: #faead2;
  stroke: none;
}

.fh-subscription-icon .fh-crown-band {
  stroke-width: 1.35;
  opacity: 0.7;
}
/* Hamkorlik: soddaroq shakl, biroz qalinroq kontur */
html body :is(.app, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu > button > svg.fh-handshake {
  stroke-width: 3.4 !important;
}
/* Hamkorlik — boshqa ikonkalar bilan bir xil uslub */
html body.fh-desktop-fit
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu > button[data-view="partner"] {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Boshqa ikonkalardek bir xil joy egallaydi */
html body.fh-desktop-fit
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu >
button[data-view="partner"] > svg.icon.fh-handshake {
  display: block !important;

  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;

  margin: 0 !important;
  padding: 0 !important;
  justify-self: center;
  align-self: center;

  fill: none !important;
  stroke: #faead2 !important;
  stroke-width: 5.5 !important;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 1 !important;
  transform: none !important;
  scale: 1 !important;
  filter: none !important;
}

/* Yaxlit bo‘yoq o‘rniga yumaloq kontur */
html body .sidebar .fh-handshake-base {
  opacity: 0.85 !important;
}

html body .sidebar .fh-handshake-base path {
  fill: none !important;
  stroke: #faead2 !important;
  stroke-width: 5.5 !important;
}

/* Animatsiya ham aynan shu kontur qalinligida */
html body .sidebar .fh-handshake-trace path {
  fill: none !important;
  stroke: #fff9ee !important;
  stroke-width: 5.5 !important;
}
/* Hamkorlik ikonkasi — kichikroq, markazda */
html body.fh-desktop-fit
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu >
button[data-view="partner"] > svg.icon.fh-handshake {
  width: 17px !important;
  min-width: 17px !important;
  max-width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
  justify-self: center;
  align-self: center;
}
/* Qo‘l ikonkasining konturi — biroz qalinroq */
html body .sidebar .fh-handshake-base path,
html body .sidebar .fh-handshake-trace path {
  stroke-width: 7 !important;
}
/* Avtotest — boshqa ikonkalar bilan bir xil o‘lcham */
html body.fh-desktop-fit
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu >
button[data-view="avtotest"] > svg.icon.fh-car-icon {
  display: block;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;

  fill: none !important;
  stroke: #faead2;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.fh-car-icon .fh-icon-base,
.fh-car-icon .fh-icon-trace {
  stroke-width: 2.2;
}

.fh-car-icon .fh-car-glass {
  stroke-width: 1.7;
  opacity: 0.85;
}

.fh-car-icon .fh-car-mirrors {
  stroke-width: 2;
}

.fh-car-icon .fh-car-light {
  stroke: #fff9ee;
  stroke-width: 2;
}

.fh-car-icon .fh-car-grille {
  stroke-width: 1.7;
  opacity: 0.7;
}
/* Faralar — bir marta yonib, mayin o‘chadi */
.fh-car-icon .fh-car-light {
  opacity: 0.65;
  filter: none;
}

button[data-view="avtotest"]:is(:hover, :focus-visible)
.fh-car-light {
  animation: fh-car-headlights 1500ms ease-in-out 1;
}

@keyframes fh-car-headlights {
  0% {
    opacity: 0.65;
    filter: none;
  }

  30%,
  55% {
    opacity: 1;
    filter:
      drop-shadow(0 0 1px #fff9ee)
      drop-shadow(0 0 3px #faead2b3);
  }

  100% {
    opacity: 0.65;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  button[data-view="avtotest"] .fh-car-light {
    animation: none !important;
  }
}
/* PS — boshqa ikonkalar bilan bir xil joy va rang */
html body.fh-desktop-fit
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu >
button[data-view="prezident"] > svg.icon.fh-school-icon {
  display: block;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;

  fill: none !important;
  stroke: #faead2;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.fh-school-icon .fh-icon-base,
.fh-school-icon .fh-icon-trace {
  stroke-width: 2.1;
}

.fh-school-icon .fh-school-flag {
  stroke-width: 1.7;
  fill: #faead218;
}

.fh-school-icon .fh-school-clock {
  stroke-width: 1.7;
}

.fh-school-icon .fh-school-hands {
  stroke-width: 1.5;
}

.fh-school-icon .fh-school-divider,
.fh-school-icon .fh-school-columns,
.fh-school-icon .fh-school-door {
  stroke-width: 1.5;
}

.fh-school-icon .fh-school-step {
  stroke-width: 2.1;
}

/* Bino chizilgach, bayroq pastdan tepaga chiziladi */
button[data-view="prezident"]:is(:hover, :focus-visible)
.fh-school-flag {
  animation: fh-school-flag-draw 650ms 700ms ease-out both;
}

@keyframes fh-school-flag-draw {
  from {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
  }

  to {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  button[data-view="prezident"] .fh-school-flag {
    animation: none !important;
  }
} 
/* PS — bitiruv qalpog‘i */
html body.fh-desktop-fit
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .menu >
button[data-view="prezident"] > svg.icon.fh-graduation-icon {
  display: block;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;

  fill: none !important;
  stroke: #faead2;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.fh-graduation-icon .fh-icon-base,
.fh-graduation-icon .fh-icon-trace {
  stroke-width: 2.2;
}

.fh-graduation-icon .fh-cap-band {
  stroke-width: 2;
}

.fh-graduation-icon .fh-cap-cord {
  stroke-width: 1.7;
}

.fh-graduation-icon .fh-cap-tassel {
  stroke-width: 1.5;
  fill: #faead220;
}
/* Sozlamalar — boshqa ikonkalar bilan bir xil uslub */
html body.fh-desktop-fit
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta
.fh-sidebar-utility button[data-view="settings"] >
svg.icon.fh-settings-icon {
  display: block;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;

  padding: 0 !important;
  fill: none !important;
  stroke: #faead2;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.fh-settings-icon .fh-icon-base,
.fh-settings-icon .fh-icon-trace {
  stroke-width: 2.2;
}

.fh-settings-icon .fh-settings-center {
  fill: none;
  stroke: #faead2;
  stroke-width: 2.2;
}
/* Rasmning kontur qalinligi va bo‘sh markazi */
html body .sidebar .fh-settings-icon .fh-settings-shape {
  fill: #faead2 !important;
  stroke: none !important;
}

html body .sidebar .fh-settings-icon .fh-settings-ring {
  fill: none !important;
  stroke: #faead2 !important;
  stroke-width: 1.25 !important;
}

html body .sidebar .fh-settings-icon .fh-settings-draw {
  fill: none !important;
  stroke: #fff9ee !important;
  stroke-width: 1.25 !important;
}
/* Yordam — boshqa ikonkalar bilan bir xil joylashuv */
html body.fh-desktop-fit
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta
.fh-sidebar-utility button[data-view="help"] >
svg.icon.fh-help-icon {
  display: block;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;

  padding: 0 !important;
  fill: none !important;
  stroke: #faead2;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.fh-help-icon .fh-help-lines {
  stroke-width: 1.7;
}

.fh-help-icon .fh-help-question {
  stroke-width: 2.1;
}

.fh-help-icon .fh-help-dot {
  fill: #faead2;
  stroke: none;
}

/* Sozlamalar — shaklni saqlab qalinlashtirish */
html body .sidebar .fh-settings-icon .fh-settings-shape {
  fill: #faead2 !important;
  stroke: #faead2 !important;
  stroke-width: 0.45 !important;
  stroke-linejoin: round;
}

html body .sidebar .fh-settings-icon .fh-settings-ring,
html body .sidebar .fh-settings-icon .fh-settings-draw {
  stroke-width: 1.8 !important;
}
html body .sidebar .fh-settings-icon .fh-settings-shape {
  stroke-width: 0.75 !important;
}

html body .sidebar .fh-settings-icon .fh-settings-ring,
html body .sidebar .fh-settings-icon .fh-settings-draw {
  stroke-width: 2.1 !important;
}
/* Yordam — rasmning o‘zidan olingan shakl */
html body .sidebar svg.fh-help-icon .fh-help-reference,
html body .sidebar svg.fh-help-icon .fh-help-reference-dot {
  fill: #faead2 !important;
  stroke: none !important;
}

/* Yorug‘ chiziq faqat tashqi kontur ustidan yuradi */
html body .sidebar svg.fh-help-icon .fh-help-reference-trace {
  fill: none !important;
  stroke: #fff9ee !important;
  stroke-width: 0.85 !important;
  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  pointer-events: none;
}

.sidebar .fh-sidebar-utility
button[data-view="help"]:is(:hover, :focus-visible)
.fh-help-reference-trace {
  animation:
    fh-house-outline-draw 1500ms
    cubic-bezier(.4, 0, .2, 1) 1 both;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar button[data-view="help"] .fh-help-reference-trace {
    animation: none !important;
  }
}
/* Yordam konturini biroz qalinlashtirish */
html body .sidebar svg.fh-help-icon .fh-help-reference {
  stroke: #faead2 !important;
  stroke-width: 0.35 !important;
  stroke-linejoin: round;
}

html body .sidebar svg.fh-help-icon .fh-help-reference-trace {
  stroke-width: 1.2 !important;
}
/* Ichki menyu — chiziqlar o‘rniga nuqtalar */
html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items {
  border: 0 !important;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items > button::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;

  left: -12px !important;
  top: 50% !important;
  bottom: auto !important;

  width: 5px !important;
  height: 5px !important;
  border: 0 !important;
  border-radius: 50% !important;

  background: #faead266 !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;

  transition: background-color 220ms ease;
}

/* Oxirgi tugmadagi eski chiziq qoidasini ham bekor qilish */
html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items >
button:last-child::before {
  bottom: auto !important;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items > button::after {
  content: none !important;
  display: none !important;
}

/* Sichqoncha ostidagi yoki tanlangan bo‘lim nuqtasi */
html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items >
button:is(:hover, [aria-current="page"], .fh-nav-selected)::before {
  background: #faead2 !important;
}
/* Ichki menyu — bog‘lovchi chiziq va halqali nuqtalar */
html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items {
  position: relative;
  isolation: isolate;
}

/* Nuqtalar orasidagi ingichka chiziq */
html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: #faead22e;
  pointer-events: none;
}

/* Nuqta — chiziq ustida kichik halqa */
html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items > button::before {
  left: -13px !important;
  top: 50% !important;
  bottom: auto !important;

  width: 7px !important;
  height: 7px !important;
  box-sizing: border-box;
  border: 1px solid #faead275 !important;
  border-radius: 50% !important;

  background: #174272 !important;
  box-shadow: 0 0 0 3px #123766;
  transform: translateY(-50%) !important;

  transition:
    background-color 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items >
button:last-child::before {
  bottom: auto !important;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items > button::after {
  content: none !important;
}

/* Eski alohida hover fonlarini bekor qilish */
html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items >
button:is(
  :hover,
  [aria-current="page"],
  .fh-nav-selected,
  .fh-submenu-preview
) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Nuqta suzuvchi fon bilan birga yoritiladi */
html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items >
button.fh-submenu-preview::before {
  background: #faead2 !important;
  border-color: #fff9ee !important;
  box-shadow:
    0 0 0 3px #123766,
    0 0 8px #faead230;
}

/* Bitta suzuvchi tanlov foni */
html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-submenu-indicator {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  display: block;
  pointer-events: none;

  border: 1px solid #faead224;
  border-radius: 11px;
  background: linear-gradient(110deg, #faead214, #faead208);
  box-shadow: inset 0 1px 0 #ffffff0a;

  opacity: 0;
  transition: opacity 250ms ease;
  will-change: transform;
}

html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items > button {
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  #fh-dashboard-submenu .fh-submenu-indicator,
  #fh-dashboard-submenu button::before {
    transition: none !important;
  }
}
/* Nuqtalarning yumshoq almashishi */
html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items > button::before {
  transform: translateY(-50%) scale(1) !important;

  transition:
    background-color 550ms cubic-bezier(.22, 1, .36, 1),
    border-color 550ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 650ms cubic-bezier(.22, 1, .36, 1),
    transform 650ms cubic-bezier(.22, 1, .36, 1) !important;
}

/* Tanlov kelganda mayin faollashish */
html body .app .sidebar.fh-sidebar-beta
#fh-dashboard-submenu .fh-dashboard-items >
button.fh-submenu-preview::before {
  transform: translateY(-50%) scale(1.12) !important;
}

@media (prefers-reduced-motion: reduce) {
  html body .app .sidebar.fh-sidebar-beta
  #fh-dashboard-submenu .fh-dashboard-items > button::before {
    transition: none !important;
  }
}
/* Dashboard — ball kalkulyatori ikonkasi */
html body #home-view
button[data-fh-action="calculator"]
.fh-tool-icon > svg.fh-calculator-icon {
  display: block;
  width: 29px !important;
  height: 35px !important;
  margin: auto !important;
  padding: 0 !important;

  fill: none !important;
  stroke: #faead2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fh-calculator-icon .fh-calculator-body {
  stroke-width: 1.4;
}

.fh-calculator-icon .fh-calculator-screen {
  stroke-width: 1.35;
}

.fh-calculator-icon .fh-calculator-keys {
  fill: none;
  stroke-width: 1.35;
}
/* Sidebar matnlari — mayin harakat */
html body
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta .fh-text-motion {
  position: relative;
  transform: translate3d(0, 0, 0) !important;
  opacity: 0.9;

  transition:
    transform 650ms cubic-bezier(.22, 1, .36, 1),
    opacity 450ms ease !important;
}

/* Nomdagi inline matnga ham transform ishlashi uchun */
html body .sidebar .brand-name.fh-text-motion {
  display: inline-block;
}

/* Sichqoncha va klaviatura bilan tanlash */
html body
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta
:is(button, summary, a.brand):is(:hover, :focus-visible)
.fh-text-motion {
  transform: translate3d(3px, 0, 0) !important;
  opacity: 1;
}

/* Profilning ikkinchi qatori ozgina kechikib harakatlanadi */
html body
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta
.fh-sidebar-profile-copy small.fh-text-motion {
  transition-delay: 35ms !important;
}

/* Bosilganda yumshoq qaytish */
html body
:is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
.sidebar.fh-sidebar-beta
:is(button, summary):active .fh-text-motion {
  transform: translate3d(1px, 0, 0) !important;
  transition-duration: 150ms !important;
}

/* Sensorli qurilmada hover holati yopishib qolmaydi */
@media (hover: none) {
  html body
  :is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
  .sidebar.fh-sidebar-beta .fh-text-motion {
    transform: none !important;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body
  :is(.app, #fh-layout-root, #notifications, #fh-spin-studio)
  .sidebar.fh-sidebar-beta .fh-text-motion {
    transform: none !important;
    transition: none !important;
    opacity: 1;
  }
}