/* ==========================================================================
   I PAW END-USER APPLICATION STYLESHEET (assets/css/style.css)
   ========================================================================== */

html {
      font-size: clamp(13.5px, 3.65vw, 15.5px);
    }
    * {
      box-sizing: border-box;
      font-family: 'Cairo', 'Tajawal', sans-serif;
      -webkit-tap-highlight-color: transparent;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    html, body {
      margin: 0;
      padding: 0;
      background-color: #FFFFFF;
      color: #1F2937;
      width: 100%;
      height: 100%;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    body.admin-mode-active {
      height: auto;
      max-height: none;
      overflow-y: auto;
    }
    ::-webkit-scrollbar {
      width: 5px;
      height: 5px;
    }
    ::-webkit-scrollbar-track {
      background: rgba(0,0,0,0.03);
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(47,66,84,0.3);
      border-radius: 9999px;
    }

    /* Production Multi-Screen Responsive Web-App Container — Flush to Bottom (#1) */
    #workspaceContainer {
      flex: 1 1 0%;
      min-height: 0;
      width: 100%;
      display: flex;
      align-items: stretch;
      justify-content: center;
      overflow: hidden;
    }
    #userAppWrapper {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: stretch;
      justify-content: center;
      overflow: hidden;
    }
    .ipaw-full-shell, .ipaw-phone-shell {
      width: 100%;
      max-width: min(100vw, 520px);
      height: 100%;
      max-height: 100%;
      margin: 0 auto;
      background: #FFFFFF;
      position: relative;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding-top: env(safe-area-inset-top, 0px);
      box-shadow: 0 0 45px rgba(0,0,0,0.14);
    }
    /* On iPhone (iOS) Safari & Standalone PWA: exact flush full-screen fit (0px gap, 0px clipping) */
    @media (max-width: 639px) {
      html, body {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        overscroll-behavior: none;
        background-color: #FFFFFF;
      }
      .ipaw-full-shell, .ipaw-phone-shell {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: none;
        min-height: 0;
        box-shadow: none;
        background-color: #FFFFFF;
      }
    }
    html.is-ios.is-standalone,
    html.is-ios.is-standalone body {
      position: static !important;
      width: 100%;
      height: 100% !important;
      min-height: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
      overscroll-behavior: none;
      background-color: #FFFFFF;
    }
    html.is-ios.is-standalone:not(.is-keyboard-open) .ipaw-full-shell,
    html.is-ios.is-standalone:not(.is-keyboard-open) .ipaw-phone-shell {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0 !important;
      width: 100%;
      height: 100% !important;
      max-height: none !important;
      padding-top: env(safe-area-inset-top, 0px);
    }
    @media all and (display-mode: standalone) {
      html.is-ios,
      html.is-ios body {
        position: static !important;
        width: 100%;
        height: 100% !important;
        min-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background-color: #FFFFFF;
      }
      html.is-ios:not(.is-keyboard-open) .ipaw-full-shell,
      html.is-ios:not(.is-keyboard-open) .ipaw-phone-shell {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0 !important;
        width: 100%;
        height: 100% !important;
        max-height: none !important;
        padding-top: env(safe-area-inset-top, 0px);
      }
    }
    /* Android PWA Standalone Safe-Area Insets (iOS remains completely untouched) */
    html.is-android.is-standalone:not(.is-keyboard-open) .ipaw-full-shell,
    html.is-android.is-standalone:not(.is-keyboard-open) .ipaw-phone-shell {
      padding-top: env(safe-area-inset-top, 0px);
      padding-bottom: env(safe-area-inset-bottom, 0px);
      padding-left: env(safe-area-inset-left, 0px);
      padding-right: env(safe-area-inset-right, 0px);
      box-sizing: border-box;
    }
    @media all and (display-mode: standalone) {
      html.is-android:not(.is-keyboard-open) .ipaw-full-shell,
      html.is-android:not(.is-keyboard-open) .ipaw-phone-shell {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
        box-sizing: border-box;
      }
    }
    html.is-keyboard-open #chatInputFooter,
    html.is-keyboard-open .ipaw-bottom-input-bar {
      padding-bottom: 8px !important;
    }
    html.is-keyboard-open #fixedBottomNavMount,
    html.is-keyboard-open .ipaw-bottom-nav {
      display: none !important;
    }
    /* Smooth Animated Pet Band Carousel (Native Horizontal Scroll, Zero Vertical Scroll, Balanced Pair Gap) */
    .ipaw-pets-carousel-viewport {
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x proximity;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x;
      overscroll-behavior-y: none;
      position: relative;
      z-index: 20;
      padding: 2px 14px 42px 14px;
      user-select: none;
      -webkit-user-select: none;
      cursor: grab;
    }
    .ipaw-pets-carousel-viewport.is-dragging {
      cursor: grabbing;
      scroll-behavior: auto;
      scroll-snap-type: none;
    }
    .ipaw-pets-carousel-track {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 16px;
      width: max-content;
    }
    .ipaw-pet-carousel-item {
      flex: 0 0 162px;
      width: 162px;
      scroll-snap-align: start;
      display: flex;
      justify-content: center;
      transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
      transform-origin: center center;
    }
    @media (min-width: 640px) {
      .ipaw-pet-carousel-item {
        flex: 0 0 186px;
        width: 186px;
      }
      .ipaw-pets-carousel-track {
        gap: 20px;
      }
    }
    .ipaw-pet-carousel-item.is-active {
      transform: scale(1);
      opacity: 1;
      z-index: 22;
    }
    .ipaw-pet-carousel-item.is-side {
      transform: scale(0.80);
      opacity: 0.78;
      z-index: 18;
    }
    .ipaw-pets-carousel-viewport img {
      -webkit-user-drag: none;
      user-drag: none;
    }
    .ipaw-pets-elastic-row {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      justify-content: space-evenly;
      gap: 8px;
      padding: 2px 0 42px 0;
      overflow: visible;
      position: relative;
      z-index: 20;
      transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
      touch-action: pan-y;
      user-select: none;
    }
    .ipaw-phone-shell {
      max-width: 440px;
    }
    @media (min-width: 640px) and (max-width: 1024px) {
      .ipaw-full-shell {
        max-width: 620px;
      }
    }
    @media (max-width: 639px) {
      .ipaw-full-shell, .ipaw-phone-shell {
        max-width: 100%;
        box-shadow: none;
      }
    }
    .ipaw-scroll-area {
      flex: 1 1 0%;
      min-height: 0;
      width: 100%;
      overflow-y: auto;
      overflow-x: hidden;
      padding-bottom: 14px;
      position: relative;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
    }

    /* Smooth Chat Message Arrival Animation (#3) */
    @keyframes ipawMsgSlideUp {
      0% { opacity: 0; transform: translateY(14px) scale(0.97); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    .ipaw-msg-enter {
      animation: ipawMsgSlideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    /* Pet-Themed Chat Wallpaper Patterns (#4) */
    .chat-wp-classic { background-color: #F5F5F5; }
    .chat-wp-pink {
      background-color: #FDF2F8;
      background-image: radial-gradient(rgba(236, 72, 153, 0.14) 2px, transparent 2px);
      background-size: 22px 22px;
    }
    .chat-wp-mint {
      background-color: #ECFDF5;
      background-image: radial-gradient(rgba(16, 185, 129, 0.16) 2px, transparent 2px);
      background-size: 22px 22px;
    }
    .chat-wp-dark {
      background-color: #1E293B;
      background-image: radial-gradient(rgba(247, 185, 23, 0.14) 2px, transparent 2px);
      background-size: 24px 24px;
    }
    .chat-wp-sky {
      background-color: #EFF6FF;
      background-image: radial-gradient(rgba(59, 130, 246, 0.15) 2px, transparent 2px);
      background-size: 22px 22px;
    }
    .chat-wp-cream {
      background-color: #FEFCE8;
      background-image: radial-gradient(rgba(245, 158, 11, 0.16) 2px, transparent 2px);
      background-size: 22px 22px;
    }

    /* Smooth & Fast Page Transitions */
    @keyframes ipawPageEnter {
      0% {
        opacity: 0.25;
        transform: translateY(6px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .ipaw-page-animate {
      animation: ipawPageEnter 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* Dedicated Bottom Navigation Bar Block — flush at very bottom with 0 gap (#1, #2) */
    #fixedBottomNavMount {
      flex: 0 0 auto;
      width: 100%;
      margin: 0;
      padding: 0;
      background: #FFFFFF;
      position: relative;
      bottom: 0;
      z-index: 50;
    }
    .ipaw-bottom-nav {
      position: relative;
      bottom: 0;
      left: 0;
      right: 0;
      margin: 0 !important;
      width: 100%;
      height: 62px;
      background: #FFFFFF;
      border-top: 1.5px solid #E2E8F0;
      border-top-left-radius: 20px;
      border-top-right-radius: 20px;
      display: flex;
      flex-direction: row-reverse;
      direction: ltr;
      align-items: center;
      justify-content: space-between;
      padding: 0 clamp(8px, 2.5vw, 18px);
      z-index: 50;
      box-shadow: 0 -4px 18px rgba(0,0,0,0.07);
      overflow: visible;
    }
    /* High Z-Index Modal & Popup System — ALWAYS above navbar, search header, and floating buttons (#2, #15) */
    #globalModalOverlay {
      position: fixed !important;
      inset: 0 !important;
      z-index: 99999 !important;
      background: rgba(15, 23, 42, 0.72) !important;
      backdrop-filter: blur(4px);
      overflow-y: auto !important;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      padding: calc(14px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) calc(14px + env(safe-area-inset-left, 0px));
    }
    #globalModalBox {
      position: relative !important;
      z-index: 100000 !important;
      max-height: 88dvh !important;
      overflow-y: auto !important;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      margin: auto;
    }
    #globalToast {
      position: fixed !important;
      z-index: 100005 !important;
      bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
      left: 16px !important;
    }
    /* Gliding Slate-Blue Background Pill that travels smoothly Left & Right */
    @media all and (display-mode: standalone) {
      html.is-ios #fixedBottomNavMount {
        background-color: #FFFFFF !important;
        padding-bottom: 0px !important;
      }
      html.is-ios #chatInputFooter,
      html.is-ios .ipaw-bottom-input-bar {
        padding-bottom: 8px !important;
      }
      html.is-android #fixedBottomNavMount {
        background-color: #FFFFFF !important;
        padding-bottom: 0px !important;
      }
      html.is-android #chatInputFooter,
      html.is-android .ipaw-bottom-input-bar {
        padding-bottom: 8px !important;
      }
    }
    html.is-ios.is-standalone #fixedBottomNavMount {
      background-color: #FFFFFF !important;
      padding-bottom: 0px !important;
    }
    html.is-ios.is-standalone #chatInputFooter,
    html.is-ios.is-standalone .ipaw-bottom-input-bar {
      padding-bottom: 8px !important;
    }

    .ipaw-nav-glider {
      position: absolute;
      top: 7px;
      height: 48px;
      background: #34495E;
      border-radius: 9999px;
      z-index: 1;
      box-shadow: 0 5px 15px rgba(52, 73, 94, 0.32);
      transition: left 0.38s cubic-bezier(0.25, 1, 0.35, 1),
                  width 0.38s cubic-bezier(0.25, 1, 0.35, 1);
      pointer-events: none;
    }
    .ipaw-nav-btn {
      position: relative;
      z-index: 2;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      height: 48px;
      padding: 0 10px;
      border-radius: 9999px;
      cursor: pointer;
      border: none;
      background: transparent !important;
      transition: padding 0.32s cubic-bezier(0.25, 1, 0.35, 1),
                  transform 0.22s ease;
      overflow: visible;
      flex-shrink: 0;
    }
    .ipaw-nav-btn.is-active {
      color: #FFFFFF;
      padding: 0 16px;
    }
    .ipaw-nav-label {
      font-family: 'Cairo', 'Tajawal', sans-serif;
      font-weight: 800;
      font-size: 14px;
      line-height: 1;
      color: #FFFFFF;
      white-space: nowrap;
      transition: opacity 0.25s ease;
    }

    /* Animated Notification & Friend Request Red Dot */
    @keyframes redDotPulse {
      0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.75); }
      70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(255, 23, 68, 0); }
      100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 23, 68, 0); }
    }
    .notif-pulse-dot {
      position: absolute;
      top: 2px;
      right: 2px;
      width: 12px;
      height: 12px;
      border-radius: 9999px;
      background-color: #FF1744;
      border: 2px solid #FFFFFF;
      z-index: 20;
      animation: redDotPulse 1.5s infinite;
    }

    /* Sticky & Smoothly Compacting Top Challenges Slider */
    .challenges-sticky-header {
      position: sticky;
      top: 0;
      z-index: 35;
      background: rgba(255, 255, 255, 0.97);
      backdrop-filter: blur(8px);
      transition: padding 0.26s ease, box-shadow 0.26s ease;
    }
    .challenges-sticky-header.is-compact {
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
    }
    .challenges-slider-track {
      display: flex;
      flex-direction: row;
      align-items: stretch;
      gap: 12px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      padding: 12px 16px 10px 16px;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x;
      user-select: none;
      cursor: grab;
      transition: padding 0.26s ease;
    }
    .challenges-sticky-header.is-compact .challenges-slider-track {
      padding: 6px 14px 6px 14px;
    }
    .challenges-slider-track:active {
      cursor: grabbing;
    }
    .challenge-slide-card {
      width: 88%;
      flex-shrink: 0;
      scroll-snap-align: center;
      border-radius: 20px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      cursor: pointer;
      transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, padding 0.26s ease;
      position: relative;
      overflow: hidden;
    }
    .challenges-sticky-header.is-compact .challenge-slide-card {
      padding: 7px 12px;
      border-radius: 16px;
    }
    .challenge-slide-card .chal-avatar-img {
      width: 92px;
      height: 92px;
      transition: width 0.26s ease, height 0.26s ease;
    }
    .challenges-sticky-header.is-compact .challenge-slide-card .chal-avatar-img {
      width: 52px;
      height: 52px;
    }
    .challenges-sticky-header.is-compact .challenge-slide-card .chal-desc-text {
      display: none;
    }
    .challenges-sticky-header.is-compact .challenge-slide-card .chal-meta-row {
      margin-top: 2px !important;
    }
    .challenge-slide-card.is-selected {
      background-color: #00FFC6;
      border: 2px solid #00D6A7;
      box-shadow: 0 6px 18px rgba(0, 214, 167, 0.25);
    }
    .challenge-slide-card.is-unselected {
      background-color: #C8C8C8;
      border: 2px solid #B2B2B2;
      box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    }

    /* Horizontal Cards Slider for Lost Animals, Found Animals, & Animal Adoption */
    .pets-cards-slider-track {
      display: flex;
      flex-direction: row;
      align-items: stretch;
      gap: 14px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      padding: 28px 16px 12px 16px;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x;
      user-select: none;
    }
    .pet-card-slide {
      width: 91%;
      flex-shrink: 0;
      scroll-snap-align: center;
    }

    /* Dark Band Behind User Pets: exact fixed height ending at the middle of the bone for 1, 2, or 3+ pets */
    .ipaw-pets-dark-band {
      width: 100%;
      background-color: transparent;
      padding: 14px 0 0 0;
      margin-bottom: 8px;
      position: relative;
      z-index: 10;
      overflow: visible;
    }
    .ipaw-pets-dark-band::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 32px;
      background-color: #263442;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      z-index: 0;
      pointer-events: none;
    }
    .ipaw-pets-dark-band:has(.no-pet-add-badge) {
      margin-bottom: 42px;
    }
    .ipaw-pets-dark-band:has(.no-pet-add-badge)::before {
      bottom: 0;
    }

    /* Large Pet Bone Nameplate matching image_d4aa97.jpg & I Paw - Paw Home.png */
    .pet-bone-wrapper {
      position: relative;
      width: 166px;
      height: 55px;
      margin-top: -22px;
      margin-bottom: -38px;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: center;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
    }
    .no-pet-add-badge {
      margin-bottom: -48px;
      position: relative;
      z-index: 20;
    }
    .pet-bone-wrapper svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }
    .pet-bone-text {
      position: relative;
      z-index: 2;
      font-family: 'Cairo', 'Fredoka', 'Baloo Bhaijaan 2', sans-serif;
      color: #FFFDF7;
      font-weight: 800;
      font-size: 19px;
      line-height: 1;
      letter-spacing: 0.5px;
      text-align: center;
      padding: 0 22px;
      transform: translateY(-1px);
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 146px;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 0 10px rgba(249, 227, 170, 0.28);
    }
    .ipaw-count-badge {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      line-height: 1 !important;
      padding-top: 1px !important;
      font-family: 'Cairo', sans-serif !important;
    }
    /* Free Rich Content Editor & Article Body Styling */
    .ipaw-rich-article img {
      border-radius: 14px;
      margin: 10px auto;
      max-width: 100%;
      height: auto;
      display: block;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .ipaw-rich-article h2, .ipaw-rich-article h3 {
      font-weight: 800;
      color: #2F4254;
      margin-top: 10px;
      margin-bottom: 6px;
    }
    .ipaw-rich-article p {
      margin-bottom: 8px;
      line-height: 1.85;
    }

    .bone-plate {
      position: relative;
      background: #34495E;
      color: #FFFFFF;
      font-weight: 800;
      font-size: 16px;
      padding: 5px 24px;
      border-radius: 999px;
      border: 2px solid #F9E3AA;
      display: inline-block;
      margin-top: -18px;
      z-index: 5;
    }

    /* Section Bone Header Image (Lost, Found, Adoption) */
    .section-bone-img-wrap {
      position: relative;
      margin: -30px auto 10px auto;
      z-index: 12;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .section-bone-img-wrap img {
      height: 52px;
      width: auto;
      object-fit: contain;
      filter: drop-shadow(0 3px 6px rgba(0,0,0,0.12));
    }

    /* Lost Pet Resolved ("تم ايجاده") Grayscale & Diagonal Stamp */
    .lost-found-resolved-card {
      filter: grayscale(100%);
      opacity: 0.78;
      position: relative;
      transition: all 0.3s ease;
    }
    .found-diagonal-stamp {
      position: absolute;
      inset: 0;
      z-index: 25;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      overflow: hidden;
      border-radius: 24px;
      background: rgba(30, 41, 59, 0.18);
    }
    .found-diagonal-stamp span {
      transform: rotate(-18deg);
      font-size: 34px;
      font-weight: 900;
      color: #FFFFFF;
      background: rgba(34, 45, 61, 0.9);
      border: 3px solid #F9E3AA;
      padding: 8px 36px;
      border-radius: 16px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.45);
      letter-spacing: 1px;
      white-space: nowrap;
    }

    /* Harmonious & Balanced Challenges "شارك !" Button */
    .ipaw-join-challenge-btn {
      background: #34495E;
      border: 3px solid #F9E3AA;
      border-radius: 9999px;
      height: 54px;
      min-width: 205px;
      padding: 0 26px 0 12px;
      display: inline-flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      box-shadow: 0 8px 22px rgba(0,0,0,0.38);
      cursor: pointer;
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
      direction: ltr;
    }
    .ipaw-join-challenge-btn:hover {
      transform: scale(1.05);
      background: #2B3D4F;
    }
    .ipaw-join-challenge-btn:active {
      transform: scale(0.96);
    }
    .ipaw-join-star-circle {
      width: 34px;
      height: 34px;
      border-radius: 9999px;
      background: #FFCC00;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: inset 0 -2px 4px rgba(0,0,0,0.15);
    }
    .ipaw-join-label {
      color: #FFFFFF;
      font-family: 'Cairo', 'Tajawal', sans-serif;
      font-weight: 900;
      font-size: 21px;
      line-height: 1;
      flex: 1;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-top: 1px;
    }

    /* Clicker active press animation */
    .clicker-btn-zone {
      transition: transform 0.08s ease;
      cursor: pointer;
    }
    .clicker-btn-zone:active, .clicker-pressed {
      transform: scale(0.95);
    }
    @keyframes pulseRing {
      0% { transform: scale(0.8); opacity: 0.9; }
      100% { transform: scale(1.9); opacity: 0; }
    }
    .clicker-ripple {
      animation: pulseRing 0.55s ease-out forwards;
    }
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .no-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    .leaflet-container {
      font-family: 'Tajawal', 'Cairo', sans-serif !important;
      z-index: 10 !important;
    }

.standalone-prod-hide { display: none !important; }
#adminAppWrapper { display: none !important; }

/* Disable text selection & iOS long-press image/button save callout across the end-user app */
html, body, body * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}
img, svg, picture, video, a, button {
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  user-drag: none !important;
}
button img, a img, .ipaw-bottom-nav img, .ipaw-nav-btn img, .pet-bone-wrapper img, .section-bone-img-wrap img {
  pointer-events: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
}
input, textarea, select, [contenteditable="true"], .allow-select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

