/* Round 48 final overrides loaded after the bundled stylesheet. */
.tlgawy-exact .wa-more-menu,
.tlgawy-exact .wa-message-delete-panel {
  z-index: 2147483000 !important;
}
.tlgawy-exact .wa-attachment-card {
  display: flex;
  align-items: center;
  gap: .55rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.72);
  padding: .7rem .85rem;
  font-size: .84rem;
  font-weight: 900;
  color: #071022;
}
.tlgawy-exact .wa-chat-image {
  width: min(18rem, 72vw);
  max-height: 22rem;
}
@media (max-width: 768px) {
  .tlgawy-exact .wa-chat-bg {
    background:
      radial-gradient(circle at 16% 18%, rgba(214,248,198,.55), transparent 14rem),
      radial-gradient(circle at 82% 12%, rgba(240,184,63,.12), transparent 13rem),
      linear-gradient(135deg, #f7fbff, #fff8ef) !important;
  }
  .tlgawy-exact .wa-shell {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100dvh - 6.2rem) !important;
    min-height: calc(100dvh - 6.2rem) !important;
    max-height: calc(100dvh - 6.2rem) !important;
    border-radius: 1.7rem !important;
    overflow: hidden !important;
  }
  .tlgawy-exact .wa-chat-header {
    min-height: 5rem !important;
    height: auto !important;
    padding: .65rem .75rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 12px 34px rgba(7,16,34,.06) !important;
  }
  .tlgawy-exact .wa-chat-actions {
    display: flex !important;
    align-items: center !important;
    gap: .42rem !important;
    position: static !important;
    isolation: isolate;
  }
  .tlgawy-exact .wa-action-icon {
    width: 2.72rem !important;
    height: 2.72rem !important;
    min-width: 2.72rem !important;
    border-radius: 1rem !important;
  }
  .tlgawy-exact .wa-more-menu {
    position: fixed !important;
    inset-inline: .85rem !important;
    top: auto !important;
    bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-height: min(58dvh, 24rem) !important;
    overflow: auto !important;
    display: grid !important;
    gap: .45rem !important;
    padding: .7rem !important;
    border-radius: 1.45rem !important;
    background: rgba(255,255,255,.99) !important;
    border: 1px solid rgba(7,16,34,.08) !important;
    box-shadow: 0 28px 90px rgba(7,16,34,.28) !important;
    transform: none !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .tlgawy-exact .wa-more-menu button,
  .tlgawy-exact .wa-message-delete-panel button {
    min-height: 3rem !important;
    justify-content: flex-start !important;
    border-radius: 1rem !important;
    background: #f4f7ff !important;
    font-size: .9rem !important;
    font-weight: 950 !important;
  }
  .tlgawy-exact .wa-message-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 1rem .85rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .tlgawy-exact .wa-bubble {
    max-width: min(78%, 20rem) !important;
    font-size: .96rem !important;
    line-height: 1.65 !important;
    border-radius: 1.25rem !important;
    overflow: visible !important;
  }
  .tlgawy-exact .wa-bubble-tools {
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 1.9rem !important;
    height: 1.9rem !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #dc2626 !important;
    box-shadow: 0 8px 22px rgba(7,16,34,.18) !important;
  }
  .tlgawy-exact .wa-message-delete-panel {
    position: fixed !important;
    inset-inline: .85rem !important;
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    width: auto !important;
    min-width: 0 !important;
    display: grid !important;
    gap: .45rem !important;
    border-radius: 1.35rem !important;
    padding: .7rem !important;
    background: rgba(255,255,255,.985) !important;
    border: 1px solid rgba(7,16,34,.08) !important;
    box-shadow: 0 28px 90px rgba(7,16,34,.26) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .tlgawy-exact .wa-message-delete-panel::before,
  .tlgawy-exact .wa-more-menu::before {
    content: "" !important;
    width: 3.2rem !important;
    height: .28rem !important;
    border-radius: 999px !important;
    background: rgba(7,16,34,.14) !important;
    justify-self: center !important;
    margin-bottom: .25rem !important;
  }
  .tlgawy-exact .wa-compose-row,
  .tlgawy-exact .wa-chat-header + .border-b,
  .tlgawy-exact .wa-group-drawer {
    position: relative !important;
    z-index: 50 !important;
  }
  .tlgawy-exact .wa-compose-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: .48rem !important;
    padding-bottom: max(.1rem, env(safe-area-inset-bottom, 0px)) !important;
  }
  .tlgawy-exact .wa-compose-row input {
    order: 2 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 3rem !important;
    padding-inline: 1.05rem !important;
    font-size: .96rem !important;
  }
  .tlgawy-exact .wa-send-button {
    order: 1 !important;
    flex: 0 0 3.1rem !important;
    width: 3.1rem !important;
    height: 3.1rem !important;
  }
  .tlgawy-exact .wa-emoji-btn,
  .tlgawy-exact .wa-compose-row .wa-compose-icon:nth-of-type(1) {
    order: 3 !important;
    flex: 0 0 3.1rem !important;
  }
  .tlgawy-exact .wa-location-btn,
  .tlgawy-exact .wa-file-btn,
  .tlgawy-exact .wa-image-btn,
  .tlgawy-exact .wa-gif-btn,
  .tlgawy-exact .wa-compose-row .wa-compose-icon:nth-of-type(2),
  .tlgawy-exact .wa-compose-row .wa-compose-icon:nth-of-type(3),
  .tlgawy-exact .wa-compose-row .wa-compose-icon:nth-of-type(4),
  .tlgawy-exact .wa-compose-row .wa-compose-icon:nth-of-type(5) {
    flex: 1 1 calc(25% - .5rem) !important;
    max-width: 5rem !important;
    min-width: 3rem !important;
  }
  .tlgawy-exact .wa-location-btn,
  .tlgawy-exact .wa-compose-row .wa-compose-icon:nth-of-type(5) { order: 4 !important; }
  .tlgawy-exact .wa-file-btn,
  .tlgawy-exact .wa-compose-row .wa-compose-icon:nth-of-type(4) { order: 5 !important; }
  .tlgawy-exact .wa-image-btn,
  .tlgawy-exact .wa-compose-row .wa-compose-icon:nth-of-type(3) { order: 6 !important; }
  .tlgawy-exact .wa-gif-btn,
  .tlgawy-exact .wa-compose-row .wa-compose-icon:nth-of-type(2) { order: 7 !important; }
  .tlgawy-exact .wa-compose-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 3rem !important;
    border-radius: 1rem !important;
    background: #f4f7ff !important;
    color: #071022 !important;
    box-shadow: inset 0 0 0 1px rgba(7,16,34,.06) !important;
  }
}
@media (max-width: 390px) {
  .tlgawy-exact .wa-peer-name {
    max-width: 26vw !important;
    font-size: .82rem !important;
  }
  .tlgawy-exact .wa-action-icon {
    width: 2.45rem !important;
    height: 2.45rem !important;
    min-width: 2.45rem !important;
  }
  .tlgawy-exact .wa-send-button,
  .tlgawy-exact .wa-emoji-btn {
    flex-basis: 2.85rem !important;
    width: 2.85rem !important;
    height: 2.85rem !important;
  }
  .tlgawy-exact .wa-compose-icon {
    height: 2.72rem !important;
  }
}

