/* --------------------------------------------------------------------------*

*   TakeLoot footer + mobile navigation refresh*

*   Loaded directly from public/assets; no Vite rebuild is required.*

*   -------------------------------------------------------------------------- */

/* Keep the page shell tall enough for a proper sticky footer. */

.layout-wrapper.layout-content-navbar,
.layout-wrapper.layout-content-navbar > .layout-container {
  min-height: 100vh;

  min-height: 100dvh;
}

.layout-wrapper.layout-content-navbar > .layout-container > .layout-page {
  display: flex;

  flex-direction: column;

  min-height: 100vh;

  min-height: 100dvh;
}

.layout-wrapper.layout-content-navbar .content-wrapper {
  display: flex;

  flex: 1 1 auto;

  flex-direction: column;

  justify-content: flex-start;

  min-height: 0;
}

.layout-wrapper.layout-content-navbar
  .content-wrapper
  > .container-fluid.flex-grow-1 {
  flex: 1 0 auto;
}

.layout-wrapper.layout-content-navbar .content-wrapper > .content-footer {
  flex: 0 0 auto;

  margin-top: auto !important;
}

/* --------------------------------------------------------------------------*

*   Footer*

*   -------------------------------------------------------------------------- */

.tl-footer.content-footer {
  width: 100%;

  margin: clamp(2rem, 4vw, 3.25rem) 0 0 !important;

  padding-bottom: 2dvh;

  color: rgba(226, 232, 240, 0.78);

  background: transparent !important;
}

.tl-footer-inner {
  position: relative;

  isolation: isolate;

  width: 100%;

  max-width: 1740px;

  margin: 0 auto;

  overflow: hidden;

  border: 1px solid var(--brand-20);

  border-radius: var(--brand-round-xl);

  background:
    radial-gradient(
      ellipse at 78% -30%,

      rgba(153, 68, 255, 0.15),
      transparent 42%
    ),
    linear-gradient(135deg, rgba(17, 18, 34, 0.98), rgba(8, 11, 27, 0.98));

  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.tl-footer-inner::before {
  position: absolute;

  z-index: -1;

  top: -190px;

  right: 12%;

  width: 360px;

  height: 280px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(153, 68, 255, 0.16),
    transparent 70%
  );

  content: "";

  pointer-events: none;
}

.tl-footer-grid {
  display: grid;

  grid-template-columns:
    minmax(220px, 1.45fr) minmax(130px, 0.72fr) minmax(130px, 0.72fr)
    minmax(175px, 0.95fr);

  gap: clamp(24px, 4vw, 62px);

  align-items: start;
}

.tl-footer-brand {
  min-width: 0;
}

.tl-footer-logo {
  display: inline-flex;

  align-items: center;

  max-width: 100%;
}

.tl-footer-logo > a {
  display: inline-flex;

  align-items: center;

  max-width: 100%;
}

.tl-footer-logo .app-brand-img {
  display: block;

  width: clamp(148px, 15vw, 190px) !important;

  max-width: 100%;

  height: auto;

  object-fit: contain;
}

.tl-footer-tagline {
  max-width: 290px;

  margin: 1rem 0 1rem;

  color: var(--brand-gray);

  font-size: 0.875rem;

  line-height: 1.65;
}

.tl-footer-brand-dot {
  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: #a66aff;

  box-shadow: 0 0 12px rgba(166, 106, 255, 0.85);
}

.tl-footer-column {
  display: flex;

  min-width: 0;

  flex-direction: column;

  align-items: flex-start;

  gap: 12px;
}

.tl-footer-heading {
  font-family: "Exo 2", sans-serif;
  margin: 2px 0 5px;

  color: #fff;

  font-size: 1rem;

  font-weight: 600;

  letter-spacing: 0.01em;
}