/* SVG Feature Cards with Translatable Overlay Text (No background box behind text) */
.ipaw-svg-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.16s ease;
}
.ipaw-svg-card:hover {
  transform: scale(1.02);
}
.ipaw-svg-card:active {
  transform: scale(0.95);
}
.ipaw-svg-card img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.ipaw-svg-card-label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6.5%;
  text-align: center;
  color: #FFFFFF;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: clamp(11px, 3.1vw, 13.5px);
  line-height: 1.38;
  padding-bottom: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  white-space: normal;
  word-break: keep-all;
}
.ipaw-pets-dark-band.is-paw-home-compact {
  padding-top: 10px;
  margin-bottom: 14px;
}
.ipaw-pets-dark-band.is-paw-home-compact:has(.no-pet-add-badge) {
  margin-bottom: 52px;
}

/* Home Promotional Banner Carousel (Centered when 1, Peek + Smooth Auto-Slide when 2+) */
.home-banner-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 24px 6px 24px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.home-banner-slide {
  flex: 0 0 88%;
  scroll-snap-align: center;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  border: 1px solid #E2E8F0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease;
  transform: scale(0.95);
  opacity: 0.85;
}
.home-banner-slide.is-active-slide {
  transform: scale(1);
  opacity: 1;
}

/* iPhone Modal Keyboard Safe Scroll */
#globalModalOverlay.is-modal-kbd-open {
  align-items: flex-start !important;
  padding-top: 12px !important;
  padding-bottom: 46vh !important;
}
#globalModalOverlay.is-modal-kbd-open #globalModalBox {
  max-height: none !important;
  margin-top: 0 !important;
  margin-bottom: 40vh !important;
}

