/* Floating menu */
.fab {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.fab-btn {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  /* border: 2px solid #fff; */
  /* border: 2px solid #151923; */
  /* border-radius: 14px; */
  border-radius: 8px;
  background: #151923;
  backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s ease, background 0.2s ease, border-color 0.2s ease;
}

/* Overlay + panel */
.panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(21, 25, 35, 0.45);
  backdrop-filter: blur(3px);
}

.panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(1000px, calc(100% - 40px));
  height: min(80vh, 720px);
  max-height: calc(100vh - 110px);
  overflow: hidden;
  transform: translate(-50%, -50%);
  /* border: 2px solid #fff; */
  border-radius: 20px;
  background: #151923;
  backdrop-filter: blur(14px);
  color: #fff;
  /* box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); */
  box-shadow: 0 30px 80px rgba(255, 255, 255, 0.6);
}

.panel[hidden],
.panel-overlay[hidden] {
  display: none !important;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 30px 40px;
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.panel-logo {
  display: block;
  width: 275px;
  height: 54px;
  object-fit: contain;
}

.panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid #2e404e;
  border-radius: 12px;
  background: #2e404e;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.panel-body {
  flex: 1;
  margin: 0 20px 40px 94px;
  padding: 0 40px 0 0;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.panel-body h1 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 600;
}

.panel-body h2 {
  margin-top: 24px;
  font-size: 18px;
}

.panel-body p {
  margin-bottom: 14px;
}

.panel-body a {
  color: #00adef;
}

/* Submenu */
.subnav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0 0 24px;
  background: #151923;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #2e404e;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 15px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.subnav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.subnav-link.active {
  border-color: #00adef;
  background: #2e404e;
  color: #cfe8ff;
  /* font-weight: 600; */
}

/* Lock icon */
.menu-lock-icon {
  display: block;
  width: 34px;
  height: 34px;
  overflow: visible;
}

.menu-lock-icon #lock-shackle,
.menu-lock-icon #lock-core {
  transform-box: view-box;
  transition: transform 0.22s ease;
}

.menu-lock-icon #lock-shackle {
  transform-origin: 18px 22px;
  transform: rotate(0deg);
}

.menu-lock-icon #lock-core {
  transform-origin: 32px 45px;
  transform: rotate(0deg);
}

.fab-btn:hover .menu-lock-icon #lock-shackle,
.fab-btn:focus-visible .menu-lock-icon #lock-shackle {
  transform: rotate(-16deg);
}

.fab-btn:hover .menu-lock-icon #lock-core,
.fab-btn:focus-visible .menu-lock-icon #lock-core {
  transform: rotate(90deg);
}

/* Cart icon */
.menu-cart-icon {
  display: block;
  width: 28px;
  height: 28px;
  overflow: visible;
  transform: translateY(2px);
}

.menu-cart-icon .cart-pixels-static {
  opacity: 1;
}

.menu-cart-icon .drop-wrap {
  opacity: 0;
  will-change: transform, opacity;
}

.fab-btn:hover .menu-cart-icon .cart-pixels-static,
.fab-btn:focus-visible .menu-cart-icon .cart-pixels-static {
  animation: cartStaticCycle 0.62s ease forwards;
}