.tl-footer-link {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  color: rgba(206, 215, 232, 0.72) !important;

  font-size: 0.875rem;

  font-weight: 500;

  line-height: 1.4;

  text-decoration: none !important;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.tl-footer-link:hover,
.tl-footer-link:focus-visible {
  color: var(--brand-soft) !important;

  transform: translateX(3px);
}

.tl-footer-link-icon {
  flex: 0 0 auto;
  color: var(--brand-color);
  font-size: 1.125rem;
}

.tl-footer-social-caption {
  margin: -2px 0 1px;

  color: rgba(206, 215, 232, 0.62);

  font-size: 12px;

  line-height: 1.5;
}

.tl-footer-socials {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;
}

.tl-footer-social-link {
  display: inline-grid;

  width: 37px;

  height: 37px;

  place-items: center;

  border: 1px solid rgba(184, 164, 231, 0.13);

  border-radius: 12px;

  color: rgba(231, 225, 247, 0.82) !important;

  background: rgba(255, 255, 255, 0.055);

  font-size: 16px;

  text-decoration: none !important;

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.tl-footer-social-link:hover,
.tl-footer-social-link:focus-visible {
  transform: translateY(-3px);

  border-color: rgba(168, 116, 255, 0.48);

  color: #fff !important;

  background: rgba(153, 68, 255, 0.22);
}

/* --------------------------------------------------------------------------*

*   TakeLoot animated bottom navigation with a true transparent notch*

*   The bar surface is drawn on ::before so its mask reveals the real page*

*   underneath (including imagery, gradients and text).*

*   -------------------------------------------------------------------------- */

@property --tl-nav-notch-x {
  syntax: "<length-percentage>";

  inherits: true;

  initial-value: 50%;
}

.mobile-navbar {
  --tl-nav-icon: rgb(255 255 255 / 50%);

  --tl-nav-active: var(--brand-color);

  --tl-nav-notch-x: 50%;

  --tl-nav-notch-width: 112px;

  --tl-nav-notch-height: 36px;

  --tl-nav-notch-half-width: 56px;

  position: fixed;

  z-index: 1040;

  left: 50%;

  bottom: calc(12px + env(safe-area-inset-bottom, 0px));

  display: flex;

  width: min(400px, calc(100vw - 24px));

  height: 70px;

  align-items: center;

  justify-content: center;

  gap: 0;

  margin: 0;

  padding: 0 clamp(10px, 6vw, 25px);

  overflow: visible;

  border: 0;

  border-radius: var(--brand-round-md);

  background: transparent;

  box-shadow: none;

  opacity: 1;

  transform: translate3d(-50%, 0, 0);

  transition: --tl-nav-notch-x 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  isolation: isolate;

  -webkit-tap-highlight-color: transparent;
}

/**

* \* Only this surface layer is masked. The navigation element itself stays*

* \* transparent, so the page's actual background is visible through the notch.*

* */

.mobile-navbar::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;

  /* Glass surface */
  background: rgb(80 60 100 / 25%);

  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--brand-line);

  opacity: 1;

  transition:
    opacity 280ms ease,
    background-color 250ms ease;

  content: "";
  pointer-events: none;

  /**

*     \* The supplied SVG defines the exact U-shaped notch. The first mask*

*     \* layer keeps the full rounded bar visible; the second layer (the SVG)*

*     \* is subtracted from it. This is a real transparent cut-out, not a solid*

*     \* decoration, so page images, gradients and text show through it.*

*     \* JavaScript updates --tl-nav-notch-x to center the notch behind the*

*     \* currently active navigation item.*

*     */

  -webkit-mask-image:
    linear-gradient(#000 0 0), url("/assets/img/tl-nav-drop.svg?v=7");

  -webkit-mask-repeat: no-repeat, no-repeat;

  -webkit-mask-size:
    100% 100%,
    var(--tl-nav-notch-width) var(--tl-nav-notch-height);

  -webkit-mask-position:
    0 0,
    calc(var(--tl-nav-notch-x, 50%) - var(--tl-nav-notch-half-width)) 0;

  -webkit-mask-composite: xor;

  mask-image: linear-gradient(#000 0 0), url("/assets/img/tl-nav-drop.svg?v=7");

  mask-mode: alpha, alpha;

  mask-repeat: no-repeat, no-repeat;

  mask-size:
    100% 100%,
    var(--tl-nav-notch-width) var(--tl-nav-notch-height);

  mask-position:
    0 0,
    calc(var(--tl-nav-notch-x, 50%) - var(--tl-nav-notch-half-width)) 0;

  mask-composite: exclude;
}

/* Curved 1px border following the SVG notch */
.mobile-navbar .tl-mobile-nav-notch-stroke {
  position: absolute;
  z-index: 1;

  top: 0;
  left: var(--tl-nav-notch-x, 50%);

  width: var(--tl-nav-notch-width);
  height: var(--tl-nav-notch-height);

  overflow: visible;
  fill: none;

  opacity: 1;
  transform: translateX(-50%);
  transition: opacity 280ms ease;

  pointer-events: none;
}

/* Clips the curved stroke to the navigation bar boundaries */
.mobile-navbar .tl-mobile-nav-notch-clip {
  position: absolute;
  z-index: 1;
  inset: 0;

  display: block;
  overflow: hidden;
  border-radius: inherit;

  pointer-events: none;
}

/* Curved SVG stroke */
.mobile-navbar .tl-mobile-nav-notch-stroke {
  position: absolute;
  top: 0;
  left: var(--tl-nav-notch-x, 50%);

  display: block;
  width: var(--tl-nav-notch-width);
  height: var(--tl-nav-notch-height);

  overflow: visible;
  fill: none;

  transform: translateX(-50%);
  opacity: 1;

  transition: opacity 280ms ease;
  pointer-events: none;
}

.mobile-navbar .tl-mobile-nav-notch-stroke path {
  fill: none;
  stroke: var(--brand-line);
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;

  vector-effect: non-scaling-stroke;
}
.mobile-navbar .tl-mobile-nav-indicator {
  z-index: 2;
}

.mobile-navbar .nv-item {
  z-index: 3;
}

/* The raised purple active button. Its transparent rim exposes the page too. */

.mobile-navbar .tl-mobile-nav-indicator {
  position: absolute;
  z-index: 1;
  top: -35px;
  left: 50%;
  display: block;
  width: 70px;
  height: 70px;
  box-sizing: border-box;
  border-radius: var(--brand-round-pill);
  background: radial-gradient(
    at left top,
    #ff8df3 0%,
    var(--brand-btn-g-start) 50%,
    var(--brand-btn-g-end) 100%
  );
  background-clip: padding-box;
  box-shadow:
    0 7px 18px var(--brand-20),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateX(-50%);
  transition: left 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.mobile-navbar .nv-item {
  position: relative;

  z-index: 2;

  display: flex;

  width: 70px;

  min-width: 0;

  height: 70px;

  flex: 1 1 70px;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 0;

  padding: 0;

  border: 0;

  border-radius: 0;

  outline: none;

  color: var(--tl-nav-icon);

  background: transparent;

  font: inherit;

  text-decoration: none;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition: color 260ms ease;
}

.mobile-navbar .nv-item:hover,
.mobile-navbar .nv-item:focus-visible {
  color: rgb(255 255 255 / 90%);
}

.mobile-navbar .nv-item:focus-visible {
  border-radius: 10px;

  box-shadow: inset 0 0 0 2px rgba(153, 68, 255, 0.24);
}

.mobile-navbar .nv-item > .tl-mobile-nav-icon {
  position: relative;
  display: grid;
  width: 100%;
  flex: 0 0 auto;
  place-items: center;
  color: currentColor;
  line-height: 1;
  transform: translateY(0);
  transition:
    color 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55),
    transform 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-navbar .tl-mobile-nav-icon svg {
  display: block;

  width: 1.5rem;

  height: 1.5rem;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.7;

  transition: stroke-width 220ms ease;
}

.mobile-navbar .nv-item > .tl-mobile-nav-label {
  font-family: "Exo 2", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;

  position: absolute;
  top: 2.55rem;
  right: 1px;
  left: 1px;
  display: block;
  overflow: hidden;

  letter-spacing: 1px;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 260ms ease,
    transform 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.mobile-navbar .nv-item.is-current,
.mobile-navbar .nv-item.active {
  color: #fff;
}

.mobile-navbar .nv-item.is-current > .tl-mobile-nav-icon,
.mobile-navbar .nv-item.active > .tl-mobile-nav-icon {
  color: #fff;

  transform: translateY(-35px);
}

.mobile-navbar .nv-item.is-current .tl-mobile-nav-icon svg,
.mobile-navbar .nv-item.active .tl-mobile-nav-icon svg {
  stroke-width: 2.05;
}

.mobile-navbar .nv-item.is-current > .tl-mobile-nav-label,
.mobile-navbar .nv-item.active > .tl-mobile-nav-label {
  color: rgb(255 255 255 / 90%);
  opacity: 1;
  transform: translateY(0);
}

.mobile-navbar .tl-mobile-chat-button {
  appearance: none;

  -webkit-appearance: none;
}

/* Keep the parent fully opaque so backdrop-filter can work */
.mobile-navbar {
  opacity: 1;
}

/* Fade all navigation layers together */
.mobile-navbar.is-faded::before,
.mobile-navbar.is-faded .tl-mobile-nav-notch-clip,
.mobile-navbar.is-faded .tl-mobile-nav-indicator,
.mobile-navbar.is-faded .nv-item {
  opacity: 0.1;
  transition: opacity 280ms ease;
}

/* Restore visibility on hover */
@media (hover: hover) {
  .mobile-navbar:hover::before,
  .mobile-navbar:hover .tl-mobile-nav-notch-clip,
  .mobile-navbar:hover .tl-mobile-nav-indicator,
  .mobile-navbar:hover .nv-item {
    opacity: 1;
  }
}

@media (hover: hover) {
  .mobile-navbar:hover {
    opacity: 1;
  }
}

.mobile-navbar.tl-nav-reduced-motion,
.mobile-navbar.tl-nav-reduced-motion .tl-mobile-nav-indicator,
.mobile-navbar.tl-nav-reduced-motion .nv-item,
.mobile-navbar.tl-nav-reduced-motion .tl-mobile-nav-icon,
.mobile-navbar.tl-nav-reduced-motion .nv-item > .tl-mobile-nav-label {
  transition: none !important;
}

@media (max-width: 380px) {
  .mobile-navbar {
    width: calc(100vw - 20px);

    height: 66px;

    padding-right: 9px;

    padding-left: 9px;

    border-radius: 13px;
  }

  .mobile-navbar .nv-item,
  .mobile-navbar .nv-item > .tl-mobile-nav-icon {
    height: 66px;
  }

  .mobile-navbar {
    --tl-nav-notch-width: 128px;

    --tl-nav-notch-height: 41.14px;

    --tl-nav-notch-half-width: 64px;
  }

  .mobile-navbar .tl-mobile-nav-indicator {
    top: -31px;

    width: 64px;

    height: 64px;

    border-width: 5px;
  }

  .mobile-navbar .nv-item.is-current > .tl-mobile-nav-icon,
  .mobile-navbar .nv-item.active > .tl-mobile-nav-icon {
    transform: translateY(-31px);
  }
}

/* Use a two-column footer before the compact phone layout kicks in. */

@media (max-width: 991.98px) {
  .tl-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px 30px;
  }

  .tl-footer-brand,
  .tl-footer-social-column {
    grid-column: 1 / -1;
  }
}

/* The existing fixed dock needs a little more breathing room on mobile. */

@media (max-width: 1199.98px) {
  .layout-navbar-fixed
    .layout-wrapper.layout-content-navbar:not(.layout-horizontal):not(
      .layout-without-menu
    )
    .layout-page {
    padding-bottom: 108px !important;
  }
}

@media (min-width: 1200px) {
  .layout-navbar-fixed
    .layout-wrapper.layout-content-navbar:not(.layout-horizontal):not(
      .layout-without-menu
    )
    .layout-page {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .tl-footer.content-footer {
    margin-top: 2rem !important;

    padding-right: 10px;

    padding-left: 10px;

    padding-bottom: 24px;
  }

  .tl-footer-inner {
    padding: 25px 20px 16px;
    border-radius: var(--brand-round-lg) !important;
    border-radius: 20px;
  }

  .tl-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 25px 20px;
  }

  .tl-footer-brand,
  .tl-footer-social-column {
    grid-column: 1 / -1;
  }

  .tl-footer-brand {
    text-align: center;
  }

  .tl-footer-tagline {
    max-width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-navbar,
  .mobile-navbar .tl-mobile-nav-indicator,
  .mobile-navbar .nv-item,
  .mobile-navbar .tl-mobile-nav-icon,
  .tl-footer-link,
  .tl-footer-social-link {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive mobile navigation
   Desktop (>= 1200px): hidden by the existing Bootstrap d-xl-none class.
   Tablet (601px-1199.98px): centered, capped floating dock.
   Mobile (<= 600px): edge-to-edge dock with no horizontal gutter.
   -------------------------------------------------------------------------- */

/* Tablets and compact laptops: keep the dock centered with balanced gutters. */
@media (min-width: 601px) and (max-width: 1199.98px) {
  .mobile-navbar {
    left: 50%;
    right: auto;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    width: min(30rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    height: 4rem;
    margin: 0;
    padding-inline: 1rem;
    transform: translate3d(-50%, 0, 0);
    box-sizing: border-box;
  }

  .mobile-navbar .nv-item {
    width: auto;
    min-width: 0;
    height: 100%;
    flex: 1 1 0%;
    margin: 0;
    padding: 0;
  }

  .mobile-navbar .nv-item > .tl-mobile-nav-icon {
    height: 4rem;
  }

  .mobile-navbar .tl-mobile-nav-indicator {
    top: -1.25rem;
    width: 3rem;
    height: 3rem;
  }

  .mobile-navbar .nv-item.is-current > .tl-mobile-nav-icon,
  .mobile-navbar .nv-item.active > .tl-mobile-nav-icon {
    transform: translateY(-1.75rem);
  }

  .layout-navbar-fixed
    .layout-wrapper.layout-content-navbar:not(.layout-horizontal):not(
      .layout-without-menu
    )
    .layout-page {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)) !important;
    padding-top: 0 !important;
  }
}

/* Phones: fill the viewport edge-to-edge; remove all outside and inner gutters. */
@media (max-width: 600px) {
  .mobile-navbar {
    --tl-nav-active-size: 3.25rem;
    --tl-nav-active-half: 1.625rem;

    /* Keep the SVG notch proportional */
    --tl-nav-notch-width: 6.5rem;
    --tl-nav-notch-height: 2.09rem;
    --tl-nav-notch-half-width: 3.25rem;

    left: 0;
    right: 0;
    bottom: -2px;
    width: 100%;
    max-width: 100%;
    height: calc(4rem + env(safe-area-inset-bottom, 0px));
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    transform: none;
    border-radius: 0;
  }

  .mobile-navbar::before {
    border-radius: 0;

    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  /* Resize the purple active circle */
  .mobile-navbar .tl-mobile-nav-indicator {
    top: calc(0rem - var(--tl-nav-active-half));
    width: var(--tl-nav-active-size);
    height: var(--tl-nav-active-size);
  }

  /* Keep the active icon centered inside the smaller circle */
  .mobile-navbar .nv-item.is-current > .tl-mobile-nav-icon,
  .mobile-navbar .nv-item.active > .tl-mobile-nav-icon {
    transform: translateY(calc(0rem - var(--tl-nav-active-half)));
  }

  /* Slightly resize the active icon */
  .mobile-navbar .nv-item.active .tl-mobile-nav-icon i,
  .mobile-navbar .nv-item.is-current .tl-mobile-nav-icon i {
    font-size: 1.5rem;
  }

  .mobile-navbar .nv-item.is-current > .tl-mobile-nav-icon,
  .mobile-navbar .nv-item.active > .tl-mobile-nav-icon {
    transform: translateY(-2rem);
  }

  .mobile-navbar .nv-item {
    width: auto;
    min-width: 0;
    height: 100%;
    flex: 1 1 0%;
    margin: 0;
    padding: 0;
  }

  .mobile-navbar .nv-item > .tl-mobile-nav-icon {
    width: 100%;
    height: 100%;
  }

  .mobile-navbar .nv-item > .tl-mobile-nav-label {
    right: 0.0625rem;
    left: 0.0625rem;
    top: 2.55rem;
  }

  .layout-navbar-fixed
    .layout-wrapper.layout-content-navbar:not(.layout-horizontal):not(
      .layout-without-menu
    )
    .layout-page {
    padding-bottom: calc(
      4.375rem + env(safe-area-inset-bottom, 0px)
    ) !important;
    padding-top: 0 !important;
  }
}

/* Very narrow phones retain the smaller 64px active button from the base CSS. */
@media (max-width: 380px) {
  .layout-navbar-fixed
    .layout-wrapper.layout-content-navbar:not(.layout-horizontal):not(
      .layout-without-menu
    )
    .layout-page {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* At desktop widths the mobile dock is hidden, so it needs no reserved space. */
@media (min-width: 71200px) {
  .layout-navbar-fixed
    .layout-wrapper.layout-content-navbar:not(.layout-horizontal):not(
      .layout-without-menu
    )
    .layout-page {
    padding-bottom: 0 !important;
  }
}