/* Paw Home compact fit without shrinking too much */
.ipaw-pawhome-grid .ipaw-svg-card img {
  aspect-ratio: 653 / 545;
  object-fit: cover;
}

/* Community Sticky Collapsing Profile Header */
.ipaw-community-sticky {
  position: sticky;
  top: 0;
  z-index: 35;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E2E8F0;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.ipaw-community-sticky.is-collapsed {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  pointer-events: none;
}
.ipaw-community-sticky.is-collapsed .ipaw-comm-full {
  display: none;
}
.ipaw-community-sticky:not(.is-collapsed) .ipaw-comm-mini {
  display: none;
}
.ipaw-community-sticky.is-collapsed .ipaw-comm-mini {
  pointer-events: auto;
}

/* ============================================================================
   BLUR-UP & SHIMMER PROGRESSIVE IMAGE LOADING EFFECT
   ============================================================================ */
@keyframes ipawImgShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ipaw-img-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #e2e8f0 22%, #f1f5f9 38%, #e2e8f0 56%);
  background-size: 220% 100%;
  animation: ipawImgShimmer 1.35s linear infinite;
}

.ipaw-img-wrap.has-thumb {
  animation: none;
  background-color: #e2e8f0;
}

.ipaw-img-wrap.is-loaded {
  animation: none;
  background: transparent;
}

