.ios-bottom-nav-container {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    display: flex !important;
    justify-content: center;
    z-index: 4000;
    pointer-events: none;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    margin-bottom: 0;

    &::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: -60px;
        background: linear-gradient(to top, rgba(11, 20, 26, 0.85) 10%, rgba(11, 20, 26, 0) 100%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        mask-image: linear-gradient(to top, black 40%, transparent 100%);
        -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
        z-index: -1;
        pointer-events: none;
    }

    .ios-bottom-nav {
        width: 90%;
        justify-content: space-around;
        pointer-events: auto;
        background: rgba(35, 40, 56, 0.75) !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 100px;
        padding: 6px;
        display: flex !important;
        align-items: center;
        gap: 8px;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
        position: relative;

        .ios-nav-sliding-pill {
            position: absolute;
            top: 6px;
            left: 6px;
            height: calc(100% - 12px);
            background: rgba(255, 255, 255, 0.1);
            border-radius: 100px;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 0;
            pointer-events: none;
        }

        .ios-nav-item {
            flex: 1;
            display: flex !important;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: #9c9fad;
            padding: 8px 0;
            border-radius: 100px;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            gap: 4px;
            position: relative;
            z-index: 1;

            svg {
                width: 24px;
                height: 24px;
                transition: transform 0.3s ease;
                color: inherit;
            }

            .ios-nav-label {
                font-size: 11px;
                font-weight: 700;
                letter-spacing: 0.3px;
                text-transform: capitalize;
            }

            .messenger-unread-badge {
                top: 4px;
                right: calc(50% - 20px);
            }

            &.active {
                background: transparent !important;
                color: var(--accent) !important;

                svg {
                    color: var(--accent) !important;
                    transform: scale(1.1);
                }
            }

            &:hover {
                background: transparent !important;
            }
        }
    }
}

/* iOS-style Mini Cards for personal order / details */
.ios-mini-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ios-mini-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.ios-mini-row:last-child {
    border-bottom: none;
}

.ios-mini-qty {
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
    font-weight: 600;
    font-size: 19px;
    padding: 3px 7px;
    border-radius: 6px;
    margin-right: 12px;
    min-width: 34px;
    text-align: center;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.ios-mini-icon {
    margin-right: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
}

.ios-mini-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

/* iOS Switch Styling */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
  margin-left: auto;
  flex-shrink: 0;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #363638;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.ios-slider:before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.ios-switch input:checked+.ios-slider {
  background-color: #34c759;
}

.ios-switch input:checked+.ios-slider:before {
  transform: translateX(20px);
}