/* ThanhDoanh Auto – mobile dock. Layout and phone/Zalo presentation
   matched to the Lam Design mobile bar, while retaining ThanhDoanh routes.
   Loaded after site.css. Only styles the mobile dock; desktop is untouched. */
@media (max-width: 1024px) {
  nav.mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    inset-inline: 10px;
    bottom: 0;
    width: calc(100% - 20px);
    max-width: calc(100vw - 20px);
    height: auto;
    min-height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    margin: 0 !important;
    overflow: hidden;
    color: #f8f4eb;
    background: rgb(10 13 17 / 97%);
    border: 1px solid rgb(217 173 97 / 15%);
    border-bottom: 0;
    border-radius: 0;
    box-shadow: 0 12px 28px rgb(0 0 0 / 30%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  nav.mobile-bottom-nav > a,
  nav.mobile-bottom-nav > button {
    display: grid;
    grid-template-rows: 34px 18px;
    place-items: center;
    gap: 0;
    min-width: 0;
    min-height: 62px;
    padding: 5px 2px 4px;
    color: #f7f2e9;
    background: transparent;
    border: 0;
    border-right: 1px solid rgb(217 173 97 / 15%);
    border-radius: 0;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
  }
  nav.mobile-bottom-nav > :last-child { border-right: 0; }

  nav.mobile-bottom-nav .mobile-dock-fa {
    grid-row: 1;
    align-self: center;
    justify-self: center;
    display: inline-block;
    width: 19px;
    height: 19px;
    margin: 0;
    color: #e0b663;
    font-size: 17px;
    line-height: 19px;
    text-align: center;
  }
  nav.mobile-bottom-nav > a > img.zalo-logo.mobile-bottom-nav__zalo-logo {
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: 25px;
    height: 25px;
    margin: 0;
    object-fit: contain;
  }
  nav.mobile-bottom-nav > a > span,
  nav.mobile-bottom-nav > button > span {
    grid-row: 2;
    align-self: center;
    justify-self: center;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 1px;
    overflow: hidden;
    color: rgb(255 237 196);
    font-size: 8px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .5px;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* The exact Lam Design call button: green glow, pulsing circle, no text. */
  nav.mobile-bottom-nav > a.mobile-call-link {
    position: relative;
    isolation: isolate;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
    gap: 0;
    background: linear-gradient(180deg, rgb(9 31 22 / 98%) 0%, rgb(6 20 14 / 98%) 100%);
    overflow: hidden;
  }
  nav.mobile-bottom-nav > a.mobile-call-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    border: 1px solid rgb(64 218 134 / 48%);
    border-radius: 999px;
    transform: translate(-50%, -50%);
    opacity: .75;
    animation: td-mobile-call-ring 2.4s ease-out infinite;
    pointer-events: none;
  }
  nav.mobile-bottom-nav > a.mobile-call-link i.mobile-call-fa {
    grid-row: 1;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 11px;
    box-sizing: content-box;
    color: #fff;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
    background: linear-gradient(135deg, #26cf78 0%, #12a960 57%, #087742 100%);
    border: 1px solid rgb(255 255 255 / 26%);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgb(8 134 69 / 44%), inset 0 1px 0 rgb(255 255 255 / 30%);
    animation: td-mobile-call-pulse 2.4s ease-in-out infinite;
  }
  nav.mobile-bottom-nav > a.mobile-call-link > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
  }

  nav.mobile-bottom-nav > button.mobile-bottom-nav__segment {
    color: #fff;
    background: rgb(217 173 97 / 12%);
    border-left: 0;
    cursor: pointer;
  }
  nav.mobile-bottom-nav > button.mobile-bottom-nav__segment .mobile-dock-fa { color: #efc873; }
  nav.mobile-bottom-nav > a:hover,
  nav.mobile-bottom-nav > a:focus-visible:where(html:not([data-input-modality="pointer"]) *),
  nav.mobile-bottom-nav > button:hover,
  nav.mobile-bottom-nav > button:focus-visible:where(html:not([data-input-modality="pointer"]) *) {
    color: #fff;
    background: rgb(255 255 255 / 8%);
    outline: 0;
  }
  nav.mobile-bottom-nav > a.mobile-call-link:hover,
  nav.mobile-bottom-nav > a.mobile-call-link:focus-visible:where(html:not([data-input-modality="pointer"]) *) {
    background: linear-gradient(180deg, rgb(10 43 29 / 98%) 0%, rgb(7 28 19 / 98%) 100%);
  }
  nav.mobile-bottom-nav > a.mobile-call-link:hover i.mobile-call-fa,
  nav.mobile-bottom-nav > a.mobile-call-link:focus-visible:where(html:not([data-input-modality="pointer"]) *) i.mobile-call-fa {
    transform: translateY(-1px) scale(1.04);
  }
}

@keyframes td-mobile-call-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 22px rgb(8 134 69 / 44%), inset 0 1px 0 rgb(255 255 255 / 30%); }
  50% { transform: scale(1.06); box-shadow: 0 14px 26px rgb(8 134 69 / 52%), 0 0 0 6px rgb(38 207 120 / 9%), inset 0 1px 0 rgb(255 255 255 / 34%); }
}
@keyframes td-mobile-call-ring {
  0% { transform: translate(-50%, -50%) scale(.82); opacity: 0; }
  22% { opacity: .58; }
  70% { opacity: .18; }
  100% { transform: translate(-50%, -50%) scale(1.34); opacity: 0; }
}
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  nav.mobile-bottom-nav > a.mobile-call-link::before,
  nav.mobile-bottom-nav > a.mobile-call-link i.mobile-call-fa { animation: none; }
}