.ipaw-img-thumb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.12);
  opacity: 0.95;
  transition: opacity 0.35s ease-out;
  pointer-events: none;
}

.ipaw-img-wrap.is-loaded .ipaw-img-thumb-bg {
  opacity: 0;
}

.ipaw-blur-img {
  position: relative;
  z-index: 1;
  filter: blur(14px);
  transform: scale(1.035);
  opacity: 0.55;
  transition: filter 0.38s ease-out, transform 0.38s ease-out, opacity 0.32s ease-out;
  will-change: filter, opacity, transform;
}

.ipaw-blur-img.is-loaded {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}

/* Edge-Swipe Back Indicator & Upload Loading Overlay */
#ipawSwipeBackIndicator {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translate(-100%, -50%);
  width: 36px;
  height: 54px;
  border-radius: 0 28px 28px 0;
  background: rgba(47, 66, 84, 0.92);
  color: #F7B917;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 2px 4px 14px rgba(0,0,0,0.28);
  transition: opacity 0.15s ease;
  opacity: 0;
}

.ipaw-upload-busy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 45, 61, 0.78);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 25;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(3px);
}

.ipaw-upload-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.28);
  border-top-color: #F7B917;
  border-radius: 9999px;
  animation: ipawSpin 0.75s linear infinite;
}

@keyframes ipawSpin {
  to { transform: rotate(360deg); }
}

.ipaw-presence-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 9999px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Prevent browser native swipe-back page dragging (v42) */
html, body, #userScreenViewport, .ipaw-scroll-area { overscroll-behavior-x: none !important; }
