@media (display-mode: standalone) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .pwa-dock {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 96;
    width: min(560px, calc(100% - 18px));
    min-height: 68px;
    padding: 8px 9px;
    display: grid;
    grid-template-columns: minmax(112px, 1.25fr) repeat(3, minmax(62px, 0.62fr)) 48px;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(4, 43, 37, 0.94);
    box-shadow: 0 20px 60px rgba(3, 34, 29, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .pwa-dock-brand,
  .pwa-dock-btn {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    min-height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font: inherit;
  }
  .pwa-dock-brand {
    justify-content: flex-start;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.06);
  }
  .pwa-dock-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0d6d5d, #073d35);
    color: #f0c96c;
    font-size: 19px;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  }
  .pwa-dock-brand span:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.02;
  }
  .pwa-dock-brand b {
    font-size: 12.5px;
  }
  .pwa-dock-brand small {
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #b9d0c9;
    margin-top: 3px;
  }
  .pwa-dock-btn {
    flex-direction: column;
    font-size: 11px;
    font-weight: 800;
    color: #d8e7e2;
  }
  .pwa-dock-btn i {
    font-style: normal;
    font-size: 18px;
    line-height: 1;
  }
  .pwa-dock-btn:hover,
  .pwa-dock-btn:focus-visible,
  .pwa-dock-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
  }
  .pwa-dock-top {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f0c96c;
    color: #163a34;
    box-shadow: 0 8px 20px rgba(240, 201, 108, 0.24);
  }
  .pwa-dock-top i {
    font-size: 22px;
  }
  .pwa-sheet {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    align-items: flex-end;
    background: rgba(3, 23, 20, 0.45);
    backdrop-filter: blur(6px);
  }
  .pwa-sheet.open {
    display: flex;
  }
  .pwa-sheet-card {
    width: 100%;
    background: #fff;
    border-radius: 28px 28px 0 0;
    padding: 18px 16px calc(98px + env(safe-area-inset-bottom));
    box-shadow: 0 -24px 70px rgba(3, 35, 30, 0.22);
  }
  .pwa-sheet-grab {
    width: 44px;
    height: 5px;
    border-radius: 99px;
    background: #d9e1de;
    margin: 0 auto 18px;
  }
  .pwa-sheet-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    margin-bottom: 14px;
  }
  .pwa-sheet-head h3 {
    margin: 0;
    font-size: 21px;
  }
  .pwa-sheet-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #eff4f2;
    color: #163a34;
    font-size: 22px;
  }
  .pwa-sheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .pwa-sheet-link {
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid #dce6e2;
    border-radius: 15px;
    background: #fff;
    color: #123f37;
    text-align: left;
    font-weight: 800;
  }
  .pwa-sheet-link.primary {
    grid-column: 1/-1;
    background: #073d35;
    color: #fff;
    border-color: #073d35;
  }
  .pwa-sheet-link.gold {
    grid-column: 1/-1;
    background: #f0c96c;
    color: #153a33;
    border-color: #f0c96c;
  }
  .pwa-standalone .float.whatsapp {
    bottom: calc(176px + env(safe-area-inset-bottom)) !important;
  }
  .pwa-standalone .ai-float {
    bottom: calc(116px + env(safe-area-inset-bottom)) !important;
  }
}
@media (display-mode: standalone) and (max-width: 390px) {
  .pwa-dock {
    grid-template-columns: 48px repeat(3, 1fr) 44px;
  }
  .pwa-dock-brand {
    padding: 0;
    background: transparent;
    justify-content: center;
  }
  .pwa-dock-brand span:last-child {
    display: none;
  }
  .pwa-dock-btn {
    font-size: 10px;
  }
  .pwa-dock-btn i {
    font-size: 17px;
  }
  .pwa-sheet-card {
    padding-left: 12px;
    padding-right: 12px;
  }
}