.fab-btn:hover .menu-cart-icon .dp1,
.fab-btn:focus-visible .menu-cart-icon .dp1 {
  animation: pixelDrop1 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.fab-btn:hover .menu-cart-icon .dp2,
.fab-btn:focus-visible .menu-cart-icon .dp2 {
  animation: pixelDrop2 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.fab-btn:hover .menu-cart-icon .dp3,
.fab-btn:focus-visible .menu-cart-icon .dp3 {
  animation: pixelDrop3 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

.fab-btn:hover .menu-cart-icon .dp4,
.fab-btn:focus-visible .menu-cart-icon .dp4 {
  animation: pixelDrop4 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.fab-btn:hover .menu-cart-icon .dp5,
.fab-btn:focus-visible .menu-cart-icon .dp5 {
  animation: pixelDrop5 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
}

@keyframes cartStaticCycle {
  0% {
    opacity: 1;
  }

  12% {
    opacity: 0;
  }

  82% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes pixelDrop1 {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pixelDrop2 {
  0% {
    opacity: 0;
    transform: translateY(-22px);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pixelDrop3 {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pixelDrop4 {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pixelDrop5 {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About icon */
.menu-about-icon {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
}

.menu-about-icon .about-static-highlight {
  opacity: 1;
}

.menu-about-icon .about-anim-wrap {
  opacity: 0;
  will-change: transform, opacity;
}

.fab-btn:hover .menu-about-icon .about-static-highlight,
.fab-btn:focus-visible .menu-about-icon .about-static-highlight {
  animation: aboutStaticCycle 1s steps(1, end) forwards;
}

.fab-btn:hover .menu-about-icon .about-anim-wrap,
.fab-btn:focus-visible .menu-about-icon .about-anim-wrap {
  animation: aboutPixelSequence 1s steps(1, end) forwards;
}

@keyframes aboutStaticCycle {
  0% {
    opacity: 0;
  }

  92% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes aboutPixelSequence {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }

  8% {
    opacity: 1;
    transform: translate(-34.802px, 18.097px);
  }

  28% {
    opacity: 1;
    transform: translate(-18.098px, 34.801px);
  }

  48% {
    opacity: 1;
    transform: translate(-52.9px, -0.001px);
  }

  68% {
    opacity: 1;
    transform: translate(-52.982px, 52.901px);
  }

  88% {
    opacity: 1;
    transform: translate(0, 0);
  }

  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

/* Responsive */
@media (max-width: 700px) {
  .panel {
    height: calc(100vh - 20px);
  }
}

@media (max-width: 640px) {
  .panel-head {
    padding: 8px 20px 12px 20px;
  }

  .panel-logo {
    width: 275px;
    height: 60px;
  }

  .panel-body {
    margin: 0 10px 20px 20px;
    padding: 0 10px 0 0;
  }
}

@media (max-width: 420px) {
  .panel-brand {
    width: 40px;
    overflow: hidden;
  }
}


/* Login form */
.login-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 60px);
  text-align: center;
  gap: 16px;
}

.login-text,
.login-form {
  width: 100%;
  max-width: 300px;
}

.login-text {
  margin: 0;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #2e404e;
  border-radius: 12px;
  background: #0f131b;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.login-form input:focus {
  border-color: #00adef;
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.15);
}

.login-submit {
  height: 46px;
  border: 1px solid #00adef;
  border-radius: 12px;
  background: #00adef;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.08s ease;
}

.login-submit:hover {
  opacity: 0.92;
}

.login-submit:active {
  transform: translateY(1px);
}

/* Language switcher */

.language-switcher {
    position: relative;
    /* top: 10px; */
    right: 59px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
}

.language-switcher-label {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

.language-switcher-select {
    appearance: none;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    padding: 6px 30px 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    min-width: 120px;
}

.language-switcher-select:focus {
    outline: none;
    border-color: #00ADEF;
}

@media (max-width: 640px) {
    .language-switcher {
        top: 8px;
        right: 8px;
        padding: 5px 8px;
    }

    .language-switcher-label {
        display: none;
    }

    .language-switcher-select {
        min-width: 110px;
        font-size: 12px;
    }
}

/* Language indicator button and modal */

.lang-indicator-btn {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    pointer-events: auto;
}

.lang-indicator-btn:hover {
    text-decoration: underline;
}

.language-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 120;
}

.language-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 420px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    padding: 22px 18px 18px;
    z-index: 130;
}

.language-modal-close {
    appearance: none;
    border: 0;
    background: none;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 12px;
}

.language-modal h2 {
    margin: 0 32px 8px 0;
    font-size: 22px;
}

.language-modal-text {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
}

.language-modal-list {
    display: grid;
    gap: 10px;
}

.language-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #151923;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.language-modal-item:hover {
    background: #eef6fb;
    border-color: #b8dff3;
    transform: translateY(-1px);
}

.language-modal-item.active {
    background: #eef8ff;
    border-color: #00ADEF;
}

.language-modal-flag {
    font-size: 22px;
    line-height: 1;
}

.language-modal-label {
    font-weight: 500;
}

.language-modal-current {
    margin-left: auto;
    font-size: 12px;
    color: #00ADEF;
    font-weight: 600;
}