/* ROUND60: r59 logic, current TLGAWY look. Keep profile/addons crisp on mobile. */
.vcard-page{
  min-height:100dvh;
  padding:7.5rem 1rem 2rem;
  background:radial-gradient(circle at 12% 12%, rgba(48,64,230,.10), transparent 28rem),radial-gradient(circle at 88% 18%, rgba(240,184,63,.12), transparent 24rem),linear-gradient(180deg,#f7f9ff 0%,#eef5fb 100%);
  color:#071022;
  isolation:isolate;
  overflow-x:hidden;
}
.vcard-shell{width:min(42rem,100%);margin-inline:auto}
.vcard-phone{overflow:hidden;border:1px solid rgba(7,16,34,.08);border-radius:2.25rem;background:rgba(255,255,255,.92);box-shadow:0 28px 90px rgba(7,16,34,.14)}
.vcard-cover{height:13rem;background:#071022;overflow:hidden}
.vcard-cover img,.vcard-block-image{width:100%;height:100%;object-fit:cover;display:block}
.vcard-profile{padding:0 1.25rem 1.35rem;text-align:center}
.vcard-avatar{width:8.5rem;height:8.5rem;object-fit:cover;border-radius:2rem;border:.38rem solid #fff;background:#fff;margin:-4.25rem auto 1rem;box-shadow:0 20px 55px rgba(7,16,34,.20)}
.vcard-profile h1{font-size:clamp(1.9rem,6vw,3rem);line-height:1.05;font-weight:1000;margin:0;color:#071022;letter-spacing:0}
.vcard-job{margin:.4rem 0 0;color:#3040e6;font-weight:1000}
.vcard-bio{margin:.75rem auto 0;max-width:32rem;color:#5d6678;font-size:1rem;line-height:1.9}
.vcard-actions,.vcard-share-row,.vcard-socials{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center}
.vcard-actions{margin-top:1rem}
.vcard-actions a,.vcard-actions button,.vcard-share-row a,.vcard-share-row button,.vcard-block-link,.vcard-socials a{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.75rem;padding:.72rem 1rem;border:1px solid rgba(7,16,34,.08);border-radius:999px;background:#f4f7ff;color:#071022;font-weight:950;text-decoration:none;box-shadow:0 10px 24px rgba(7,16,34,.06)}
.vcard-actions button,.vcard-share-row button{cursor:pointer}
.vcard-section{margin:1rem;padding:1.05rem;border:1px solid rgba(7,16,34,.08);border-radius:1.55rem;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 14px 34px rgba(7,16,34,.06)}
.vcard-section h2{display:flex;align-items:center;gap:.45rem;margin:0 0 .75rem;font-size:1.1rem;font-weight:1000;color:#071022}
.vcard-section p{margin:0;color:#5d6678;line-height:1.85}
.vcard-qr-card{text-align:center}
.vcard-qr-image{width:min(13rem,72vw);height:auto;margin:.45rem auto;border-radius:1.25rem;background:#fff;padding:.65rem;border:1px solid rgba(7,16,34,.08)}
.vcard-socials{justify-content:flex-start}
.vcard-socials a{border-radius:1rem;background:#fff;min-width:8rem}
.vcard-block-image{height:auto;max-height:24rem;border-radius:1.2rem;margin-bottom:.8rem}
.vcard-block-video{width:100%;aspect-ratio:16/9;border:0;border-radius:1.2rem;background:#071022;margin-bottom:.8rem}
.vcard-block-list{display:grid;gap:.45rem;margin-top:.8rem}
.vcard-block-list span{padding:.72rem .9rem;border-radius:1rem;background:#f4f7ff;color:#071022;font-weight:850}
.vcard-block-link{margin-top:.85rem;background:linear-gradient(135deg,#3040e6,#1b138c)!important;color:#fff!important;border:0!important}
.vcard-luxury .vcard-phone{background:linear-gradient(180deg,#fffdf7,#fff)}
.vcard-neon .vcard-phone{border-color:rgba(48,64,230,.28);box-shadow:0 30px 90px rgba(48,64,230,.18)}
.vcard-bold .vcard-cover{background:#111a4b}
.member-profile-business-actions{isolation:isolate;contain:paint}
@media(max-width:768px){
  .vcard-page{padding-top:6.3rem}
  .vcard-phone{border-radius:1.85rem}
  .vcard-cover{height:10.5rem}
  .vcard-avatar{width:7rem;height:7rem;border-radius:1.6rem;margin-top:-3.5rem}
  .vcard-section{margin:.8rem;border-radius:1.35rem}
  .vcard-actions a,.vcard-actions button,.vcard-share-row a,.vcard-share-row button,.vcard-block-link,.vcard-socials a{min-height:2.6rem;padding:.66rem .85rem;font-size:.9rem}
  .tlgawy-exact .profile-award-badge::before,.tlgawy-exact .profile-award-badge::after,.tlgawy-exact .profile-badges-row::before,.tlgawy-exact .profile-badges-row::after,.tlgawy-exact .profile-gifts-card::before,.tlgawy-exact .profile-gifts-card::after,.tlgawy-exact .member-profile-business-actions::before,.tlgawy-exact .member-profile-business-actions::after,.tlgawy-exact [class*="noise"]::before,.tlgawy-exact [class*="noise"]::after,.tlgawy-exact [class*="glitch"]::before,.tlgawy-exact [class*="glitch"]::after,.tlgawy-exact [class*="scan"]::before,.tlgawy-exact [class*="scan"]::after{content:none!important;display:none!important;background:none!important;animation:none!important}
  .tlgawy-exact .profile-award-badge,.tlgawy-exact .profile-badges-row,.tlgawy-exact .profile-gifts-card,.tlgawy-exact .member-profile-business-actions,.tlgawy-exact .member-profile-business-actions *{filter:none!important;mix-blend-mode:normal!important;backdrop-filter:none!important}
}
