﻿/* =========================================================
   LIFTRIX Mobile Drawer
   Premium settings-only drawer
   No emoji / CSS icon version
========================================================= */

.mobileDrawerLocked {
  overflow: hidden !important;
}

.mobileDrawerBackdrop {
  position: fixed;
  inset: 0;
  z-index: 8990;
  background: rgba(2, 8, 23, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.mobileDrawerBackdrop.isOpen {
  opacity: 1;
}

.mobileDrawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 9000;
  width: min(86vw, 380px);
  pointer-events: none;
  transform: translateX(-104%);
  opacity: 0;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.mobileDrawer.isOpen {
  pointer-events: auto;
  transform: translateX(0);
  opacity: 1;
}

.mobileDrawer__panel {
  width: 100%;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;

  padding:
    max(26px, env(safe-area-inset-top))
    24px
    max(28px, env(safe-area-inset-bottom));

  color: #F4F8FF;

  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(63, 169, 255, 0.18) 0%,
      rgba(63, 169, 255, 0.07) 22%,
      rgba(4, 20, 47, 0.00) 48%
    ),
    linear-gradient(
      180deg,
      #061A3A 0%,
      #04142F 44%,
      #031024 100%
    );

  border-right: 1px solid rgba(125, 170, 255, 0.18);
  box-shadow:
    26px 0 70px rgba(0, 0, 0, 0.46),
    inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.mobileDrawer__top {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mobileDrawer__logoImage {
  display: block;
  width: 172px;
  max-width: 68%;
  max-height: 36px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.mobileDrawer__closeBtn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 248, 255, 0.92);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobileDrawer__closeBtn:active {
  transform: scale(0.94);
}

.mobileDrawer__divider {
  height: 1px;
  margin: 22px 0 24px;
  background:
    linear-gradient(
      90deg,
      rgba(125, 170, 255, 0.00),
      rgba(125, 170, 255, 0.26),
      rgba(125, 170, 255, 0.00)
    );
}

.mobileDrawer__section {
  margin-top: 0;
  margin-bottom: 28px;
}

.mobileDrawer__section--last {
  margin-bottom: 0;
}

.mobileDrawer__sectionTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: rgba(226, 236, 255, 0.58);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
}

.mobileDrawer__sectionDot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #3FA9FF;
  box-shadow: 0 0 16px rgba(63, 169, 255, 0.42);
}

.mobileDrawer__row {
  width: 100%;
  min-height: 78px;
  padding: 13px 0;

  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;

  border: 0;
  border-bottom: 1px solid rgba(226, 236, 255, 0.105);
  background: transparent;
  color: #F4F8FF;
  text-decoration: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobileDrawer__row:active {
  transform: scale(0.99);
}

.mobileDrawer__rowIcon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  color: #58B7FF;
  background:
    linear-gradient(
      180deg,
      rgba(63, 169, 255, 0.13),
      rgba(63, 169, 255, 0.065)
    );

  border: 1px solid rgba(63, 169, 255, 0.10);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  font-size: 0;
  line-height: 1;
}

.mobileDrawer__rowIcon::before,
.mobileDrawer__rowIcon::after {
  box-sizing: border-box;
}

/* Account icon: simple user circle */
.mobileDrawer__rowIcon--account::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: translateY(-5px);
}

.mobileDrawer__rowIcon--account::after {
  content: "";
  position: absolute;
  width: 21px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 999px 999px 8px 8px;
  border-bottom-color: transparent;
  transform: translateY(9px);
}

/* Info icon: CSS-only i */
.mobileDrawer__rowIcon--info::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-9px);
}

.mobileDrawer__rowIcon--info::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 17px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(5px);
}

/* Logout icon: CSS-only exit */
.mobileDrawer__rowIcon--logout::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 18px;
  border: 2px solid currentColor;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  transform: translateX(-4px);
}

.mobileDrawer__rowIcon--logout::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(5px);
  box-shadow: 5px 0 0 currentColor;
}

.mobileDrawer__rowText {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.mobileDrawer__rowText strong {
  color: #F7FBFF;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.mobileDrawer__rowText small {
  color: rgba(226, 236, 255, 0.57);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.mobileDrawer__chevron {
  color: rgba(226, 236, 255, 0.70);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.mobileDrawer__row--static {
  cursor: default;
}

.mobileDrawer__row--static:active {
  transform: none;
}

.mobileDrawer__logoutForm {
  margin: 0;
  padding: 0;
}

.mobileDrawer__row--danger {
  color: #FF7D7D;
}

.mobileDrawer__row--danger .mobileDrawer__rowText strong {
  color: #FF7D7D;
}

.mobileDrawer__rowIcon--danger {
  color: #FF6B6B;
  background:
    linear-gradient(
      180deg,
      rgba(255, 92, 92, 0.13),
      rgba(255, 92, 92, 0.065)
    );
  border-color: rgba(255, 92, 92, 0.12);
}

.mobileDrawer__chevron--danger {
  color: rgba(255, 125, 125, 0.78);
}

/* ===== Logout row fix ===== */

.mobileDrawer__logoutForm .mobileDrawer__row--danger {
  width: 100%;
  min-height: 78px;
  padding: 13px 0;

  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) 24px !important;
  align-items: center;
  gap: 14px;

  border: 0;
  border-bottom: 1px solid rgba(255, 125, 125, 0.16);
  background: transparent;

  text-align: left;
  font-family: inherit;
}

.mobileDrawer__logoutForm .mobileDrawer__rowIcon--danger {
  grid-column: 1;
}

.mobileDrawer__logoutForm .mobileDrawer__rowText {
  grid-column: 2;
}

.mobileDrawer__logoutForm .mobileDrawer__chevron--danger {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 360px) {
  .mobileDrawer {
    width: min(88vw, 360px);
  }

  .mobileDrawer__panel {
    padding-inline: 20px;
  }

  .mobileDrawer__logoImage {
    width: 156px;
  }

  .mobileDrawer__row {
    min-height: 72px;
    grid-template-columns: 50px minmax(0, 1fr) 22px;
    gap: 12px;
  }

  .mobileDrawer__rowIcon {
    width: 42px;
    height: 42px;
  }

  .mobileDrawer__rowText strong {
    font-size: 16px;
  }

  .mobileDrawer__rowText small {
    font-size: 12px;
  }

  .mobileDrawer__logoutForm .mobileDrawer__row--danger {
    min-height: 72px;
    grid-template-columns: 50px minmax(0, 1fr) 22px !important;
    gap: 12px;
  }
}

@media (min-width: 769px) {
  .mobileDrawer,
  .mobileDrawerBackdrop {
    display: none !important;
  }
}